Closed Demetrio92 closed 6 years ago
I have the same warning with similar versions of pyLDAvis and pandas, and I was replicating this article as well.
>>> pyLDAvis.__version__
'2.1.2'
>>> pd.__version__
'0.23.3'
Can't seem to get it to work, is there a fix for this?
Edit: works fine in Jupyter Notebooks though.
Thanks for the report. Anyone feel like submitting an easy PR? :)
@bmabey done. I was thinking, maybe the issue should be addressed more generally -- that would actually require me to understand what's exactly wrong with the inputs from pandas perspective, and why they don't think sorting by default is a good idea. But hey, If it ain't broke, don't fix it.
Hi! Has anyone solve it? I still get the warning... Thank you!
@elenazadnepr it's probably not in the latest pypi release yet. You can see that my PR is merged.
for now you can install latest version from the master branch if that warning really bothers you that much
Same error, not sure if the Sep 4th, 2018 was put into conda-forge
anaconda3/envs/DS/lib/python3.6/site-packages/pyLDAvis/_prepare.py:257: FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the future behavior, pass 'sort=False'. To retain the current behavior and silence the warning, pass 'sort=True'. return pd.concat([default_term_info] + list(topic_dfs))
pandas 0.24.2 py36h0a44026_0 anaconda pyldavis 2.1.2 py_0 conda-forge
Atom : 1.39.1 Electron: 3.1.10 Chrome : 66.0.3359.181 Node : 10.2.0
Anaconda/anaconda3/envs/data/lib/python3.7/site-packages/pyLDAvis/_prepare.py:257: FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default.
To accept the future behavior, pass 'sort=False'.
To retain the current behavior and silence the warning, pass 'sort=True'.
return pd.concat([default_term_info] + list(topic_dfs))
I get the same warning.
pyLDAvis.__version__
'2.1.2'
pd.__version__
'0.24.2'
Here is the reproducible example github.com/JiaxiangBU/wei_lda_debate/blob/master/lda-analysis.ipynb
I was replicating this article on my dataset, and found a pandas FutureWarning in
pyLDAvis.sklearn.prepare
gives me:
So, I thought, there should be an issue in this repository :)
Code to reproduce: