datasnakes / OrthoEvolution

An easy to use and comprehensive python package which aids in the analysis and visualization of orthologous genes. 🐵
https://orthoevolution.readthedocs.io/en/master/
29 stars 4 forks source link

AttributeError: 'DataFrame' object has no attribute 'ix' #164

Closed sdhutchins closed 4 years ago

sdhutchins commented 4 years ago

https://github.com/datasnakes/OrthoEvolution/blob/267f2fd7e14ffc3d2b0b3ed0d3c7d0b870c241cd/OrthoEvol/Orthologs/Blast/comparative_genetics.py#L228

Pandas deprecated .ix and higher-level versions of pandas are necessary for python 3.6 and greater. This is causing the build to fail (and thus tests).

sdhutchins commented 4 years ago

Fixed with commit c613ef5e8b604fdf62191892b06ee992e7e5ca0b.

self.org_dict = self.df.loc[:, self.ref_species:].to_dict()