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

BUG: inferred_freq results in None for eastern hemispheres timezones #7310

Closed
sinhrks opened this issue Jun 2, 2014 · 3 comments · Fixed by #7318
Closed

BUG: inferred_freq results in None for eastern hemispheres timezones #7310

sinhrks opened this issue Jun 2, 2014 · 3 comments · Fixed by #7318
Labels
Bug Frequency DateOffsets Timezones Timezone data dtype
Milestone

Comments

@sinhrks
Copy link
Member

sinhrks commented Jun 2, 2014

Found during #7299.

dates = ['2000-01-31', '2000-02-29', '2000-03-31', '2000-04-30']
pd.DatetimeIndex(dates).inferred_freq
# M

pd.DatetimeIndex(dates, tz='US/Eastern').inferred_freq
# M

pd.DatetimeIndex(dates, tz='Mexico/General').inferred_freq
# M

pd.DatetimeIndex(dates, tz='Asia/Tokyo').inferred_freq
# None

pd.DatetimeIndex(dates, tz='Europe/Paris').inferred_freq
# None

pd.DatetimeIndex(dates, tz='Australia/Sydney').inferred_freq
# None
@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

this should use localize the timestamps before returning i8: https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L649

@jreback
Copy link
Contributor

jreback commented Jun 6, 2014

fixes (I think just #7317) reverted, so this needs to be addressed again

@sinhrks

@jreback
Copy link
Contributor

jreback commented Jun 6, 2014

sorry...this is ok, its the Datetime.insert issue

@jreback jreback closed this as completed Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frequency DateOffsets Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants