Skip to content

Commit 2093cc5

Browse files
author
Egor Panfilov
committed
BUG: #10833 Added forced index rename
1 parent d39c474 commit 2093cc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/test_frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6329,6 +6329,8 @@ def test_to_csv_from_csv(self):
63296329

63306330
result = pd.read_csv(path, index_col='dt_index')
63316331
result.index = pd.to_timedelta(result.index)
6332+
# TODO: remove renaming when GH 10875 is solved
6333+
result.index = result.index.rename('dt_index')
63326334
result['dt_data'] = pd.to_timedelta(result['dt_data'])
63336335

63346336
assert_frame_equal(df, result, check_index_type=True)

0 commit comments

Comments
 (0)