We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DataFrame
change_domain
1 parent e49776b commit 6fc087fCopy full SHA for 6fc087f
1 file changed
python-spec/src/somacore/data.py
@@ -11,6 +11,7 @@
11
Any,
12
ClassVar,
13
Iterator,
14
+ List,
15
Optional,
16
Sequence,
17
Tuple,
@@ -27,6 +28,9 @@
27
28
29
_RO_AUTO = options.ResultOrder.AUTO
30
31
+AxisDomain = Union[None, Tuple[Any, Any], List[Any]]
32
+Domain = Sequence[AxisDomain]
33
+
34
35
class DataFrame(base.SOMAObject, metaclass=abc.ABCMeta):
36
"""A multi-column table with a user-defined schema.
@@ -173,7 +177,7 @@ def read(
173
177
@abc.abstractmethod
174
178
def change_domain(
175
179
self,
176
- newdomain: Optional[Sequence[Optional[Tuple[Any, Any]]]],
180
+ newdomain: Domain,
181
check_only: bool = False,
182
) -> StatusAndReason:
183
"""Allows you to enlarge the domain of a SOMA :class:`DataFrame`, when
0 commit comments