Skip to content

Simplify misc #2492

@dangotbanned

Description

@dangotbanned

Some odds and ends that aren't in a category (yet?)

PRs

Tracking

Complex warnings

Best to leave this until all the from_native methods are ready

def _from_native_impl( # noqa: C901, PLR0911, PLR0912, PLR0915

Completed

def to_py_scalar(scalar_like: Any) -> Any: # noqa: C901, PLR0911, PLR0912

def _get_native_namespace_single_obj( # noqa: PLR0911
obj: DataFrame[Any] | LazyFrame[Any] | Series[Any] | IntoFrame | IntoSeries,
) -> Any:

def is_ordered_categorical(series: Series[Any]) -> bool: # noqa: PLR0911

def to_native_namespace(self) -> ModuleType: # noqa: C901, PLR0911

def combine_metadata( # noqa: C901, PLR0912, PLR0915

def calculate_timestamp_datetime( # noqa: C901, PLR0912
s: pd.Series[int], original_time_unit: str, time_unit: str
) -> pd.Series[int]:

@classmethod
def from_native_object( # noqa: PLR0911
cls: type[Namespace[Any]], native: NativeAny, /
) -> Namespace[Any]:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions