pd.DataFrame.astype should allow dict as argument #12801
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
Duplicate Report
Duplicate issue or pull request
Currently
pd.DataFrame.astype
only allows for one type.I would like it to support a
dict
mapping column names to dtypes.Like for example the
dtype
argument ofpd.read_json
.The text was updated successfully, but these errors were encountered: