Module ImportFrom alias Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num body Assign NameStore IfExp CompareIs NameLoad NameLoad Call NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr Num body Assign NameStore Str Raise Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareGt SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore CompareGtE Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareNotIn NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list
N/A collections Counter N/A pandas pd N/A numpy np sigma_edit_series N/A N/A sigma_thresh in_series iter_counter max_iter N/A None 20 N/A N/A iter_counter N/A N/A iter_counter None N/A Counter iter_counter N/A N/A N/A N/A in_series count 0 N/A N/A msg Error:  No non-NaN values from which to remove outliers N/A N/A ValueError msg N/A N/A N/A iter_counter update n N/A N/A N/A iter_counter N/A n max_iter N/A N/A msg Error:  Max Number of iterations exceeded in sigma-editing N/A N/A ValueError msg N/A resid N/A in_series N/A N/A in_series mean N/A std N/A N/A resid std N/A sigma_t N/A sigma_thresh std N/A outside N/A N/A N/A resid abs sigma_t N/A N/A any outside N/A N/A N/A N/A in_series loc N/A outside N/A np NaN N/A in_series N/A sigma_edit_series sigma_thresh in_series iter_counter max_iter N/A in_series N/A ensure_col_exists N/A N/A df col df_name N/A dataframe N/A N/A N/A N/A N/A df empty N/A col N/A list N/A df columns N/A N/A msg N/A N/A in sigma_edit: {} does not have column {} format df_name N/A repr col N/A N/A ValueError msg N/A sigma_edit_dataframe N/A N/A sigma_thresh columns df max_iter N/A 20 N/A N/A 
    :type sigma_thresh: float
    :param sigma_thresh: The sigma threshold

    :type columns: list
    :param columns: a list of columns to sigma edit

    :type df: pandas.DataFrame
    :param df: The dataframe with columns of data to sigma-edit

    :type max_iter: int
    :param max_iter: Cap the number of iteration at this number

    :rtype: Pandas DataFrame
    :returns: A dataframe with ouliers set to NaN
     N/A N/A N/A N/A pd options mode chained_assignment None N/A col columns N/A N/A N/A ensure_col_exists df col df N/A ser N/A df N/A col N/A N/A N/A df loc N/A N/A N/A col N/A sigma_edit_series sigma_thresh ser max_iter max_iter N/A df N/A