Tquant Lab, Python, Backpacking, Tejapi Application.
df.groupby('股票代碼')['成交量_千股'].mean().reset_index() average_vol = average_vol.rename(columns={'成交量_千股': '平均成交量'}) high_price_stocks = df.groupby('股票代碼')['最低價'].min().reset_index() high_price_stocks = high_price_stocks[high_price_stocks['最低價'] >= 50] merge_data = pd.merge(average_vol,