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: Deprecate passing range-like arguments to DatetimeIndex, TimedeltaIndex #23919

Merged
merged 21 commits into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f8bed85
Deprecate passing range-like arguments to DatetimeIndex, TimedeltaIndex
jbrockmendel Nov 26, 2018
5d8a107
GH reference
jbrockmendel Nov 26, 2018
28e2184
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 26, 2018
0f75b9d
Flake8 fixups, whatsnew typo
jbrockmendel Nov 26, 2018
2c40c3a
update usage in resample
jbrockmendel Nov 26, 2018
d67f87c
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 26, 2018
afdab5b
targeted tests
jbrockmendel Nov 26, 2018
8f435ed
backticks
jbrockmendel Nov 26, 2018
4d7c9e2
test the right thing
jbrockmendel Nov 26, 2018
2e587e3
avoid verify_integrity warnings
jbrockmendel Nov 26, 2018
0469b74
avoid verify_integrity
jbrockmendel Nov 26, 2018
43a52fc
isort
jbrockmendel Nov 26, 2018
f4e281e
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 27, 2018
15e6c30
change default to None
jbrockmendel Nov 27, 2018
5dc66f3
set verify_integrity conditionally
jbrockmendel Nov 27, 2018
b931878
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 27, 2018
07bfc45
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 27, 2018
e209a81
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 28, 2018
d6df7a3
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 28, 2018
eb5d9c5
Merge branch 'master' of https://github.com/pandas-dev/pandas into ge…
jbrockmendel Nov 28, 2018
cc40717
restore edit that got lost in rebase
jbrockmendel Nov 28, 2018
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
Next Next commit
set verify_integrity conditionally
  • Loading branch information
jbrockmendel committed Nov 27, 2018
commit 5dc66f3bd1c4367d5c942342ba5bf2fbdd11e217
3 changes: 2 additions & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def __new__(cls, data=None,
warnings.warn("The 'verify_integrity' argument is deprecated, "
"will be removed in a future version.",
FutureWarning, stacklevel=2)
verify_integrity = True
else:
verify_integrity = True

if data is None:
warnings.warn("Creating a DatetimeIndex by passing range "
Expand Down
3 changes: 2 additions & 1 deletion pandas/core/indexes/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def __new__(cls, data=None, unit=None, freq=None, start=None, end=None,
warnings.warn("The 'verify_integrity' argument is deprecated, "
"will be removed in a future version.",
FutureWarning, stacklevel=2)
verify_integrity = True
else:
verify_integrity = True

freq, freq_infer = dtl.maybe_infer_freq(freq)

Expand Down