Skip to content

Commit

Permalink
docs: improve cross-linking within reference
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews authored and cpcloud committed Oct 4, 2023
1 parent e7e8da2 commit 9e45194
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibis/expr/schema.py
Expand Up @@ -17,7 +17,7 @@


class Schema(Concrete, Coercible, MapSet):
"""An object for holding table schema information."""
"""An ordered mapping of str -> [datatype](./datatypes.qmd), used to hold a [Table](./expression-tables.qmd#ibis.expr.tables.Table)'s schema."""

fields: FrozenDict[str, dt.DataType]
"""A mapping of [](`str`) to
Expand Down
4 changes: 3 additions & 1 deletion ibis/expr/types/generic.py
Expand Up @@ -82,6 +82,8 @@ def hash(self) -> ir.IntegerValue:
def cast(self, target_type: dt.DataType) -> Value:
"""Cast expression to indicated data type.
Similar to `pandas.Series.astype`.
Parameters
----------
target_type
Expand Down Expand Up @@ -877,7 +879,7 @@ def desc(self) -> ir.Value:
return ops.SortKey(self, ascending=False).to_expr()

def as_table(self) -> ir.Table:
"""Promote the expression to a table.
"""Promote the expression to a [Table](./expression-tables.qmd#ibis.expr.types.Table).
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion ibis/expr/types/relations.py
Expand Up @@ -695,7 +695,7 @@ def columns(self) -> list[str]:
return list(self.schema().names)

def schema(self) -> sch.Schema:
"""Return the schema for this table.
"""Return the [Schema](./schemas.qmd#ibis.expr.schema.Schema) for this table.
Returns
-------
Expand Down

0 comments on commit 9e45194

Please sign in to comment.