File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,8 @@ Groupby/resample/rolling
247247
248248Reshaping
249249^^^^^^^^^
250+ - Bug in :func: `concat ` ignoring ``sort `` parameter when passed :class: `DatetimeIndex ` indexes (:issue: `54769 `)
250251- Bug in :func: `merge ` returning columns in incorrect order when left and/or right is empty (:issue: `51929 `)
251- -
252252
253253Sparse
254254^^^^^^
Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ def _find_common_index_dtype(inds):
288288 raise TypeError ("Cannot join tz-naive with tz-aware DatetimeIndex" )
289289
290290 if len (dtis ) == len (indexes ):
291- sort = True
292291 result = indexes [0 ]
293292
294293 elif len (dtis ) > 1 :
Original file line number Diff line number Diff line change @@ -77,23 +77,23 @@ def test_concat_datetime_timezone(self):
7777
7878 exp_idx = DatetimeIndex (
7979 [
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" ,
8380 "2010-12-31 23:00:00+00:00" ,
8481 "2011-01-01 00:00:00+00:00" ,
8582 "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" ,
8686 ]
8787 )
8888
8989 expected = DataFrame (
9090 [
91- [np .nan , 1 ],
92- [np .nan , 2 ],
93- [np .nan , 3 ],
9491 [1 , np .nan ],
9592 [2 , np .nan ],
9693 [3 , np .nan ],
94+ [np .nan , 1 ],
95+ [np .nan , 2 ],
96+ [np .nan , 3 ],
9797 ],
9898 index = exp_idx ,
9999 columns = ["a" , "b" ],
You can’t perform that action at this time.
0 commit comments