Created
July 5, 2022 14:09
-
-
Save agalea91/3887db2e9fc103f47480c8e6d1afe1ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
creds = "/path/to/creds.json" | |
df = pd.read_csv("file.csv") | |
# check df's dtypes and column names | |
df.to_parquet("gs://bucket/file.parquet", storage_options=dict(token=creds)) | |
# then upload through console. auto-detects schema |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment