Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix check for keep_tz is False
  • Loading branch information
jorisvandenbossche committed Nov 16, 2018
commit d1390ed5455e2cd281dba6835427a4dfddab0007
2 changes: 1 addition & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def to_series(self, keep_tz=None, index=None, name=None):
"'keep_tz=True' to obtain the future behaviour and "
"silence this warning.", FutureWarning, stacklevel=2)
keep_tz = False
elif not keep_tz:
elif keep_tz is False:
warnings.warn("Specifying 'keep_tz=False' is deprecated and this "
"option will be removed in a future release. If "
"you want to remove the timezone information, you "
Expand Down