Skip to content

Instantly share code, notes, and snippets.

@colin-ho
Created April 21, 2025 20:33
Show Gist options
  • Save colin-ho/45753394768fdd0eaac78266b8979ad3 to your computer and use it in GitHub Desktop.
Save colin-ho/45753394768fdd0eaac78266b8979ad3 to your computer and use it in GitHub Desktop.
df = daft.read_parquet('grouped_contributors')
df = df.where((df['author_name'] == 'Sammy Sidhu') & (df['repo_name'] == 'Daft'))
df.show()
╭──────────────┬───────────┬─────────────────────┬─────────────┬──────────────┬────────────┬─────────────────────┬────────────────────┬────────────────────┬────────────────────╮
│ repo_owner ┆ repo_name ┆ author_email ┆ author_name ┆ commit_count ┆ … ┆ files_changed ┆ message ┆ first_commit ┆ last_commit │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ ┆ --- ┆ --- ┆ --- ┆ --- │
│ Utf8 ┆ Utf8 ┆ Utf8 ┆ Utf8 ┆ UInt64 ┆ (3 hidden) ┆ List[Utf8] ┆ Utf8 ┆ Timestamp(Millisec ┆ Timestamp(Millisec │
│ ┆ ┆ ┆ ┆ ┆ ┆ ┆ ┆ onds, None) ┆ onds, None) │
╞══════════════╪═══════════╪═════════════════════╪═════════════╪══════════════╪════════════╪═════════════════════╪════════════════════╪════════════════════╪════════════════════╡
│ Eventual-Inc ┆ Daft ┆ sammy@eventualcompu ┆ Sammy Sidhu ┆ 6 ┆ … ┆ [tests/test_datacla ┆ add dict for root ┆ 2022-06-10 ┆ 2022-06-17 │
│ ┆ ┆ ting.com ┆ ┆ ┆ ┆ sses.py, d… ┆ types ┆ 02:02:32 ┆ 23:46:48 │
│ ┆ ┆ ┆ ┆ ┆ ┆ ┆ creat… ┆ ┆ │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Eventual-Inc ┆ Daft ┆ sammy.sidhu@gmail.c ┆ Sammy Sidhu ┆ 83 ┆ … ┆ [daft/schema.py, ┆ missed these files ┆ 2022-05-10 ┆ 2022-07-14 │
│ ┆ ┆ om ┆ ┆ ┆ ┆ tests/test_s… ┆ in pre-com… ┆ 20:17:33 ┆ 00:59:31 │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Eventual-Inc ┆ Daft ┆ samster25@users.nor ┆ Sammy Sidhu ┆ 461 ┆ … ┆ [Cargo.lock, ┆ [PERF] ┆ 2022-05-14 ┆ 2025-03-02 │
│ ┆ ┆ eply.githu… ┆ ┆ ┆ ┆ Cargo.toml, src/… ┆ Micropartition, ┆ 00:04:51 ┆ 22:06:33 │
│ ┆ ┆ ┆ ┆ ┆ ┆ ┆ lazy l… ┆ ┆ │
╰──────────────┴───────────┴─────────────────────┴─────────────┴──────────────┴────────────┴─────────────────────┴────────────────────┴────────────────────┴────────────────────╯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment