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?