Ray Zhang

Results 20 issues of Ray Zhang

Hi again! As we know, `hash(x)` in python yields different values across different interpreter sessions for security. It turns out that I am using attrs in all of my class...

Feature
Thinking

#### Describe your feature request My understanding of the polars query planner is modest at best, so please correct me if I'm (ab)using the terms used below or if I...

feature

#### Describe your feature request `pl.scan_parquet` does a great job reading the data directly, but often times parquet files are organized in a hierarchical way. Typically these are called partitions...

feature

#### Describe your feature request `pl.Expr`s supply a wide array of operator overloads including `__eq__` which is great syntactic sugar to construct more complicated nested predicate expressions. However, by losing...

feature

### Row-wise random sampling Suppose `lf` is a `pl.LazyFrame`, then one popular transformation on the lazy frame is to select rows with some preset probability parametrized by a bernoulli distribution...

enhancement

### Right joins Currently, `pl.LazyFrame` supports the following types of joins: ``` “inner” “left” “outer” “asof”, “cross” “semi” “anti” ``` One type of join that is missing from here is...

feature

**Bug Report** Standalone subscripted alias expression raises the error "Type application is only supported for generic classes" **To Reproduce** Here's a reproducible playground link: https://mypy-play.net/?mypy=0.971&python=3.10&gist=e262d3dd99f2a708e96eb28338792632 Code: ``` T = TypeVar("T")...

bug

Description =========== I'm experiencing a flaky behavior where upon `AdminClient(...).create_topics([NewTopic(topic, ...)])` and I immediately `AdminClient.list_topics(timeout=-1)`, I don't see the topic. I suspect one of the following is happening: - `create_topics`...

question

For beginners and library writers who work atop pypika, there is a common pattern of reusing Pypika objects for queries: ``` subquery = Query.from_(table).select(table.col1.as_("col"), table.col2) query1 = Query.from_(subquery).select(Avg(subquery.col) ... query2...

Simple reproducible: ``` xt::xarray __im2col = {{ 2., 3., 3., 4.}, { 2., 1., 3., 2.}}; xt::xarray __f = {{ 2., 3., 3.}, { 1., 4., 5.}, { 1., 3.,...