jamescooper
Well-known Member
- Joined
- Sep 8, 2014
- Messages
- 886
This generates the minimum value; how would I go about calculating the 2nd lowest value?
import pandas as pd
ct_mean = pd.crosstab(df['Check-In'], df['Date Captured'],
values=df['Current price'], aggfunc='min')
Many thanks.
import pandas as pd
ct_mean = pd.crosstab(df['Check-In'], df['Date Captured'],
values=df['Current price'], aggfunc='min')
Many thanks.