Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2611,7 +2611,7 @@ def _check_column_names(self, data: DataFrame) -> DataFrame:
# Check date conversion, and fix key if needed
if self._convert_dates:
for c, o in zip(columns, original_columns):
if c != o:
if c != o and o in self._convert_dates:
self._convert_dates[c] = self._convert_dates[o]
del self._convert_dates[o]

Expand Down
Loading