Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Transform the data_frame into a parquet file on the local drive
- data_frame.to_parquet('temp_p.parquet', engine='auto', compression='snappy')
- # Read the parquet file as bytes.
- with open("temp_p.parquet", mode='rb') as f:
- fileContent = f.read()
- # Upload the bytes object to Azure
- 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