Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Consistent handling of missing data  #221

@SashaWeinstein

Description

@SashaWeinstein

Each report should be able to handle two situations: when the data parameter is None and the data parameter is an empty dataframe. Each report should be able to catch these situations and tell the user what happened without throwing a bug.

Not all situations where the dataframe is empty are an issue on the backend. Sometime there may be no manual corrections applied and the app is correctly displaying what happened. The data should never be None though, this is always a bug.

I think the best way to ensure this consistency is automated testing. We should iterate through all our reports and pass them None and pd.DataFrame() and make sure they exhibit the correct behavior. I don't know how to check what st elements have been called, hopefully there is a good way.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions