whenever I try to use len function in my code I get this error ?
long_trade={}
short_trade={}
long_trade['total_long']=get_total_long(long_df,len(long_df))
short_trade['total_short']=get_total_short(short_df,len(short_df))
print(short_trade)
print(long_trade)
Error
> TypeError Traceback (most recent call
> last) <ipython-input-37-619a2cc53415> in <module>()
> 2 long_trade={}
> 3 short_trade={}
> ----> 4 long_trade['total_long']=get_total_long(long_df,len(long_df))
> 5 short_trade['total_short']=get_total_short(short_df,len(short_df))
> 6
>
> TypeError: 'numpy.int64' object is not callable