Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tommydangerous/b6ce45ae3da190fb1ddb9e005cc1be04 to your computer and use it in GitHub Desktop.
Save tommydangerous/b6ce45ae3da190fb1ddb9e005cc1be04 to your computer and use it in GitHub Desktop.
from deltalake import DeltaTable
dt = DeltaTable(
# Change this to your unique URI from a previous step
# if you’re using your own AWS credentials.
's3://mage-demo-public/magic-energy-and-battle-history/1337',
storage_options={
'AWS_ACCESS_KEY_ID': '...',
'AWS_SECRET_ACCESS_KEY': '...',
},
)
dt.to_pandas(partitions=[('planet', '=', 'Gaia')])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment