git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

format number is not recognized in a cycle


Dear Peter, Deal all,

Trying different options, I manage this solution:

   mask = (df['datatime'] > str(start_date[ii])) & (df['datatime'] <=  str(end_date[ii]))

As you can notice, I have put str before start_date[ii]) and end_date[ii].

What do you think?

Thanks






On Monday, 4 February 2019 20:00:32 UTC+1, Peter Otten  wrote:
> Diego Avesani wrote:
> 
> > this is the code:
> 
> While the example is fine now it runs without error over here, on rather old 
> versions of pandas (0.13.1) and numpy (1.8.2).
> 
> Therefore I'm out of the debugging cycle for now.