Skip to content

QST: Is pandas.to_sql considered an ORM? #60139

@Negroni1

Description

@Negroni1

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

https://stackoverflow.com/staging-ground/79139173

Question about pandas

I'm working with a Pandas DataFrame and need to insert data into a SQL database. I'm using pandas.to_sql to accomplish this, but I am a bit confused about whether this method can be classified as an ORM tool or not.

From my understanding, ORMs like SQLAlchemy handle not only data insertion but also allow you to interact with the database tables as Python objects, providing features like lazy loading, data relationships, and change tracking.

Can anyone clarify if pandas.to_sql fits the definition of an ORM, or is it simply a convenience function for inserting data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssue that has not been reviewed by a pandas team memberUsage Question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions