Home > other >  What do pandas in the dataframe scroll to compare different date records within the numerical size
What do pandas in the dataframe scroll to compare different date records within the numerical size

Time:09-16

I have a trading history list to roughly the following goods, need to be grouped according to different goods trading date of the period of screen out the goods within a specified period of time to meet certain conditions of abnormal records,
Specific conditions is:
Yesterday trading price is less than limit the highest prices maxprice yesterday, but today's trading price is greater than the limit the highest prices maxprice today, and limit the highest today than yesterday, limit the highest, limit the lowest price is less than the limit yesterday today the lowest
Try to Use groupby + rolling + apply to determine The price and compare each row maxprice size, but complains: ValueError: The way The value of a Series is ambiguous. Use a.e mpty, a. ool (), Anderson, tem (), a.a ny () or a.a ll ().
Consult each have great god without treatment,

CodePudding user response:

What do you think there is no code?
  • Related