Issue with databricks
See original GitHub issueHi,
I am using XlsxWriter on Databricks to write an Excel file on an Azure blob but I have the following issue : FileCreateError: [Errno 95] Operation not supported.
I am using Python version 3.7.3 and XlsxWriter 1.2.8.
Here is some code that demonstrates the problem:
import xlsxwriter
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD'))
writer = pd.ExcelWriter("output.xlsx", engine='xlsxwriter')
df.to_excel(writer, sheet_name='output_1')
writer.save()
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Errors and troubleshooting for Databricks Repos
Errors and troubleshooting for Databricks Repos · Invalid credentials · Secure connection...SSL problems · Timeout errors · 404 errors · Resource not ...
Read more >Troubleshoot performance bottlenecks in Azure Databricks
Monitoring and troubleshooting performance issues is a critical when operating production Azure Databricks workloads.
Read more >Issues · databricks/Spark-The-Definitive-Guide - GitHub
Issues : databricks/Spark-The-Definitive-Guide ... Have a question about this project? Sign up for a free GitHub account to open an issue and ...
Read more >Databricks Delta Issues | Stitch Documentation - Stitch Data
The automatic schema evolution feature available for Delta tables can cause issues when loading data to your Databricks Delta destination. It is recommended...
Read more >Databricks Performance: Fixing the Small File Problem with ...
A common Databricks performance problem we see in enterprise data lakes are that of the “Small Files” issue. One of our customers is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to solve it by saving the file locally in Databricks, then I copy it to the desired mount.
Resolved
Similar to the suggestion from @pfernandez-sanofi above the Databricks documentation now recommends performing the operation on a local disk and then copying the output XlsxWriter file to dbfs.
From the docs https://docs.databricks.com/data/databricks-file-system.html#local-file-api-limitations: