Skip to content

Add row filtering operator #5900

@elyase

Description

@elyase

This would allow chaining operations like:

pd.read_csv('imdb.txt')
  .sort(columns='year')
  .filter(lambda x: x['year']>1990)   # <---this is missing in Pandas
  .to_csv('filtered.csv')

For current alternatives see:

http://stackoverflow.com/questions/11869910/pandas-filter-rows-of-dataframe-with-operator-chaining

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignIdeasLong-Term Enhancement DiscussionsIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions