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.
Example of current implementation:
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.