Python Pandas DataFrame: unorderable types: str() > int() Python Pandas DataFrame: unorderable types: str() > int() pandas pandas

Python Pandas DataFrame: unorderable types: str() > int()


I got this error for some not identical dates. I solved it using a type change first.

Try :

fec[[contb_receipt_amt]] = fec[[contb_receipt_amt]].astype(str)

Then try again the count.