5 ms·
In Python (Pandas) you pass the type specification like this when calling read_csv() --- dtype : Type name or dict of column -> type, optional Data type for
by srean 7y ago
In Python (Pandas) you pass the type specification like this when calling read_csv()
---
dtype : Type name or dict of column -> type, optional
Data type for data or columns. E.g. {‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’}
--- https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html https://pandas.pydata.org/pandas-docs/stable/reference/api/p...
You could of course parse every column as a string and then cast to an appropriate type at run time interactively. For timestamps and such pandas can look at the data to figure out the exact datetime format. Not sure what one loses in OCaml especially if one is working at the repl.