Created
February 25, 2016 03:59
-
-
Save puyokw/dbc7010e856e296ac928 to your computer and use it in GitHub Desktop.
td_intern rossmann
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import os | |
import pandas as pd | |
import pandas_td as td | |
import matplotlib.pyplot as plt | |
con = td.connect(apikey=os.environ['TD_API_KEY'],endpoint='https://api.treasuredata.com/') | |
engine = con.query_engine(database='rossmann', type='presto') | |
var_imp=td.read_td_table('var_importance', engine) | |
del var_imp['time'] | |
X=range(var_imp.shape[1]) | |
plt.barh(X,var_imp.values[0],align="center") | |
plt.yticks(X,var_imp.columns) | |
plt.savefig('var_imp.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment