- DataFrame.interpolate(method='linear', axis=0, limit=None, inplace=False, limit_direction=None, limit_area=None, downcast=None, **kwargs)#
Interpolate data values between some points.
- methodstr, default ‘linear’
Interpolation technique to use. Currently, only ‘linear` is supported. * ‘linear’: Ignore the index and treat the values as equally spaced. This is the only method supported on MultiIndexes. * ‘index’, ‘values’: linearly interpolate using the index as an x-axis. Unsorted indices can lead to erroneous results.
- axisint, default 0
Axis to interpolate along. Currently, only ‘axis=0’ is supported.
- inplacebool, default False
Update the data in place if possible.
- Series or DataFrame
Returns the same object type as the caller, interpolated at some or all