Skip to content

Commit

Permalink
link related pandas discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenMeinecke committed Oct 23, 2024
1 parent 70e0a01 commit 95401f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions simbench/converter/auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def to_numeric_ignored_errors(data, **kwargs):
"""Wrapper function for pandas.to_numeric(). Needed to emulate previous behavior with deprecated
errors="ignore".
The issue covered by this function is discussed at https://github.com/pandas-dev/pandas/issues/54467.
`df2 = df1.apply(pd.to_numeric, errors='coerce')` and `df2=df2.fillna(df1)` is an alternative way.
Parameters
----------
data : Series|DataFrame
Expand Down

0 comments on commit 95401f8

Please sign in to comment.