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

DEPR: change DTI.to_series keep_tz default to True #29731

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

jbrockmendel
Copy link
Member

We also have a deprecation to remove the keyword altogether, but we can't enforce that until we give people time to stop passing keep_tz=True

@gfyoung gfyoung added Deprecate Functionality to remove in pandas Datetime Datetime data dtype labels Nov 20, 2019
@jreback jreback added this to the 1.0 milestone Nov 20, 2019
@@ -663,14 +663,14 @@ def _get_time_micros(self):
values = self._data._local_timestamps()
return fields.get_time_micros(values)

def to_series(self, keep_tz=None, index=None, name=None):
def to_series(self, keep_tz=lib._no_default, index=None, name=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI we should standard this argument somewhere and actually have a check that we don't have multiple ways of doing this (a maintenance concern).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants