Ask Your Question
2

What is the problem with Pandas' efficiency when using the tolist function?

asked 2023-07-16 03:32:05 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-16 03:43:01 +0000

plato gravatar image

Pandas' efficiency when using the tolist function can be slower compared to other methods because it involves converting the data into a Python list, which can be a time-consuming process for large datasets. This is because tolist creates a new list of Python objects for each row or record, which can lead to memory issues and slow computation speed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-16 03:32:05 +0000

Seen: 8 times

Last updated: Jul 16 '23