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)
- Consistency in check_exact between assert_frame_equal and polars.DataFrame.equals
- `compat_level` documentation is unclear
- Request to return LazyFrame for pl.from_arrow and more HOT 2
- rolling_corr giving inconsistent results HOT 1
- `test_read_database_cx_credentials` expected exception does not bifurcate over correct Python version HOT 1
- In `scan_parquet()`, `include_file_paths` returns twice the same column HOT 1
- In `bin.size()`, the `unit` parameter is not described HOT 1
- `.implode().list` method is not valid before `.over`. HOT 4
- Upgrading to 0.42 breaks compilation HOT 4
- Expr `.implode().get().over()` has strange results. HOT 3
- upsample not working if arguments are only sorted within group HOT 2
- Behaviour change of Expr.list.drop_nulls for structs with all None fields HOT 1
- `.first` behind `.sort_by.slice` gets wrong result.
- `Expr.shuffle` uses different order per column HOT 2
- `.struct.field()` after `shuffle()` seems to produce incorrect results HOT 2
- Multi-output, multi-sink lazy polars HOT 5
- Inconsistent Results Between Pandas and Polars using cut (and qcut)? HOT 3
- ExprStringNameSpace replace / replace_all literal flag ignored for dataframes with multiple rows
- `dt.round()` slow/fast path use different rounding HOT 2
- write_parquet with partition_by silently overwrites existing files HOT 7
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.