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
The docs state that supplying downcast as a dict of item -> dtype is acceptable here. I would have thought that this would fill NAs in "col1" with value 2 and then downcasted "col1" to dtype int64. Instead an error is raised.
AttributeError: 'dict' object has no attribute 'type'
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
Problem description
The docs state that supplying
downcast
as a dict ofitem -> dtype
is acceptable here. I would have thought that this would fill NAs in"col1"
with value2
and then downcasted"col1"
to dtypeint64
. Instead an error is raised.Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: