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 #297

Open
siebrenf opened this issue Dec 20, 2022 · 1 comment
Open

PerformanceWarning #297

siebrenf opened this issue Dec 20, 2022 · 1 comment

Comments

@siebrenf
Copy link
Member

self._threshold[motif.id] = vals

the function set_threshold compiles columns for each motifs (at a FPR, for a specific background) into a single dataframe using the above code. This results in:

pandas/core/frame.py:3978: 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()`
  self._set_item(key, value)
@siebrenf
Copy link
Member Author

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

1 participant