Comments (5)
@stinodego or @MarcoGorelli could you take a look?. I am not sure which recent PR's influenced this one.
from polars.
thanks @d-reynol for the report
Did this ever work in previous versions? I just tried it out in 0.20.3 and it also raises there
from polars.
Ok, then we never supported this properly. Sorry for the ping.
from polars.
We shouldn't panic here, but I'm not sure we should even support this.
You are passing a Python list with some values in it. We need to determine which type those values are, because a Python list isn't strongly typed (unlike a NumPy ndarray or a pandas Series).
We don't know what type those values are, so we do some checks for various possible values we expect. Looks like we don't currently check for pd.NaT
. I guess we could. But you can imagine that checking for every possible type of object someone could throw in a list is not feasible.
My advice is to just use None
instead, or create a pandas Series with your pd.NaT
values and then convert that to Polars.
I will take a look at our constructors to see if we can support this.
from polars.
We should not check for pd.Nat
in conversion to AnyValue
.
from polars.
Related Issues (20)
- `write_ndjson` produces incorrect data that does not match dataframe HOT 1
- Exporting StringView Array to Arrow C Data Interface sets wrong number of buffers HOT 6
- Casting an all null column created with pl.lit(None) with length greater than 1 to another type in the same with_columns or select context fails HOT 1
- Diagonal concat when lazyframe other than first item contains list dtype for a column not in first item causes incompatible types error HOT 1
- Polars scan_iceberg inefficiently loads Iceberg table data into memory leading to out-of-memory errors HOT 1
- `map_elements` + `skip_nulls=False` + `pass_name=True` PanicException when used with `over`
- `cast` with `pl.List(pl.Struct)` dtype PanicException
- parallel cumulative_eval returns incorrect results HOT 1
- rolling_mean calculation error after replace inf HOT 2
- Inner dtype is incorrect on array series concatenation HOT 1
- Zero-sized Array caused panic exception
- Functions with `INPUT_WILDCARD_EXPANSION` flag produce incorrect plan with multi column selections
- asof_join 'sorted' concept incompatible with sorted flag HOT 1
- Support for identity based access to cloud data HOT 3
- Adding functions for factor analysis (for e.g., linear/logistic regression)
- Make `unnest()` "unnest" all columns by default
- read_excel with openpyxl truncates and loses information HOT 1
- Panic when comparing Arrays
- Panic when there is a shape mismatch in Arrays HOT 1
- Error for ppc64le architecture
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polars.