Skip to content

Reading NA values properly from XLS files #1213

@changhiskhan

Description

@changhiskhan

From pystatsmodels mailing list:

"I've got an excel file created from Paste Values that when read with pandas.ExcelFile returns int 42 for #N/A values.

Looking at http://stackoverflow.com/questions/4928629/xlrd-excel-script-converting-n-a-to-42 it would seem I'd need to be able to access the xlrd cell type rather than the value to interpret as NaN. Is there a way to do this?"

As suggested by the stackoverflow article, we should use the error_text_from_code dict in the xlrd module to convert error codes to the proper text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions