How do I resample a time series in pandas to a weekly frequency where the weeks start on an arbitrary day? I see that there’s an optional keyword base but it only works for intervals shorter than a day.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pass anchored offsets to
resample, among other options they cover this case.For example the weekly frequency from Monday: