File tree 1 file changed +5
-12
lines changed
pandas/tests/frame/methods
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -168,17 +168,10 @@ def test_convert_dtypes_pyarrow_to_np_nullable(self):
168
168
expected = pd .DataFrame (range (2 ), dtype = "Int32" )
169
169
tm .assert_frame_equal (result , expected )
170
170
171
- def test_convert_dtypes_timestamp_and_duration (self ):
171
+ def test_convert_dtypes_pyarrow_timestamp (self ):
172
172
# GH 54191
173
173
pytest .importorskip ("pyarrow" )
174
- timestamp_series = pd .Series (
175
- pd .date_range ("2020-01-01" , "2020-01-02" , freq = "1440min" )
176
- ).astype ("timestamp[ms][pyarrow]" )
177
- duration_series = pd .Series (pd .timedelta_range ("1s" , "2s" , freq = "1s" )).astype (
178
- "duration[ms][pyarrow]"
179
- )
180
-
181
- expected = pd .concat ([timestamp_series , duration_series ], axis = 1 )
182
- result = expected .convert_dtypes (dtype_backend = "pyarrow" )
183
-
184
- tm .assert_frame_equal (expected , result )
174
+ ser = pd .Series (pd .date_range ("2020-01-01" , "2020-01-02" , freq = "1min" ))
175
+ expected = ser .astype ("timestamp[ms][pyarrow]" )
176
+ result = ser .convert_dtypes (dtype_backend = "pyarrow" )
177
+ tm .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments