SHARE
TWEET

Untitled

a guest Jun 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pandas_df=pd.read_excel(os.path.join(os.getcwd(),'pragya.xlsx'))
  2.     spark_df = spark.createDataFrame(pandas_df)
  3.     spark_df.write.mode("overwrite").saveAsTable("myDB.pragya_test")
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