diff --git a/_modules/arkouda/index.html b/_modules/arkouda/index.html index 81b8883a3b..0ae88da25a 100644 --- a/_modules/arkouda/index.html +++ b/_modules/arkouda/index.html @@ -465,13 +465,26 @@
def __getitem__(self, key):
from arkouda.series import Series
+ allow_list = False
+ if isinstance(self.values, list):
+ allow_list = True
+
if isinstance(key, Series):
key = key.values
if isinstance(key, int):
return self.values[key]
- return Index(self.values[key])
+ if isinstance(key, list):
+ if len(key) < self.max_list_size:
+ return Index([self.values[k] for k in key], allow_list=allow_list)
+ else:
+ raise ValueError(
+ f"Unable to get list of size greater than "
+ f"Index.max_list_size ({self.max_list_size})."
+ )
+
+ return Index(self.values[key], allow_list=allow_list)
def __repr__(self):
# Configured to match pandas
diff --git a/autoapi/arkouda/index.html b/autoapi/arkouda/index.html
index 5619ee87a9..c737cc03e6 100644
--- a/autoapi/arkouda/index.html
+++ b/autoapi/arkouda/index.html
@@ -1329,8 +1329,8 @@ Functionssearch_intervals
(vals, intervals[, tiebreak, hierarchical])
Given an array of query vals and non-overlapping, closed intervals, return
-
-
+segarray
(segments, values[, lengths, grouping])
+Alias for the from_parts function. Prevents user from needing to call ak.SegArray constructor
setdiff1d
(→ Union[arkouda.pdarrayclass.pdarray, ...)
Find the set difference of two arrays.