![](/img/trans.png)
[英]Read CSV from Azure Data Lake Storage Gen 2 to Pandas Dataframe | NO DATABRICKS
[英]Databrics save pandas dataframe as CSV Azure Data Lake
我在 Azure Databrickk 中有 Pandas 數據框。 我需要將它保存為 Azure Data Lake gen2 上的一個 csv 文件。
我試過:
df.write.mode("overwrite").format("com.databricks.spark.csv").option("header","true").csv(dstPath)
和
df.write.format("csv").mode("overwrite").save(dstPath)
但現在我有 10 個 csv 文件,但我需要一個文件並為其命名。
提前致謝。
我找到了一個解決方案:
df.to_csv('/dbfs/mnt/....../df.csv', sep=',', header=True, index=False)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.