调用fillna()方法时将“ffill”传入给method参数,实现前向填充缺失的数据,具体示例代码如下。 In [9]: import pandas as pd import numpy as np from numpy import NaN df ...
確定! 回上一頁