We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43a52fc commit 3486e69Copy full SHA for 3486e69
pandas/core/indexes/datetimes.py
@@ -49,12 +49,8 @@ def _new_DatetimeIndex(cls, d):
49
# so need to localize
50
tz = d.pop('tz', None)
51
52
- with warnings.catch_warnings():
53
- # we ignore warnings from passing verify_integrity=False
54
- # TODO: If we knew what was going in to **d, we might be able to
55
- # go through _simple_new instead
56
- warnings.simplefilter("ignore")
57
- result = cls.__new__(cls, verify_integrity=False, **d)
+ values = d.pop('data')
+ result = cls._simple_new(values, **d)
58
59
if tz is not None:
60
result = result.tz_localize('UTC').tz_convert(tz)
0 commit comments