Comments (3)
Do you happen to have an example?
Anything I've tried so far results in a dict with the same order.
from polars.
Likewise; so far I haven't been able to reproduce - and looking at the code it does look like it should always return in-order keys. Definitely need a reproducible example to see if there's an edge-case somehow/somewhere (the keys appear to be inserted in frame-order and Python has had a hard guarantee since 3.6/3.7 that insertion order is maintained) 🤔
from polars.
Darn, thanks for checking! Sorry to waste your time.
The actual issue was in the way Pytest compares dicts by taking them out-of-order: https://stackoverflow.com/questions/70023936/pytest-dict-equality-preserving-order-and-nice-diff-output-python-3-7
That's totally my bad; sorry for not vetting the issue better before opening it here.
from polars.
Related Issues (20)
- Hive partitions are corrupted during reads from cloud storage in Polars 1.0.0-rc.1
- Rust 0.41.1: error[E0412]: cannot find type `CloudOptions` in this scope HOT 4
- Support writing to multiple files in a directory with `write/sink_parquet` HOT 1
- `DataFrame.top_k` not handling nulls correctly in version 1.0.0-rc.1 HOT 3
- String to dateime conversion with custom format HOT 3
- Add `get()` Method for Safe Column Access in DataFrame HOT 1
- Segmentation Fault when plotting with plotly HOT 3
- sink_parquet_cloud doesnt work when updating from 0.40 -> 0.41 HOT 1
- read_csv ignores columns param when target csv has only header
- 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 1
- 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]`
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.