Created
March 15, 2019 20:56
-
-
Save uomodellamansarda/fc8bacf788272adbae328115a01f558c to your computer and use it in GitHub Desktop.
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
#Convertiamo in timestamp la colonna 'Date' per una migliore manipolazione, nel caso fosse necessaria | |
datetime=pd.to_datetime(df_train.date) | |
df_train['date']=datetime | |
print(df_train.info()) | |
#Essendo 8 variabili e tra loro potenzialmente correlate | |
#Creiamo un subplot lungo la medesima verticale | |
fig, ax= plt.subplots(df_train.shape[1]-1,sharex=True,figsize=(20,30)) | |
for i in range(df_train.shape[1]-1): | |
ax[i].plot(df_train.iloc[:,0],df_train.iloc[:,i+1]) | |
ax[i].set_title(df_train.columns[i+1]) | |
plt.xticks(rotation='vertical') | |
print(df_train.columns[i+1]) | |
plt.subplots_adjust(hspace= 0.35) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment