Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommydangerous/98f14bcbef5d73aac7c284d3d0662cba to your computer and use it in GitHub Desktop.
Save tommydangerous/98f14bcbef5d73aac7c284d3d0662cba to your computer and use it in GitHub Desktop.
from deltalake import DeltaTable
@data_loader
def load_data(*args, **kwargs):
dt = DeltaTable(
's3://mage-demo-public/magic-energy/1337',
storage_options={
'AWS_ACCESS_KEY_ID': '...',
'AWS_SECRET_ACCESS_KEY': '...',
},
)
return dt.to_pandas()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment