I've been doing troublesome things for a long time, but this is the decisive hit!
df = pd.DataFrame([{field: None for field in df.columns.values}])
Recommended Posts