We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e86148 commit d830b1fCopy full SHA for d830b1f
data-processor.py
@@ -40,7 +40,7 @@ def process_user_data(user_id: int, transactions: List[Dict]) -> Optional[pd.Dat
40
41
# Calculate aggregates
42
daily_stats = df.groupby('day_of_week')['amount'].agg(['mean', 'count'])
43
- hourly_stats = df.groupby('hour')['amount'].mean()
+ hourly_stat = df.groupby('hour')['amount'].mean()
44
45
# Merge stats back
46
df = df.merge(daily_stats, on='day_of_week')
0 commit comments