frex-is opened a new issue, #6056:
URL: https://github.com/apache/opendal/issues/6056

   ## Describe the bug
   
   The documentation contains an error in the example that demonstrates writing 
and reading a CSV file using the Operator. The file is written as `test.csv`, 
but the example tries to read from `test123.csv`, which leads to an error.
   
   ## Relevant Snippet from Documentation:
   
   file path : `bindings/python/docs/examples/pandas.ipynb`
   
   ```python
   # Create and write a csv file
   op.write("test.csv", b"name,age\nAlice,25\nBob,30\nCharlie,35")
   
   # Open and read the DataFrame from the file.
   with op.open("test123.csv", mode="rb") as file:
       read_df = pd.read_csv(file)
       print(f"read_df: {read_df}")
   ```
   
   ## Suggested Fix :
   
   ```
   # Create and write a csv file
   op.write("test.csv", b"name,age\nAlice,25\nBob,30\nCharlie,35")
   
   # Open and read the DataFrame from the file.
   with op.open("test.csv", mode="rb") as file:
       read_df = pd.read_csv(file)
       print(f"read_df: {read_df}")
   ```
   
   ## Impact:
   
   This bug can mislead users or cause confusion when trying to follow the 
documentation example.
   
   ## Are you willing to submit a PR to fix this bug?
   
   - [x] Yes, I would like to submit a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to