Skip to content

Passing index filters to methods for selection purposes #1

@viktorvanwijk

Description

@viktorvanwijk

Example of current implementation:

def filter_job_descriptions(
    df: DataFrame, keyword: str, index_filter: Optional[pandas.Index] = None
) -> DataFrame:
    df_temp = df.loc[index_filter, :] if index_filter is not None else df
    ...

Is this the best way? Ideally these methods should just accept a dataframe, but not sure how to put the data in the original dataframe otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions