Closed essicolo closed 8 years ago
Thanks! The 'scaled' issue arises from a typo in the ReadMe. Good catch. And thanks for the suggestions for Python 3.x compatibility, everything worked fine on Python 2.x but I guess 3.x needs the period in from of the folders.
The non-numeric column in USArrests arises from a change in pandas, it used to import the state names as the index and now it imports them as columns in the pandas 0.18.
And finally, the biplot(scale) command has been replaced with a biplot(type) command. I've fixed that documentation as well.
You're correct, this is all due to to changes from previous versions, so thanks for catching these errors! Everything has been corrected.
Hi,
I'm not so good with Python and Git so I preferred mentioning some errors here rather than committing. I installed
ecopy
viapip
on Anaconda, Python 3.5. To runimport ecopy as ep
, I had to add a.
before each module to import in the__init__.py
files ofbase_funcs
,diversity
,matrix_comp
andordination
, e.g.I tried to run your example, but found some errors, probably due to incoherence from previous versions.
prcomp = ep.pca(USArrests, scaled = True)
scaled
should bescale
andUSArrests
should beUSArrests.iloc[:,1:]
to remove the non-numeric column.prcomp = ep.pca(USArrests.iloc[:,1:], scale = True)
prcomp.summary()
should beIn
prcomp.biplot(scale = 0)
, as well asprcomp.biplot(scale = 1, obsNames = True)
, you might remove thescale
argument, since it's no longer there inpca.py
. The example on lines 47 to 52 inpca.py
should be updated accordingly.Regards,
Essi