Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/API_specification/dataframe_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def concat(dataframes: Sequence[DataFrame]) -> DataFrame:
"""
...

def column_from_sequence(sequence: Sequence[Any], *, name: str | None, dtype: Any) -> Column[Any]:
def column_from_sequence(sequence: Sequence[Any], *, name: str, dtype: Any) -> Column[Any]:
"""
Construct Column from sequence of elements.

Expand All @@ -72,7 +72,7 @@ def column_from_sequence(sequence: Sequence[Any], *, name: str | None, dtype: An
Sequence of elements. Each element must be of the specified
``dtype``, the corresponding Python builtin scalar type, or
coercible to that Python scalar type.
name : str, optional
name : str
Name of column.
dtype : DType
Dtype of result. Must be specified.
Expand Down
4 changes: 2 additions & 2 deletions spec/API_specification/dataframe_api/column_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def column(self) -> Any:
...

@property
def name(self) -> str | None:
def name(self) -> str:
"""Return name of column."""

def __len__(self) -> int:
Expand Down Expand Up @@ -711,7 +711,7 @@ def to_array_object(self, dtype: Any) -> Any:
``array-api-compat`` package to convert it to a Standard-compliant array.
"""

def rename(self, name: str | None) -> Column[DType]:
def rename(self, name: str) -> Column[DType]:
"""
Rename column.

Expand Down