Spaces:
Sleeping
Sleeping
VasithaTilakumara commited on
Commit ·
c982cdf
1
Parent(s): d656dd2
chart 2 3 data source issue
Browse files- utils/insights.py +2 -0
utils/insights.py
CHANGED
|
@@ -265,6 +265,7 @@ def plot_sessions_by_hour_line(df):
|
|
| 265 |
return _apply_dark_layout(fig, height=300)
|
| 266 |
|
| 267 |
def plot_engagement_vs_session(new_features_df):
|
|
|
|
| 268 |
fig = px.scatter(
|
| 269 |
new_features_df,
|
| 270 |
x="avg_session_length",
|
|
@@ -291,6 +292,7 @@ def plot_engagement_vs_session(new_features_df):
|
|
| 291 |
return _apply_dark_layout(fig, height=300)
|
| 292 |
|
| 293 |
def plot_activity_heatmap(new_features_df):
|
|
|
|
| 294 |
# Group by day and hour
|
| 295 |
activity_df = (
|
| 296 |
new_features_df.groupby(["most_active_day", "most_active_hour"])
|
|
|
|
| 265 |
return _apply_dark_layout(fig, height=300)
|
| 266 |
|
| 267 |
def plot_engagement_vs_session(new_features_df):
|
| 268 |
+
print("new_features_df:", new_features_df.head())
|
| 269 |
fig = px.scatter(
|
| 270 |
new_features_df,
|
| 271 |
x="avg_session_length",
|
|
|
|
| 292 |
return _apply_dark_layout(fig, height=300)
|
| 293 |
|
| 294 |
def plot_activity_heatmap(new_features_df):
|
| 295 |
+
print("new_features_df:", new_features_df.head())
|
| 296 |
# Group by day and hour
|
| 297 |
activity_df = (
|
| 298 |
new_features_df.groupby(["most_active_day", "most_active_hour"])
|