categorical series with null converts ints to float #19214
Labels
Bug
Categorical
Categorical Data Type
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
Shouldn't it keep them as ints? Interestingly,
pd.Series(["a", 1,2, np.nan], dtype="O").astype("category")
doesn't do the conversion.The text was updated successfully, but these errors were encountered: