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

PerformanceWarning #19

Open
tienkkien opened this issue Mar 16, 2023 · 1 comment
Open

PerformanceWarning #19

tienkkien opened this issue Mar 16, 2023 · 1 comment
Assignees

Comments

@tienkkien
Copy link

tienkkien commented Mar 16, 2023

hi!
I got this warning when using pykobo to fetch_data() from a Kobo form with 139 questions:
Python\Lib\site-packages\pykobo\form.py:89: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling frame.insert many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use newframe = frame.copy()

I tried to add .copy() after .fetch_data() but it still gave warning

How can I get rid of this warning?

@pvernier
Copy link
Owner

Hi @tienkkien,

Thanks for reporting this. I also got it with big surveys. I need to investigate more but I think the easiest way would be for me to ignore the Pandas performance warnings.

@pvernier pvernier self-assigned this Mar 21, 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

No branches or pull requests

2 participants