Skip to content

DOC: Description of pandas_datetime_exec function #61631

@kunaljani1100

Description

@kunaljani1100
Contributor

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://github.com/pandas-dev/pandas/blob/main/pandas/_libs/src/datetime/pd_datetime.c

Documentation problem

The file pd_datetime.c has missing documentation on line 195 for the function static int pandas_datetime_exec(PyObject *Py_UNUSED(module)). We need to add documentation for what the role of this function is.

Suggested fix for documentation

The suggested fix is to add documentation for the function that has been defined on line 195.

The function initializes and exposes a custom datetime C-API from the Pandas library by creating a PyCapsule that stores function pointers, which can be accessed later by other C code (or Cython code) that imports the capsule.

Activity

changed the title [-]DOC:[/-] [+]DOC: Description of pandas_datetime_exec function[/+] on Jun 23, 2025
jbrockmendel

jbrockmendel commented on Jun 23, 2025

@jbrockmendel
Member

I'm curious if this is actually bothering anybody? I don't mind "fixing" it, just have the vibe that this is AI-derived rather than a real issue.

kunaljani1100

kunaljani1100 commented on Jun 23, 2025

@kunaljani1100
ContributorAuthor

This is not bothering anybody, it is just additional documentation for existing code that already exists in this repo so that new developers can understand the code better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @jbrockmendel@kunaljani1100

      Issue actions

        DOC: Description of pandas_datetime_exec function · Issue #61631 · pandas-dev/pandas