|
36 | 36 |
|
37 | 37 | class NumericIndex(Index):
|
38 | 38 | """
|
39 |
| - Provide numeric type operations |
40 |
| -
|
41 |
| - This is an abstract class |
| 39 | + Provide numeric type operations. |
42 | 40 |
|
| 41 | + This is an abstract class. |
43 | 42 | """
|
44 | 43 |
|
45 | 44 | _is_numeric_dtype = True
|
@@ -87,7 +86,9 @@ def _shallow_copy(self, values=None, **kwargs):
|
87 | 86 | return super()._shallow_copy(values=values, **kwargs)
|
88 | 87 |
|
89 | 88 | def _convert_for_op(self, value):
|
90 |
| - """ Convert value to be insertable to ndarray """ |
| 89 | + """ |
| 90 | + Convert value to be insertable to ndarray. |
| 91 | + """ |
91 | 92 |
|
92 | 93 | if is_bool(value) or is_bool_dtype(value):
|
93 | 94 | # force conversion to object
|
@@ -135,7 +136,7 @@ def _concat_same_dtype(self, indexes, name):
|
135 | 136 | @property
|
136 | 137 | def is_all_dates(self):
|
137 | 138 | """
|
138 |
| - Checks that all the labels are datetime objects |
| 139 | + Checks that all the labels are datetime objects. |
139 | 140 | """
|
140 | 141 | return False
|
141 | 142 |
|
@@ -169,7 +170,7 @@ def _union(self, other, sort):
|
169 | 170 | ] = """
|
170 | 171 | Immutable ndarray implementing an ordered, sliceable set. The basic object
|
171 | 172 | storing axis labels for all pandas objects. %(klass)s is a special case
|
172 |
| - of `Index` with purely %(ltype)s labels. %(extra)s |
| 173 | + of `Index` with purely %(ltype)s labels. %(extra)s. |
173 | 174 |
|
174 | 175 | Parameters
|
175 | 176 | ----------
|
@@ -412,7 +413,9 @@ def _format_native_types(
|
412 | 413 | return formatter.get_result_as_array()
|
413 | 414 |
|
414 | 415 | def get_value(self, series, key):
|
415 |
| - """ we always want to get an index value, never a value """ |
| 416 | + """ |
| 417 | + We always want to get an index value, never a value. |
| 418 | + """ |
416 | 419 | if not is_scalar(key):
|
417 | 420 | raise InvalidIndexError
|
418 | 421 |
|
|
0 commit comments