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
# Your code hereimportpandasaspdfromnumpyimportnandf=pd.DataFrame([{'sample': nan }])
df.iloc[0].sampledf.astype('str').iloc[0].sample
Problem description
When converting any datatype column to string using astype('str') null values (NaN object) is converted to literal nan string
Instead of remaining as null object value
The text was updated successfully, but these errors were encountered:
Problem description
When converting any datatype column to string using astype('str') null values (NaN object) is converted to literal nan string
Instead of remaining as null object value
The text was updated successfully, but these errors were encountered: