Comments (7)
Yes, we must pin numpy 1.0 until then.
from polars.
If blocked, it isn't p-high
at the moment. :D
from polars.
If blocked, it isn't
p-high
at the moment. :D
Indeed. We should have something to mark "high importance" though - which this certainly is.
from polars.
I've encountered a seg fault where another library is converting a Polars dataframe to numpy with numpy 2.0.0 and polars 0.20.31.
Downstream issue is here: Nixtla/mlforecast#354
import polars as pl
df = pl.from_repr("""┌───────────┬─────────────────────┬────────────┐
│ unique_id ┆ ds ┆ y │
│ --- ┆ --- ┆ --- │
│ cat ┆ datetime[ns] ┆ f64 │
╞═══════════╪═════════════════════╪════════════╡
│ id_00 ┆ 2000-01-01 00:00:00 ┆ 17.519167 │
│ id_00 ┆ 2000-01-02 00:00:00 ┆ 87.799695 │
│ id_00 ┆ 2000-01-03 00:00:00 ┆ 177.442975 │
│ id_00 ┆ 2000-01-04 00:00:00 ┆ 232.70411 │
│ id_00 ┆ 2000-01-05 00:00:00 ┆ 317.510474 │
│ id_19 ┆ 2000-03-09 00:00:00 ┆ 28.541985 │
│ id_19 ┆ 2000-03-10 00:00:00 ┆ 33.841384 │
│ id_19 ┆ 2000-03-11 00:00:00 ┆ 38.878866 │
│ id_19 ┆ 2000-03-12 00:00:00 ┆ 43.675512 │
│ id_19 ┆ 2000-03-13 00:00:00 ┆ 49.603114 │
└───────────┴─────────────────────┴────────────┘""")
df["ds"].to_numpy()
This gives a seg fault.
from polars.
@ritchie46
In fact this is enough to produce a seg fault:
import datetime
import polars as pl
pl.Series([datetime.datetime.now()]).to_numpy()
from polars.
Yes, we are familiar. Nothing we can do about it at the moment, see the linked issue.
from polars.
Nothing we can do about it at the moment
You could also pin numpy here
polars/py-polars/pyproject.toml
Line 52 in 14dd2ca
in case you're planning a release soon, that'd ensure compatibility when installing polars[numpy]
from polars.
Related Issues (20)
- Panic when importing parquet file HOT 3
- Switch over default engine for `read_excel` from `"xlsx2csv"` to `"calamine"`
- Compatibility with PygTrie prefix trie lists/dicts
- LazyFrame check for both `unique` and `with_row_index`
- `.map_elements` with `return_dtype=pl.List(pl.Struct)` leads to `sink_parquet` PanicException
- Incorrect `PolarsInefficientMapWarning` for string containment with `in` HOT 2
- Maintain support for parsing hive partitions from user provided directory paths HOT 1
- [QST/DOC]: Join key matching semantics for expression keys
- Adopt python `datetime.datetime.replace(...)` method as a `pl.col('date').dt.replace(...)` HOT 2
- InvalidOperationError: could not determine supertype of: [decimal[15,2], dyn float, dyn float]
- at higher scale factors, InvalidOperationError: `round` operation not supported for dtype `decimal[*,8]` HOT 2
- Group By no longer supported in Rust WASM HOT 1
- Substraction not allowed anymore on date and datetime[μs] HOT 2
- file-like objects for read_csv need seek() but it's never called HOT 2
- Rust Polars v0.41.2 build fails
- Cross join followed by filtering not working using streaming API
- Custom HTTP headers in pl.scan_parquet()
- Using Slice in Polars Rolling Agg HOT 1
- column major reshape / transpose
- Add `.only` aggregation for expressions.
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.