44
44
45
45
46
46
def _get_objs_combined_axis (objs , intersect = False , axis = 0 , sort = True ):
47
- """Extract combined index: return intersection or union (depending on the
47
+ """
48
+ Extract combined index: return intersection or union (depending on the
48
49
value of "intersect") of indexes on given axis, or None if all objects
49
50
lack indexes (e.g. they are numpy arrays)
50
51
@@ -72,7 +73,8 @@ def _get_objs_combined_axis(objs, intersect=False, axis=0, sort=True):
72
73
73
74
74
75
def _get_combined_index (indexes , intersect = False , sort = False ):
75
- """Return the union or intersection of indexes
76
+ """
77
+ Return the union or intersection of indexes
76
78
77
79
Parameters
78
80
----------
@@ -112,7 +114,8 @@ def _get_combined_index(indexes, intersect=False, sort=False):
112
114
113
115
114
116
def _union_indexes (indexes , sort = True ):
115
- """Return the union of indexes
117
+ """
118
+ Return the union of indexes
116
119
117
120
The behavior of sort and names is not consistent.
118
121
@@ -137,7 +140,8 @@ def _union_indexes(indexes, sort=True):
137
140
indexes , kind = _sanitize_and_check (indexes )
138
141
139
142
def _unique_indices (inds ):
140
- """Convert indexes to lists and concatenate them, removing duplicates
143
+ """
144
+ Convert indexes to lists and concatenate them, removing duplicates
141
145
142
146
The final dtype is inferred.
143
147
@@ -187,7 +191,8 @@ def conv(i):
187
191
188
192
189
193
def _sanitize_and_check (indexes ):
190
- """Verify the type of indexes and convert lists to Index
194
+ """
195
+ Verify the type of indexes and convert lists to Index
191
196
192
197
Cases:
193
198
@@ -224,7 +229,8 @@ def _sanitize_and_check(indexes):
224
229
225
230
226
231
def _get_consensus_names (indexes ):
227
- """Give a consensus 'names' to indexes
232
+ """
233
+ Give a consensus 'names' to indexes
228
234
229
235
If there's exactly one non-empty 'names', return this,
230
236
otherwise, return empty.
@@ -249,7 +255,8 @@ def _get_consensus_names(indexes):
249
255
250
256
251
257
def _all_indexes_same (indexes ):
252
- """Determine if all indexes contain the same elements
258
+ """
259
+ Determine if all indexes contain the same elements
253
260
254
261
Parameters
255
262
----------
0 commit comments