Skip to content

BUG: Reading Excel File - unsupported operand type(s) for +: 'NoneType' and 'int' #60578

@Pandas-Unimpressed

Description

@Pandas-Unimpressed

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

LakehousePath = f'abfss://{Workspace}@onelake.dfs.fabric.microsoft.com/Bronze.Lakehouse/'

if len(SourceFileList) > 0:
    for SourceFile in SourceFileList:
        LakeHouseFilePath = LakehousePath + SourceFile

        PandasDataFrame = pandas.read_excel(LakeHouseFilePath, engine='openpyxl', sheet_name=0, header=None, skiprows=0, usecols='B,C,D', dtype={'B:str','C:np.float32','D:np.float32'}, na_filter=False)

Issue Description

If its a valid excel spreadsheet then it should load - there shouldnt be any need to any fiddling about - at the very least to STR

Just because a CELL has a formula in it that points to a BLANK cell should NOT cause a failure

Just because a CELL has a DIV/0 Error in it should NOT cause failure

Expected Behavior

The Excel file loads

Installed Versions

Whatever is the latest in Fabric

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions