added a fix for the 'add_side_bar_data errors with pandas 2.0.0 or higher (issue #22)'#24
Open
cetienn01 wants to merge 1 commit intovanallenlab:masterfrom
Open
added a fix for the 'add_side_bar_data errors with pandas 2.0.0 or higher (issue #22)'#24cetienn01 wants to merge 1 commit intovanallenlab:masterfrom
cetienn01 wants to merge 1 commit intovanallenlab:masterfrom
Conversation
Author
|
Author
jalberge
added a commit
to jalberge/comut
that referenced
this pull request
Oct 17, 2024
My copy of "added a fix for the 'add_side_bar_data errors with pandas 2.0.0 or higher (issue vanallenlab#22)' vanallenlab#24"
Author
|
Here are some instructions on how to do this quick fix. Install comut ** manually ** (NOT using "pip install comut")
|
Author
|
Hello,
Thanks for reaching out.
I don't believe the code has been updated yet. The PR has not been merged
yet into the code by the repo maintainer. So for the time being, the user
has to make those changes locally and install comut manually.
You can install comut manually using the following step-by-step
instructions. For reference, you can also refer to these instructions
<#24 (comment)>
which I just added to the repo.
Install comut manually (*NOT* using pip install comut)
1. create a conda env: *conda create -n env_name*
2. activate the conda: *conda activate env_name*
3. clone the comut repo from GitHub: *gh repo clone vanallenlab/comut*
4. go to the repo folder and open the comut.py file in a text editor
(nano, vim, etc)
5. make the changes i suggested in my PR (in line 1004): changing the
line *data.loc[missing_categories, :] = 0* to:
*data.loc[list(missing_categories),
:] = 0*
6. go back to the main comut directory (where the setup.py file is
located)
7. install comut manually using:* pip install -e .*
8. try using comut again in your code to add the sidebar.
I hope this helps.
Best,
-Chris E.
…On Mon, Nov 18, 2024 at 2:49 PM AniniU1 ***@***.***> wrote:
Hello Chris,
Thank you for your previous comment and for clarifying that the code was
updated. However, I’m still encountering the following error when trying to
add a sidebar: TypeError: Passing a set as an indexer is not supported. Use
a list instead.
Upon reviewing the current version of comut.py, it seems the code on line
1004 remains: data.loc[missing_categories, :] = 0
Could you kindly advise on how to resolve this? Thank you very much!
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALGMSPJAC66PUXRH3Y5UOIL2BJADZAVCNFSM6AAAAABL3KF27WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBTHE3DINBUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.