This commit is contained in:
Waylon S. Walker 2025-03-15 20:27:48 -05:00
commit 1fd8a68383
10 changed files with 1118 additions and 0 deletions

10
count_pandas.py Normal file
View file

@ -0,0 +1,10 @@
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)