如何才能找到数据帧每一列中最后出现的非零元素?
输入项
A B 0 0 1 1 0 2 2 9 0 3 10 0 4 0 0 5 0 0
输出量
A B 0 10 2
python dataframe pandas
dataframe ×1
pandas ×1
python ×1