Python – Find rows that have in the cells duplicates symbols

  python

I am using Python, I have a dataframe, in the dataframe I have columns with strings and columns with floats.

some values in the cells have two symbols like this:

-0.015-0.156 ==> middle ‘-‘ is not ok, two dots not ok

0.014-0.106 ==> middle ‘-‘ is not ok, two dots not ok

0.013.0.156 ==> two dots not ok

-0.015 ==> ok

0.013 ==> ok

I want to find all the rows that have a value that is "not ok".

how can I do it?, Maybe with a condition of two dots.

Source: Python Questions

LEAVE A COMMENT