Guest User

Untitled

a guest
Jan 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # Transform the data_frame into a parquet file on the local drive
  2. data_frame.to_parquet('temp_p.parquet', engine='auto', compression='snappy')
  3.  
  4. # Read the parquet file as bytes.
  5. with open("temp_p.parquet", mode='rb') as f:
  6. fileContent = f.read()
  7.  
  8. # Upload the bytes object to Azure
  9. service.create_file_from_bytes(share_name, file_path, file_name, fileContent, index=0, count=len(fileContent))
Add Comment
Please, Sign In to add comment