6 ms·
I strongly prefer .query() for legibility and that it can but used in a pipe. My only problem is that often flake8 will not detect the use of a variable inside
by data_ders 7y ago
I strongly prefer .query() for legibility and that it can but used in a pipe. My only problem is that often flake8 will not detect the use of a variable inside of the query string. Has anyone else come across this before?
- truculent 7y agoIf you supply a function to `.loc`, you can use it in pipes pretty easily. E.g. ``` my_dataframe.loc[lambda df: df['col'] > 0.8] ``` Would this help work around your issue?