Sagen wir df ["foo"]. Iloc [0] ist {'A': 123.02, 'b': 12.3}
Wenn ich
mache
Code: Select all
df["foo"] = df["foo"].map(str)
< /code>
df["foo"].iloc[0]
konvertiert"{'A' : np.float32(123.02),
'B': np.float32(12.3)}"
< /code>
instead of
"{'A': 123.02, 'B': 12.3}"
< /code>
Is there anyway to prevent the np.float32 from showing in the str?
Except replacing it in post processing.