File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -393,9 +393,8 @@ def values(self):
393
393
def get_values (self ):
394
394
return self .values
395
395
396
- def _na_value (self ):
397
- # The expected NA value to use with this index.
398
- return np .nan
396
+ _na_value = np .nan
397
+ """The expected NA value to use with this index."""
399
398
400
399
@property
401
400
def is_monotonic (self ):
@@ -2261,7 +2260,7 @@ def get_level_values(self, level):
2261
2260
unique_vals = self .levels [num ] # .values
2262
2261
labels = self .labels [num ]
2263
2262
values = Index (com .take_1d (unique_vals .values , labels ,
2264
- fill_value = unique_vals ._na_value () ))
2263
+ fill_value = unique_vals ._na_value ))
2265
2264
values .name = self .names [num ]
2266
2265
return values
2267
2266
Original file line number Diff line number Diff line change @@ -495,9 +495,8 @@ def _mpl_repr(self):
495
495
# how to represent ourselves to matplotlib
496
496
return tslib .ints_to_pydatetime (self .asi8 , self .tz )
497
497
498
- def _na_value (self ):
499
- # The expected NA value to use with this index.
500
- return tslib .NaT
498
+ _na_value = tslib .NaT
499
+ """The expected NA value to use with this index."""
501
500
502
501
def __unicode__ (self ):
503
502
from pandas .core .format import _format_datetime64
You can’t perform that action at this time.
0 commit comments