Skip to content

Commit

Permalink
fix a behavioral change in pd.read_csv, pandas 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xtianpoli committed Oct 7, 2024
1 parent af4f448 commit 34ee583
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ipyprogressivis/widgets/csv_sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,11 @@ def retype_columns(self) -> None:
else:
types[name] = type
if types:
self._types = types
self.params["dtype"] = types
self._types = {col: typ for (col, typ) in types.items() if col not in parse_dates}
if not self._types:
self._types = None
else:
self.params["dtype"] = self._types
else:
self._types = None
if "dtype" in self.params:
Expand Down

0 comments on commit 34ee583

Please sign in to comment.