@@ -354,7 +354,7 @@ def transform(self, arg, *args, **kwargs):
354
354
def _downsample (self , f ):
355
355
raise AbstractMethodError (self )
356
356
357
- def _upsample (self , f , limit = None , fill_value = None ):
357
+ def _upsample (self , f , limit = None ):
358
358
raise AbstractMethodError (self )
359
359
360
360
def _gotitem (self , key , ndim , subset = None ):
@@ -510,7 +510,7 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
510
510
limit_direction = limit_direction ,
511
511
downcast = downcast , ** kwargs )
512
512
513
- def asfreq (self , fill_value = None ):
513
+ def asfreq (self ):
514
514
"""
515
515
return the values at the new freq,
516
516
essentially a reindex
@@ -727,7 +727,7 @@ def _adjust_binner_for_upsample(self, binner):
727
727
binner = binner [:- 1 ]
728
728
return binner
729
729
730
- def _upsample (self , method , limit = None , fill_value = None ):
730
+ def _upsample (self , method , limit = None ):
731
731
"""
732
732
method : string {'backfill', 'bfill', 'pad',
733
733
'ffill', 'asfreq'} method for upsampling
@@ -761,7 +761,7 @@ def _upsample(self, method, limit=None, fill_value=None):
761
761
result .index = res_index
762
762
else :
763
763
result = obj .reindex (res_index , method = method ,
764
- limit = limit , fill_value = fill_value )
764
+ limit = limit )
765
765
766
766
return self ._wrap_result (result )
767
767
@@ -881,7 +881,7 @@ def _downsample(self, how, **kwargs):
881
881
'Frequency {} cannot be resampled to {}, as they are not '
882
882
'sub or super periods' .format (ax .freq , self .freq ))
883
883
884
- def _upsample (self , method , limit = None , fill_value = None ):
884
+ def _upsample (self , method , limit = None ):
885
885
"""
886
886
method : string {'backfill', 'bfill', 'pad', 'ffill'}
887
887
method for upsampling
@@ -902,8 +902,8 @@ def _upsample(self, method, limit=None, fill_value=None):
902
902
" datetime-like" )
903
903
# we may need to actually resample as if we are timestamps
904
904
if self .kind == 'timestamp' :
905
- return super (PeriodIndexResampler , self )._upsample (
906
- method , limit = limit , fill_value = fill_value )
905
+ return super (PeriodIndexResampler , self )._upsample (method ,
906
+ limit = limit )
907
907
908
908
ax = self .ax
909
909
obj = self .obj
@@ -1376,7 +1376,7 @@ def _adjust_dates_anchored(first, last, offset, closed='right', base=0):
1376
1376
Timestamp (lresult ).tz_localize (last_tzinfo , ambiguous = last_dst ))
1377
1377
1378
1378
1379
- def asfreq (obj , freq , method = None , how = None , normalize = False , fill_value = None ):
1379
+ def asfreq (obj , freq , method = None , how = None , normalize = False ):
1380
1380
"""
1381
1381
Utility frequency conversion method for Series/DataFrame
1382
1382
"""
@@ -1396,7 +1396,7 @@ def asfreq(obj, freq, method=None, how=None, normalize=False, fill_value=None):
1396
1396
return obj .copy ()
1397
1397
dti = date_range (obj .index [0 ], obj .index [- 1 ], freq = freq )
1398
1398
dti .name = obj .index .name
1399
- rs = obj .reindex (dti , method = method , fill_value = fill_value )
1399
+ rs = obj .reindex (dti , method = method )
1400
1400
if normalize :
1401
1401
rs .index = rs .index .normalize ()
1402
1402
return rs
0 commit comments