Skip to content

Ability to specify additional locations of DataFrame to check - follow up #65

@drosengarten

Description

@drosengarten

Hi,
This is a follow up from:
#57

The point of the issue is for a pass through function. It is a small bit of code, but can clearly make the parameters needed for a function specified. It is easier for both a human and IDEs to be able to determine that the function

@ck.has_columns(df='df',columns=['grade','extra_credit','total_assignment_score'])
def aggregate_totals(df):

needs three columns with specific names. the user of the code shouldn't have to read through the source to determine the names, and just putting into docstring doesn't enforce the definition. Self documenting code is better than a docstring.

Also, this issue also covers multiple return dataframes that the current implementation does not implement.

I have the code (it is short and sweet) and and the associated tests that I can create a pull request from.

Thanks

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions