You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @TomAugspurger. #33809 took the approach of using DataFrame.astype(float).to_numpy() to coerce NA to np.nan which should likely be fixed once this becomes available.
Is your feature request related to a problem?
Control the NA value used when converting a DataFrame to an ndarray.
Describe the solution you'd like
Add an
na_value
argument toDataFrame.to_numpy()
. Has the same meaning asna_value
inSeries.to_numpy
, except it applies to all the columns.Additional context
This has come up in a few places (cc @jorisvandenbossche @dsaxton)
The text was updated successfully, but these errors were encountered: