Skip to content

Commit f30caa0

Browse files
committed
Fixed pandas-dev#38419 - BUG: set_index screws up the dtypes on empty DataFrames
1 parent a27317f commit f30caa0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/tests/frame/methods/test_set_index.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ def test_set_index_empty_column(self):
5050
def test_set_index_empty_dataframe(self):
5151
# GH#38419
5252
df = DataFrame(
53-
{
54-
'a': Series(dtype='datetime64[ns]'),
55-
'b': Series(dtype='int64'),
56-
'c': []
57-
}
53+
{"a": Series(dtype="datetime64[ns]"), "b": Series(dtype="int64"), "c": []}
5854
)
5955

6056
if df.empty:

0 commit comments

Comments
 (0)