Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Nov 8, 2024
1 parent 05133dc commit 804e596
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sssom/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ def from_mapping_set_document(cls, doc: MappingSetDocument) -> "MappingSetDataFr
else:
# For pandas < 2.0.0, call 'infer_objects()' without any parameters
df = df.infer_objects()
# remove columns where all values are blank
# remove columns where all values are blank.

# ! This will break when pandas >= 3.0.0 is released
# https://github.com/pandas-dev/pandas/issues/57734
# Context https://github.com/pandas-dev/pandas/issues/57734
try:
pd.set_option("future.no_silent_downcasting", True)
except KeyError:
Expand Down

0 comments on commit 804e596

Please sign in to comment.