Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use low_memory option to avoid DType warning #60

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Conversation

tilaktilak
Copy link
Contributor

It's not efficient but will do for now.
Sometimes a CSV file can contain string and numbers and it's difficult for pandas to guess the type of each columns by looking at the first rows (a row can contain -1 and then string data, or even being empty).

So we use the low_memory=False option which will have to read the all file to guess the type of each columns.
Let see if we find a better way in the future.

It's not efficient but will do for now.
Sometimes a CSV file can contain string and numbers and it's difficult
for pandas to guess the type of each columns by looking at the first
rows (a row can contain -1 and then string data, or even being empty).

So we use the low_memory=False option which will have to read the
all file to guess the type of each columns.
Let see if we find a better way in the future.
@tilaktilak tilaktilak requested a review from HmZyy April 28, 2023 06:45
Copy link
Collaborator

@HmZyy HmZyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@HmZyy HmZyy merged commit abf8ca5 into main Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants