Skip to content

Commit

Permalink
Merge pull request #1 from argotdev/workflow-check
Browse files Browse the repository at this point in the history
Update data-processor.py
  • Loading branch information
ajtatey authored Dec 4, 2024
2 parents 2e86148 + d830b1f commit f3041f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def process_user_data(user_id: int, transactions: List[Dict]) -> Optional[pd.Dat

# Calculate aggregates
daily_stats = df.groupby('day_of_week')['amount'].agg(['mean', 'count'])
hourly_stats = df.groupby('hour')['amount'].mean()
hourly_stat = df.groupby('hour')['amount'].mean()

# Merge stats back
df = df.merge(daily_stats, on='day_of_week')
Expand Down

0 comments on commit f3041f3

Please sign in to comment.