Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/3eb4fe0bbaf1c8fc5a859b8ac022e25c to your computer and use it in GitHub Desktop.
Save velotiotech/3eb4fe0bbaf1c8fc5a859b8ac022e25c to your computer and use it in GitHub Desktop.
non_numeric_profits = df.profit.str.contains('[^0-9.-]')
df.loc[non_numeric_profits].head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment