Skip to content

Commit 08105ab

Browse files
committed
Merge pull request #8785 from jreback/ga_warn
COMPAT: remove Index warnings from io/ga.py
2 parents 5e8ba36 + 903de01 commit 08105ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/ga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _clean_index(index_dims, parse_dates):
430430
to_remove = pd.Index(set(to_remove))
431431
to_add = pd.Index(set(to_add))
432432

433-
return index_dims - to_remove + to_add
433+
return index_dims.difference(to_remove).union(to_add)
434434

435435

436436
def _get_col_names(header_info):

0 commit comments

Comments
 (0)