Skip to content

read_excel prevent from further save of the Excel file while python session is running #2465

Closed
@GentilsTo

Description

@GentilsTo

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 20H2
  • Modin version (modin.__version__): 0.8.2
  • Python version: Python 3.8.3

An really simple example file to reproduce:
test.xlsx

  • Code we can use to reproduce:
import modin.pandas as pd
df = pd.read_excel('test.xlsx')

Then open the Excel file (if not already open), and try to save it.

Describe the problem

Contrary to behavior in Pandas, using pd.read_excel with modin, prevent any further saving of the Excel files afterwards, until the python session is closed.
While trying to do it in Excel, get multiple error pop-up talking about "sharing issue", given some random number as Excel file then.
For my use case, it's quite handy to get the Excel file and the python session open in the same time, loading the data, working on it with pandas, and potentially (especially during developpement) making small change in Excel and reloading them right away in python. Also, that doesn't seem like a safe behavior and might hide something bigger ? don't know.

Source code / logs

image
image
image
(sorry it's in french)

Metadata

Metadata

Assignees

Labels

bug 🦗Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions