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/API: Index creation with different tz coerces DatetimeIndex #11696

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Nov 24, 2015

Closes #11488.

Based on the type check added in #11588, the change affects to fewer functions than I originally thought.

@sinhrks sinhrks added API Design Timezones Timezone data dtype labels Nov 24, 2015
@sinhrks sinhrks added this to the 0.18.0 milestone Nov 24, 2015
return False

base_tz = getattr(values[0], 'tzinfo', None)
base_tz = get_timezone(base_tz)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might fail with NaT

@sinhrks
Copy link
Member Author

sinhrks commented Nov 28, 2015

Thanks, moved to inferrence.pyx. Also fixed and added tests for NaT.

@jreback
Copy link
Contributor

jreback commented Nov 29, 2015

lgtm. comment above.

@sinhrks
Copy link
Member Author

sinhrks commented Dec 10, 2015

Thanks, I've fixed the tz comparison logic based on your comment below.

do an equality check on tz first then only check get_timezone if it's False

@jreback
Copy link
Contributor

jreback commented Dec 10, 2015

merged via b80b5c7

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants