Skip to content

QST: Why import pandas create threads? #55891

@PaleNeutron

Description

@PaleNeutron

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/questions/77450305/why-import-pandas-create-threads

Question about pandas

mytest.py:

import time
import pandas as pd
time.sleep(1000)
print(1)

Excute it and check threads with:

ps -eaf -T | grep mytest

And 24 lines show up.

But if I remove import pandas, only one line remains.

I can get the same result with htop. So why does pandas really create threads during import?

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