KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Most operations in pandas can be accomplished with operator chaining ( groupby , aggregate , apply , etc), but the only way I've found to filter rows is via normal bracket indexing df_filtered = df[df['column'] == value] This is unappealing as it requires I assign df to a variable before being able to filter on its values. Is there something more like the following? df_filtered = df.mask(lambda x: x['column'] == value)
Tags (comma-separated)
Save Edits
Cancel