29
29
import pandas .core .common as com
30
30
from pandas .core .indexes .base import Index , maybe_extract_name
31
31
32
- _num_index_shared_docs = dict ()
32
+ _num_index_shared_docs = {}
33
33
34
34
35
35
class NumericIndex (Index ):
@@ -224,7 +224,12 @@ def _union(self, other, sort):
224
224
An Index instance can **only** contain hashable objects.
225
225
"""
226
226
227
- _int64_descr_args = dict (klass = "Int64Index" , ltype = "integer" , dtype = "int64" , extra = "" )
227
+ _int64_descr_args = {
228
+ "klass" : "Int64Index" ,
229
+ "ltype" : "integer" ,
230
+ "dtype" : "int64" ,
231
+ "extra" : "" ,
232
+ }
228
233
229
234
230
235
class IntegerIndex (NumericIndex ):
@@ -286,9 +291,12 @@ class Int64Index(IntegerIndex):
286
291
_default_dtype = np .dtype (np .int64 )
287
292
288
293
289
- _uint64_descr_args = dict (
290
- klass = "UInt64Index" , ltype = "unsigned integer" , dtype = "uint64" , extra = ""
291
- )
294
+ _uint64_descr_args = {
295
+ "klass" : "UInt64Index" ,
296
+ "ltype" : "unsigned integer" ,
297
+ "dtype" : "uint64" ,
298
+ "extra" : "" ,
299
+ }
292
300
293
301
294
302
class UInt64Index (IntegerIndex ):
@@ -314,9 +322,12 @@ def _convert_arr_indexer(self, keyarr):
314
322
return com .asarray_tuplesafe (keyarr , dtype = dtype )
315
323
316
324
317
- _float64_descr_args = dict (
318
- klass = "Float64Index" , dtype = "float64" , ltype = "float" , extra = ""
319
- )
325
+ _float64_descr_args = {
326
+ "klass" : "Float64Index" ,
327
+ "dtype" : "float64" ,
328
+ "ltype" : "float" ,
329
+ "extra" : "" ,
330
+ }
320
331
321
332
322
333
class Float64Index (NumericIndex ):
0 commit comments