-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Idea: Frame/series should support grep-like context specification #3269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, This issue's last interaction was in 2013. I noticed you had paused work on the PR - are you aware of any other efforts to pick this up? Does this continue to represent a useful enhancement? |
things like this are contemplated in pandas 2.0 |
I came up with this for now:
|
Just want to give big thumbs up for a grep-like functionality. For me the most useful part of it is for a dataframe search across all columns (stringified values). This is hugely time saving functionality. For now using the following:
It's a big time saver to not always have to first inspect the columns and/or values and only then perform a filter specifying a column name when debugging; as this need arises very often. So it would save time on having to find the right column and also having to type the column name (you can't always use auto-complete with the dot-syntax as far as I'm aware like when a columns contains spaces (which happens often). Also, an auto-complete supported debugging tool is not always immediately accessible). |
In shell grep you can do stuff like:
I'd be glad to have something like
in core.
An example use-case:
looking for point of change in a timeseries, where you want to
grab a window around a point of change:
the "return list of series" is really a sort of variant on groupby,
and could concievably be implemented on top of something like
#3101, after de-warting.
Would also love to have this working with #2460 (if it ever makes it in)
for the same (but slow) on plain,unindexed data columns.
The text was updated successfully, but these errors were encountered: