Skip to content

Commit d830b1f

Browse files
committed
Update data-processor.py
1 parent 2e86148 commit d830b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-processor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def process_user_data(user_id: int, transactions: List[Dict]) -> Optional[pd.Dat
4040

4141
# Calculate aggregates
4242
daily_stats = df.groupby('day_of_week')['amount'].agg(['mean', 'count'])
43-
hourly_stats = df.groupby('hour')['amount'].mean()
43+
hourly_stat = df.groupby('hour')['amount'].mean()
4444

4545
# Merge stats back
4646
df = df.merge(daily_stats, on='day_of_week')

0 commit comments

Comments
 (0)