Skip to content

PerformanceWarning #19

@tienkkien

Description

@tienkkien

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions