duckdb-playground/count_pandas.py
Waylon S. Walker 1fd8a68383 init
2025-03-15 20:27:48 -05:00

10 lines
330 B
Python

import pandas as pd
import s3fs
s3_endpoint_url = "https://minio.wayl.one" # Use HTTP if MinIO is not using SSL
s3_path = "s3://duckdb-playground/hotel_bookings.csv"
fs = s3fs.S3FileSystem(client_kwargs={"endpoint_url": s3_endpoint_url})
fs.ls("duckdb-playground")
df = pd.read_csv(fs.open(s3_path, mode="rb"))
print(df.shape)