I'm kind of new to python, today I was trying to do some operations in a financial DataFrame (first column of YYYY-MM-DD and second one of values). When I tried to apply a simple pct_change() operation, it gave me this error:
TypeError: ufunc true_divide cannot use operands with types
dtype('<M8[ns]') and dtype('<M8[ns]')
What is this error exactly caused by? And how can I work around it? Because I couldn't really find many explanations online. Thanks a lot in advance!