Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def fetch_and_plot_average_rating_by_genre(conn):
|
|
61 |
df = pd.read_sql_query(query, conn)
|
62 |
|
63 |
# Function to extract the first genre from the genres list
|
64 |
-
def extract_first_genre(genres):
|
65 |
if genres:
|
66 |
return genres.split(',')[0].strip()
|
67 |
else:
|
|
|
61 |
df = pd.read_sql_query(query, conn)
|
62 |
|
63 |
# Function to extract the first genre from the genres list
|
64 |
+
def extract_first_genre(genres):
|
65 |
if genres:
|
66 |
return genres.split(',')[0].strip()
|
67 |
else:
|