Marnix Janssen

Marnix Janssen

@marnixjanssen.com

Typescript and Rust @ https://pola.rs

27 followers75 following9 posts

eg. - /data/queries/user.ts import { queryOptions } form '@tanstack/react-query' export const getPosts = queryOptions({ queryKey: ['posts'], queryFn: getPosts, }) - /components/feed.tsx import { getPosts } from '/data/queries/user.ts' const { data: posts } = useQuery(getPosts)

Marnix Janssen reposted

Why is there a `struct` data type? A single expression produces a single column, so expressions like `value_counts` need to output structs to map the values to their counts. With that said, do you understand why `.struct.unnest` doesn't break the 1 expr = 1 column principle?

You are up to date.