Skip to content

Passing index filters to methods for selection purposes #1

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions