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

Data shift Lesson-2 activity_5 #2

Open
whplh opened this issue Feb 8, 2019 · 1 comment
Open

Data shift Lesson-2 activity_5 #2

whplh opened this issue Feb 8, 2019 · 1 comment

Comments

@whplh
Copy link

whplh commented Feb 8, 2019

In Lesson-2 activity_5 the create_groups() function causes a shift in the data with the used dataset.
The first iso_week of the sample dataset contains only 2 values for friday and saturday.
This can happen every year at the beginning and the end of iso_weeks in any dataset.
How to handle missing/shifted data here?

@whplh whplh closed this as completed Feb 8, 2019
@whplh
Copy link
Author

whplh commented Feb 8, 2019

in the line: "if len(sample)==group_size" the length of sample will always be 7 since the data was sliced with the default group_size, which is 7 and thus causing the shift at the beginning of the year.

@whplh whplh reopened this Feb 8, 2019
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

1 participant