-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Added an example for infer_freq #39558
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
Conversation
This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for letting this PR slip through the cracks. Just one comment otherwise LGTM
pandas/tseries/frequencies.py
Outdated
|
||
Examples | ||
-------- | ||
>>> idx = pd.date_range(start = '2020/12/01', end = '2020/12/30', periods = 30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you eliminate the spaces between the =
e.g start = '2020/12/01'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mroeschke done. I'm kinda newb to submitting my changes in public repos so I hope that I managed to do it correctly :)
Also this PR should target the master branch instead |
let's close this in a couple of days if no response |
@Remit I changed the target branch to master, but it will require you to rebase with master |
Added an example for infer_freq function. The initial index is built using a fixed number of periods to avoid encoding frequency in this index explicitly.
Removed empty line and deleted spaces.
@mroeschke thanks! I did the rebase, but it seems like some checks fail for the current build. Does not look to be connected with my commit |
thanks @Remit the failures on default are known |
thanks Jeff! Got it. |
Added an example for infer_freq function. The initial index is built using a fixed number of periods to avoid encoding frequency in this index explicitly.