Skip to content

bobby_dreamer

Python Errors & Solutions

python, numpy, pandas, e&s1 min read

Last updated : 17/April/2020

Events are in reverse chronological order.


Error : TypeError: unorderable types: datetime.date() > str()
Date : 17/April/2020

When executing the below line in pandas, got that error.

Analysis

Update 1 : Updated like below, still got an error.

Solution :

Update 2 : df_temp[df_temp['ts'] > pd.to_datetime(dt_3d).date()]

Worked


Error : TypeError: 'tuple' object is not callable
Date : 03/April/2020

Solution : This took some time to solve. I had used keyword range as a variable.

Solution is del range and then the loop worked.