-
-
Save netanel246/ecaf884fa623507f5072150ba67e744f to your computer and use it in GitHub Desktop.
Pandas Useful Tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Search '>' over all the values of the whole dataframe | |
res = df.apply(lambda row: row.astype(str).str.contains('>').any(), axis=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment