File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ Bug Fixes
913
913
- Bug in clearing the cache on ``DataFrame.pop`` and a subsequent inplace op (:issue:`10912`)
914
914
- Bug in indexing with a mixed-integer ``Index`` causing an ``ImportError`` (:issue:`10610`)
915
915
- Bug in ``Series.count`` when index has nulls (:issue:`10946`)
916
-
916
+ - Bug in pickling of a non-regular freq ``DatetimeIndex`` (:issue:`11002`)
917
917
- Bug causing ``DataFrame.where`` to not respect the ``axis`` parameter when the frame has a symmetric shape. (:issue:`9736`)
918
918
919
919
- Bug in ``Table.select_column`` where name is not preserved (:issue:`10392`)
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ def _new_DatetimeIndex(cls, d):
120
120
# data are already in UTC
121
121
# so need to localize
122
122
tz = d .pop ('tz' ,None )
123
- result = cls .__new__ (cls , ** d )
123
+
124
+ result = cls .__new__ (cls , verify_integrity = False , ** d )
124
125
if tz is not None :
125
126
result = result .tz_localize ('UTC' ).tz_convert (tz )
126
127
return result
Original file line number Diff line number Diff line change @@ -2142,8 +2142,8 @@ def test_period_resample_with_local_timezone_dateutil(self):
2142
2142
2143
2143
2144
2144
def test_pickle (self ):
2145
- #GH4606
2146
2145
2146
+ # GH4606
2147
2147
p = self .round_trip_pickle (NaT )
2148
2148
self .assertTrue (p is NaT )
2149
2149
@@ -2153,6 +2153,11 @@ def test_pickle(self):
2153
2153
self .assertTrue (idx_p [1 ] is NaT )
2154
2154
self .assertTrue (idx_p [2 ] == idx [2 ])
2155
2155
2156
+ # GH11002
2157
+ # don't infer freq
2158
+ idx = date_range ('1750-1-1' , '2050-1-1' , freq = '7D' )
2159
+ idx_p = self .round_trip_pickle (idx )
2160
+ tm .assert_index_equal (idx , idx_p )
2156
2161
2157
2162
def _simple_ts (start , end , freq = 'D' ):
2158
2163
rng = date_range (start , end , freq = freq )
You can’t perform that action at this time.
0 commit comments