One uses the name of the datatype, the other uses display of the datatype
Expected behavior
For the examples above:
expected `i64`, got `f64````
and
SchemaError: invalid series dtype: expected str, got datetime[μs]
I think it'd be good to consistently use the DataType Display one, as that's the one people see when they print dataframes
### Installed versions
<details>
--------Version info---------
Polars: 0.20.10
Index type: UInt32
Platform: Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python: 3.11.7 (main, Dec 8 2023, 18:56:58) [GCC 11.4.0]
Checks
Reproducible example
Here's a minor thing that bugs me
If you do
but
s
was backed byFloat64
, then you'll getExample:
Log output
No response
Issue description
One uses the name of the datatype, the other uses display of the datatype
Expected behavior
For the examples above:
SchemaError: invalid series dtype: expected
str
, gotdatetime[μs]
--------Version info--------- Polars: 0.20.10 Index type: UInt32 Platform: Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 Python: 3.11.7 (main, Dec 8 2023, 18:56:58) [GCC 11.4.0]
----Optional dependencies---- adbc_driver_manager:
cloudpickle:
connectorx:
deltalake:
fsspec:
gevent:
hvplot:
matplotlib:
numpy: 1.26.4
openpyxl:
pandas: 2.2.0
pyarrow: 15.0.0
pydantic: 2.6.1
pyiceberg:
pyxlsb:
sqlalchemy:
xlsx2csv:
xlsxwriter: ```