jupyter / dashboards

[RETIRED] See Voilà as a supported replacement
https://github.com/voila-dashboards
Other
984 stars 210 forks source link

python does not have .order! #298

Closed alphaBenj closed 7 years ago

alphaBenj commented 7 years ago

notebooks/dashboards-master/etc/notebooks/got_scotch_demo/scotch_analysis.ipynb

component_names = [] pca_df_t = pca_df.T for col in pca_df_t: component = pca_df_t[col] order = component.abs().sort_values(ascending=False) top = order.head(3) component_name = [name if component[name] > 0 else ('neg-' + name) for name in top.index] component_names.append('/'.join(component_name))

alphaBenj commented 7 years ago

sim_df['Ardbeg'].sort_values(ascending=False)

parente commented 7 years ago

The notebooks need to be updated to the new pandas API. If you'd like to contribute, we'll gladly merge a PR making the change.