@@ -1172,24 +1172,24 @@ def test_min_max_dt64_with_NaT(self):
1172
1172
def test_min_max_dt64_with_NaT_skipna_false (self , tz_naive_fixture ):
1173
1173
# GH#36907
1174
1174
tz = tz_naive_fixture
1175
- df = pd . DataFrame (
1175
+ df = DataFrame (
1176
1176
{
1177
1177
"a" : [
1178
- pd . Timestamp ("2020-01-01 08:00:00" , tz = tz ),
1179
- pd . Timestamp ("1920-02-01 09:00:00" , tz = tz ),
1178
+ Timestamp ("2020-01-01 08:00:00" , tz = tz ),
1179
+ Timestamp ("1920-02-01 09:00:00" , tz = tz ),
1180
1180
],
1181
- "b" : [pd . Timestamp ("2020-02-01 08:00:00" , tz = tz ), pd .NaT ],
1181
+ "b" : [Timestamp ("2020-02-01 08:00:00" , tz = tz ), pd .NaT ],
1182
1182
}
1183
1183
)
1184
1184
1185
1185
res = df .min (axis = 1 , skipna = False )
1186
- expected = pd . Series ([df .loc [0 , "a" ], pd .NaT ])
1186
+ expected = Series ([df .loc [0 , "a" ], pd .NaT ])
1187
1187
assert expected .dtype == df ["a" ].dtype
1188
1188
1189
1189
tm .assert_series_equal (res , expected )
1190
1190
1191
1191
res = df .max (axis = 1 , skipna = False )
1192
- expected = pd . Series ([df .loc [0 , "b" ], pd .NaT ])
1192
+ expected = Series ([df .loc [0 , "b" ], pd .NaT ])
1193
1193
assert expected .dtype == df ["a" ].dtype
1194
1194
1195
1195
tm .assert_series_equal (res , expected )
0 commit comments