Open TriSSS91 opened 5 days ago
Deleted my previous comment. Thanks for reporting, my bad, this error has been fixed for the output not the input :/ (#32) Will fix ASAP
Should be fixed in 0.4.8.
pip install --upgrade --force-reinstall amphi-etl jupyterlab-amphi
Checked different scenarious:
header
:
header='None'
, but we need to generate header=None
):ValueError: header must be integer or list of integers
sheet_name
:
['Sheet1']
) - got an error (because we got a Dict of DataFrames, and can't use .convert_dtypes()
):Error 'dict' object has no attribute 'convert_dtypes' Show Traceback
AttributeError Traceback (most recent call last) Cell In[58], line 7 1 # Source code generated by Amphi 2 # Date: 2024-06-28 17:32:22 3 # Additional dependencies: openpyxl 4 import pandas as pd ----> 7 excelfileInput1 = pd.read_excel("dq_report.xlsx", engine='openpyxl', sheet_name=['Sheet1'], header=0).convert_dtypes() 9 excelfileInput1
AttributeError: 'dict' object has no attribute 'convert_dtypes'
Some problems with reading Excel.
Maybe
pd.read_excel()
is looking forsheet_name
argument instead ofsheet
argument:pd.read_excel("dq_report.xlsx", sheet_name='Sheet1', header='0').convert_dtypes()