Dataframe creation: Specifying dtypes with a dictionary #9287
Labels
API Design
Dtype Conversions
Unexpected or buggy dtype conversions
Duplicate Report
Duplicate issue or pull request
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Apologies if this feature has been suggested before. Many of the IO functions (e.g.
read_csv
) allow use to easily specify the format for each column using a dictionary. As far as I understand, this is notpossible with the regular dataframe construction, e.g:
Even better, it would be great if one could change the
dtypes
for the dataframe columns using a similar contruction, e.g.:Is anything like this planned for already?
The text was updated successfully, but these errors were encountered: