daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top