Skip to content

Fix chained assignment error - #304

Open
NirOfir wants to merge 1 commit into
jnothman:masterfrom
NirOfir:fix-chainedassignment
Open

Fix chained assignment error#304
NirOfir wants to merge 1 commit into
jnothman:masterfrom
NirOfir:fix-chainedassignment

Conversation

@NirOfir

Copy link
Copy Markdown

Fixes#303

@JosephSBoyle

Copy link
Copy Markdown

@jnothman bump-- just ran into the issue that this PR resolves

@redst4r

Copy link
Copy Markdown

same here!

@Mat314159

Copy link
Copy Markdown

Same.
To "fix" it :
I git clone the code.
I modified it myself :
cd UpSetPlot/
mv upsetplot local_upsetplot
cd local_upsetplot

I modified plotting.py lines 795-798. Replace those lines by :

styles["linewidth"] = styles["linewidth"].fillna(1)
styles["facecolor"] = styles["facecolor"].fillna(self._facecolor)
styles["edgecolor"] = styles["edgecolor"].fillna(styles["facecolor"])
styles["linestyle"] = styles["linestyle"].fillna("solid")

Then if you go back to UpSetPlot/ directory, you can run python

>>> import local_upsetplot as up
>>> # then do everything as in the examples, it works !

So the pb is : they fixed the error, but somehow it didn't synchronized with the version that we can download ...

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility Issue with Pandas 3.0.0 & Matplotlib 3.10.8: ChainedAssignmentError leads to ValueError: Invalid RGBA argument: nan in plot_matrix

4 participants

@NirOfir@JosephSBoyle@redst4r@Mat314159