Comments (3)
@cmdlineluser Thank you so much. I guess I was missing the first sort.
from polars.
Minimal repro:
(pl.LazyFrame({"foo": [1, 2]})
.sort("foo")
.head(0)
.sort("foo")
.collect()
)
# shape: (2, 1)
# ┌─────┐
# │ foo │
# │ --- │
# │ i64 │
# ╞═════╡
# │ 1 │
# │ 2 │
# └─────┘
(pl.LazyFrame({"foo": [1, 2]})
.sort("foo")
.head(0)
.sort("foo")
.collect(slice_pushdown=False)
)
# shape: (0, 1)
# ┌─────┐
# │ foo │
# │ --- │
# │ i64 │
# ╞═════╡
# └─────┘
from polars.
Thanks for the reproduction.
from polars.
Related Issues (20)
- `.pivot` should offer a column prefix option.
- Filtering an empty data frame with a literal True adds a row
- Enum filtering has broken. HOT 3
- Provide per-version documentation on the website
- Cannot create polars dataframes on AWS Lambda HOT 2
- Panic when using shift and over on empty data
- Scanning parquet for a UInt64 value does not work for equality
- [Python] `min_periods` should be a nemed argument or not? HOT 2
- chore: use `polars-compute` in `polars-parquet` statistics
- pl.Enum equivalence is category order dependent HOT 3
- `Decimal[*, scale>0] * Int` has differing result type than `Decimal[*, scale>0] * Decimal[*,scale=0]` HOT 1
- The `pivot` feature does not compile in Rust polars v38-40. HOT 2
- "The children must have an equal number of values" error when writing parquet with nested values and nulls HOT 7
- Regression from 0.20.21 -> 0.20.22-rc.1 `pl.Expr.list.to_array(n)` is throwing `polars.exceptions.ComputeError: not all elements have the specified width n`
- performance issue with tpch q7 after dropping columns and using sink_parquet HOT 2
- `map_elements` doesn't respect `return_dtype` within an `over` statement on an empty DataFrame
- `pl.lit(None, dtype=pl.Struct({"a": pl.Int64()}))` gives `{'a': None}`, not `None` HOT 1
- Support equality operation on nested Array types
- Unordered enum data type HOT 2
- Support interval expressions in Python SQL Context
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.