In [9]:
%matplotlib inline
import pandas as pd
In [3]:
# read in nestedness output for all samples
fig3a = pd.read_csv('../../../data/nestedness/nest_phylum_allsamples.csv')
fig3a.head()
Out[3]:
In [4]:
fig3b_animal = pd.read_csv('../../../data/nestedness/nest_phylum_Animal.csv')
fig3b_plant = pd.read_csv('../../../data/nestedness/nest_phylum_Plant.csv')
fig3b_saline = pd.read_csv('../../../data/nestedness/nest_phylum_Saline.csv')
fig3b_nonsaline = pd.read_csv('../../../data/nestedness/nest_phylum_Non-saline.csv')
In [37]:
fig3c = pd.read_csv('../../../data/nestedness/nestedness_null_model_results_2017-09-19.csv')
fig3c.head()
Out[37]:
In [40]:
fig3 = pd.ExcelWriter('Figure3_data.xlsx')
fig3a.to_excel(fig3,'Fig-3a')
fig3b_animal.to_excel(fig3,'Fig-3b_animal')
fig3b_plant.to_excel(fig3,'Fig-3b_plant')
fig3b_saline.to_excel(fig3,'Fig-3b_saline')
fig3b_nonsaline.to_excel(fig3,'Fig-3b_nonsaline')
fig3c.to_excel(fig3,'Fig-3c')
fig3.save()
In [ ]: