Skip to content

Instantly share code, notes, and snippets.

View baggiponte's full-sized avatar
📈
coding

baggiponte baggiponte

📈
coding
View GitHub Profile
@baggiponte
baggiponte / bigquery-and-polars
Last active December 20, 2024 11:33
BigQuery + Polars Example
# BigQuery Demo
1. Create a new directory for your project.
2. Open a terminal inside the directory.
3. Run the following:
```bash
uv init --python=3.12
uv add google-cloud-bigquery pyarrow polars
```
@baggiponte
baggiponte / repro.py
Created April 16, 2023 17:16
Pandas vs Polars read gzipped JSONL
import gzip
from pathlib import Path
import pandas as pd
import polars as pl
destination = Path("./generated.jsonl.gz")
if not destination.exists():