我有一个棒球选手信息的数据框:
fig,ax = plt.subplots(1)
ax.add_patch(rect) # Add the patch to the Axes
legend_elements = build_legend(color_map)
ax.legend(handles=legend_elements,loc='upper left')
plt.show()
我想返回击球平均值('AB')大于100的击球平均值('平均值')列的最大值。平均值列中也有'NaN'。