pyjanitor-devs/pyjanitor

Add the ability to test whether data is in range in a pandas data frame

Open

#708 建立於 2020年7月29日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Python (164 fork)batch import
available for hackingenhancementgood first issue

倉庫指標

Star
 (1,217 star)
PR 合併指標
 (平均合併 2天 12小時) (30 天內合併 4 個 PR)

描述

Brief Description

Following up on #703, this issue seeks to introduce the ability to test whether each column in a data frame is within a user-defined range of values.

I would like to propose..

Example API

def flag_values_not_in_range(
        df: pd.DataFrame,
        bound: list,
        inclusive: bool = True
) -> pd.DataFrame:
    """
    :param df: data frame to test if values in columns are within a range
    :param bound: user-defined lower and upper bound of values to test in data frame columns
    :param inclusive: include boundaries in filtering.
        Defaults to True
    :return: True if value in column does not fall within range.
        False if value in column falls within range.
    """

貢獻者指南