Time:02-05
Is there a way to do the following inside the .agg() function?
.agg()
hl = df[["sym", "bid", "ask"]].groupby("sym").agg(["min", "max"]) hl = hl.rename(columns={"min": "low", "max": "high"})
I see from the pandas
Page link:https//www.codepudding.com/Blockchain/290171.html