Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mean and std #3

Open
xiang526 opened this issue Mar 19, 2021 · 1 comment
Open

mean and std #3

xiang526 opened this issue Mar 19, 2021 · 1 comment

Comments

@xiang526
Copy link

Hi professor,
I have used this method to compute the 'removed_trend' and 'removed_std', but the result was not same as you. Can you tell me your method.
my method:
df['mean'] =( df.groupby(['day_of_week','hour','minute'])['pickups'].transform('mean'))

@fmpr
Copy link
Owner

fmpr commented Mar 24, 2021

Hi,
I'm attaching the code that I used to generate those input files.

Prepare-Detrended-Series-30min-5grid.ipynb.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants