We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec85c2 commit c6fed0cCopy full SHA for c6fed0c
openfisca_core/indexed_enums/enum_array.py
@@ -40,6 +40,18 @@ class EnumArray(numpy.ndarray):
40
>>> str(enum_array)
41
"['Tenant']"
42
43
+ >>> tuple(enum_array)
44
+ (1,)
45
+
46
+ >>> enum_array[0]
47
+ 1
48
49
+ >>> enum_array[0] in enum_array
50
+ True
51
52
+ >>> len(enum_array)
53
54
55
>>> enum_array = EnumArray(list(Housing), Housing)
56
>>> enum_array[Housing.Tenant.index]
57
<Housing.Tenant(Tenant)>
0 commit comments