Skip to content

API: validate conversions of datetimeindex with tz, and fixup to_series() to handle (GH6032) #6398

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

Merged
merged 1 commit into from
Feb 19, 2014

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Feb 18, 2014

closes #6032

values = self.to_embed(keep_tz)
return pd.Series(values, index=self, name=self.name)

def to_embed(self, keep_tz=False):
Copy link
Member

Choose a reason for hiding this comment

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

Make this an internal function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean like _to_embed? I would except for asobject is already 'public'

Copy link
Member

Choose a reason for hiding this comment

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

yes, that's what I meant. What would be the use that this is visible to users (I mean: appear in the api docs of index)?

jreback added a commit that referenced this pull request Feb 19, 2014
API: validate conversions of datetimeindex with tz, and fixup to_series() to handle (GH6032)
@jreback jreback merged commit 17f84af into pandas-dev:master Feb 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Datetime Datetime data dtype Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating Series from DatetimeIndex w/ tz loses tz info
2 participants