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

Performance message in Dobj() #124

Closed
altix opened this issue Jan 6, 2023 · 0 comments · Fixed by #126
Closed

Performance message in Dobj() #124

altix opened this issue Jan 6, 2023 · 0 comments · Fixed by #126
Assignees
Labels
fix Fix something that is not working as intended

Comments

@altix
Copy link
Collaborator

altix commented Jan 6, 2023

The following snippet:

from icoscp.cpb.dobj import Dobj
pid = 'https://meta.icos-cp.eu/objects/BEK6kHXAhE4yDdk_P9i5nF-K'
df = Dobj(pid).data

generates the warning:

/opt/conda/lib/python3.10/site-packages/icoscp/cpb/dobj.py:381: 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()`

@altix altix added the fix Fix something that is not working as intended label Jan 6, 2023
@claudiodonofrio claudiodonofrio linked a pull request Jan 8, 2023 that will close this issue
@claudiodonofrio claudiodonofrio self-assigned this Jan 8, 2023
@ZogopZ ZogopZ removed a link to a pull request Jan 17, 2023
@ZogopZ ZogopZ linked a pull request Jan 17, 2023 that will close this issue
@ZogopZ ZogopZ closed this as completed Jan 17, 2023
@ZogopZ ZogopZ mentioned this issue Jan 20, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something that is not working as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants