@@ -352,7 +352,7 @@ def transform(self, arg, *args, **kwargs):
352352 def _downsample (self , f ):
353353 raise AbstractMethodError (self )
354354
355- def _upsample (self , f , limit = None , fill_value = None ):
355+ def _upsample (self , f , limit = None ):
356356 raise AbstractMethodError (self )
357357
358358 def _gotitem (self , key , ndim , subset = None ):
@@ -499,21 +499,12 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
499499 limit_direction = limit_direction ,
500500 downcast = downcast , ** kwargs )
501501
502- def asfreq (self , fill_value = None ):
502+ def asfreq (self , ** kwargs ):
503503 """
504504 return the values at the new freq,
505- essentially a reindex
506-
507- Parameters
508- ----------
509- fill_value: scalar, optional
510- Value to use for missing values, applied during upsampling (note
511- this does not fill NaNs that already were present).
512-
513- .. versionadded:: 0.20.0
514-
505+ essentially a reindex with (no filling)
515506 """
516- return self ._upsample ('asfreq' , fill_value = fill_value )
507+ return self ._upsample ('asfreq' , ** kwargs )
517508
518509 def std (self , ddof = 1 , * args , ** kwargs ):
519510 """
@@ -719,8 +710,6 @@ def _upsample(self, method, limit=None, fill_value=None):
719710 'ffill', 'asfreq'} method for upsampling
720711 limit : int, default None
721712 Maximum size gap to fill when reindexing
722- fill_value : scalar, default None
723- Value to use for missing values
724713
725714 See also
726715 --------
@@ -866,14 +855,12 @@ def _downsample(self, how, **kwargs):
866855 'Frequency {} cannot be resampled to {}, as they are not '
867856 'sub or super periods' .format (ax .freq , self .freq ))
868857
869- def _upsample (self , method , limit = None , fill_value = None ):
858+ def _upsample (self , method , limit = None ):
870859 """
871860 method : string {'backfill', 'bfill', 'pad', 'ffill'}
872861 method for upsampling
873862 limit : int, default None
874863 Maximum size gap to fill when reindexing
875- fill_value : scalar, default None
876- Value to use for missing values
877864
878865 See also
879866 --------
0 commit comments