Skip to content

Expose datetime conversion funcs in C API #9675

@jbrockmendel

Description

@jbrockmendel

There is a bunch of datetime64 conversion code in pandas which I think is copy/pasted from numpy. It would be really fulfilling to delete a bunch of that and import it from numpy instead. AFAICT this could be done if a few NPY_NOEXPORT were removed upstream.

In particular, pandas' np_datetime_strings.c mirrors numpy's datetime_strings.c and pandas' np_datetime.c implements a bunch of functions identical to those in numpy's datetime.c. If convert_datetime_to_datetimestruct were exposed to cython, a big chunk of pandas compat code could be deleted (... a few release cycles from now when dependencies catch up).

Would numpy folks be amenable to that?

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