Comments (1)
There are a few missing is_in
implementations:
- String is in Categorical
- String is in Enum
also fails, but perhaps should fail:
- Categorical is in Enum
- Enum is Categorical
I don't know if those last two should be implemented. Both Categorical and Enums should coerce strings into their revmap representation, but if your data is already a Categorical and/or Enum, then it means that you have explicitly placed them into particular sets, and those sets are not always comparable.
I do think we could benefit from a slightly more informative error message than, for example:
polars.exceptions.InvalidOperationError: `is_in` cannot check for Enum(Some(local), Physical) values in String data
e.g. explain why it cannot check. Also the enum innards are probably not very useful in the error message.
from polars.
Related Issues (20)
- Parity in methods between `polars.Series` and `polars.Expr` HOT 3
- A method to get arrow RecordBatch from Polars Dataframe for polars-rs Rust HOT 2
- Add aggregation function to convert groups of identical values to that value HOT 6
- [FEAT]: `rolling_map()` should copy `.rolling()` + `.map_elements()` HOT 2
- Series.__getitem__ returns a datetime.timedelta for pl.Duration('ns') dtype HOT 5
- how to support polars in pycaret? HOT 1
- Performance of pl.Series of Float vs List(Float) vs List(List(Float)) HOT 2
- User-defined functions documentation doesn't tell reader how to write fast functions HOT 11
- Add `dtype.scalar` for each dtype, for use in filters/comparisons/literals HOT 1
- PanicException: Python API call failed when using map_elements on a column HOT 6
- [DOCS]: Clarify what rows are included in rolling calculations when `window_size` is "2d" or `timedlta(days=2)`
- unexpected SQL result with numbered entities for GROUP BY
- BatchedParquetReader appears to read in the whole file still
- BatchedParquetReader erroneously returns true for is_finished after the first get_batches call
- Convert ordered pandas Categoricals and Arrow DictionaryArrays to and from Enums, not Categoricals HOT 1
- Divide each element in a list by an int HOT 2
- hive partitioning unable to skip files when casting column to date HOT 6
- Python Polars 0.20.11 release workflow was failed HOT 1
- `scan_parquet` segfault on main HOT 1
- "expected <datatype>, got <datatype>" - use datatype display repr consistently? HOT 1
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.