We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Table.cast
Table.try_cast
1 parent dd0bbc2 commit 3bfcc0cCopy full SHA for 3bfcc0c
ibis/expr/types/relations.py
@@ -370,7 +370,7 @@ def __contains__(self, name: str) -> bool:
370
"""
371
return name in self.schema()
372
373
- def cast(self, schema: SchemaLike) -> Table:
+ def cast(self, schema: SchemaLike, /) -> Table:
374
"""Cast the columns of a table.
375
376
Similar to `pandas.DataFrame.astype`.
@@ -447,7 +447,7 @@ def cast(self, schema: SchemaLike) -> Table:
447
448
return self._cast(schema, cast_method="cast")
449
450
- def try_cast(self, schema: SchemaLike) -> Table:
+ def try_cast(self, schema: SchemaLike, /) -> Table:
451
452
453
If the cast fails for a row, the value is returned
0 commit comments