This is my own note because I've been googled myself many times.
When you want to change all at once
df = df.astype({'a': 'float32', 'c': 'int8'})
I've always re-examined it many times because of pandas, so if I remember, I'll add it here. (2020/08/08)
Recommended Posts