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
Above are various ways to instantiate an empty dataframe. There is an inconsistency in that specifying an empty list instead of an empty series results in a dtype of float64 instead of object for that column.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Above are various ways to instantiate an empty dataframe. There is an inconsistency in that specifying an empty list instead of an empty series results in a dtype of
float64
instead ofobject
for that column.Related:
#17261
#49573
Expected Behavior
A user assuming consistency would expect the result of
to be:
Installed Versions
The text was updated successfully, but these errors were encountered: