File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,8 @@ Groupby/resample/rolling
247
247
248
248
Reshaping
249
249
^^^^^^^^^
250
+ - Bug in :func: `concat ` ignoring ``sort `` parameter when passed :class: `DatetimeIndex ` indexes (:issue: `54769 `)
250
251
- Bug in :func: `merge ` returning columns in incorrect order when left and/or right is empty (:issue: `51929 `)
251
- -
252
252
253
253
Sparse
254
254
^^^^^^
Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ def _find_common_index_dtype(inds):
288
288
raise TypeError ("Cannot join tz-naive with tz-aware DatetimeIndex" )
289
289
290
290
if len (dtis ) == len (indexes ):
291
- sort = True
292
291
result = indexes [0 ]
293
292
294
293
elif len (dtis ) > 1 :
Original file line number Diff line number Diff line change @@ -77,23 +77,23 @@ def test_concat_datetime_timezone(self):
77
77
78
78
exp_idx = DatetimeIndex (
79
79
[
80
- "2010-12-31 15:00:00+00:00" ,
81
- "2010-12-31 16:00:00+00:00" ,
82
- "2010-12-31 17:00:00+00:00" ,
83
80
"2010-12-31 23:00:00+00:00" ,
84
81
"2011-01-01 00:00:00+00:00" ,
85
82
"2011-01-01 01:00:00+00:00" ,
83
+ "2010-12-31 15:00:00+00:00" ,
84
+ "2010-12-31 16:00:00+00:00" ,
85
+ "2010-12-31 17:00:00+00:00" ,
86
86
]
87
87
)
88
88
89
89
expected = DataFrame (
90
90
[
91
- [np .nan , 1 ],
92
- [np .nan , 2 ],
93
- [np .nan , 3 ],
94
91
[1 , np .nan ],
95
92
[2 , np .nan ],
96
93
[3 , np .nan ],
94
+ [np .nan , 1 ],
95
+ [np .nan , 2 ],
96
+ [np .nan , 3 ],
97
97
],
98
98
index = exp_idx ,
99
99
columns = ["a" , "b" ],
You can’t perform that action at this time.
0 commit comments