Arts-of-coding commited on
Commit
3fed58d
1 Parent(s): 6988c96

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -3
main.py CHANGED
@@ -30,9 +30,12 @@ mountpount=os.environ['AZURE_MOUNT_POINT'],
30
  accountkey=os.environ['AZURE_STORAGE_ACCESS_KEY'],
31
  accountname=os.environ['AZURE_STORAGE_ACCOUNT'],
32
 
33
- storage_options={'account_name': accountname, 'anon': False}
34
- df = pl.read_parquet(path="liu/filename.parquet",storage_options=storage_options)
35
- #abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
 
 
 
36
 
37
  #pq.write_table(polars_dataframe.to_arrow(), 'liu/file_name.parquet', filesystem=abfs)
38
  #storage_options = {
 
30
  accountkey=os.environ['AZURE_STORAGE_ACCESS_KEY'],
31
  accountname=os.environ['AZURE_STORAGE_ACCOUNT'],
32
 
33
+ filepath = 'az://bucket-name/df_test_predicate_pushdown.parquet'
34
+
35
+ storage_options={'account_name': accountname, 'account_key': accountkey,'anon': False}
36
+ azfs = AzureBlobFileSystem(**storage_options )
37
+
38
+ df = pl.read_parquet(filepath,storage_options=storage_options)
39
 
40
  #pq.write_table(polars_dataframe.to_arrow(), 'liu/file_name.parquet', filesystem=abfs)
41
  #storage_options = {