Skip to content

[BUG] using the exclude_empty filter doesnt filter out rows #322

@vincentkoppen

Description

@vincentkoppen

Describe the bug
The VisionConverter with a yaml that uses the exclude_empty filter, doesn't filter out any rows.
Specifically if the column is a float column.

Currently the exclude_empty filter corrects for a pd.Series value of row[col] áfter it has called has_value.
However has_value doesnt work correctly for pd.Series, since it expects a standard python object.

Input Data Validity

Did you check the validity of input data using the helper function?
yes
Examples here

Data Dump

Please dump the input (and maybe also the output) data into json files using the helper function, if applicable
Examples here

To Reproduce

  • Run the Vision Converter with an yaml that uses filters exclude empty
  • The filter doesn't work

Expected behavior

  • The filter filters out empty rows of a column

Screenshots

If applicable, add screenshots to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions