You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see above - the bold code is of my own making. I'm taking a column, predicted_stock_data[:,0], from a dataframe to use a the closing price. I then add the 'Date'. I can't grasp the problem with 'Date'.
res = predicted_stock_data[:,0]
des = pd.DataFrame(res, columns = ['Close'])
start = datetime(2018, 9, 29)
dates = pd.date_range(start, periods=100).to_pydatetime().tolist()
des['Dates'] = dates
res = trendet.identify_df_trends(df=des, column='Close')
with plt.style.context('classic'):
plt.figure(figsize=(20, 10))
ax = sns.lineplot(x=res['Date'], y=res['Close'])
As you can see above - the bold code is of my own making. I'm taking a column, predicted_stock_data[:,0], from a dataframe to use a the closing price. I then add the 'Date'. I can't grasp the problem with 'Date'.
res = predicted_stock_data[:,0]
des = pd.DataFrame(res, columns = ['Close'])
start = datetime(2018, 9, 29)
dates = pd.date_range(start, periods=100).to_pydatetime().tolist()
des['Dates'] = dates
res = trendet.identify_df_trends(df=des, column='Close')
with plt.style.context('classic'):
plt.figure(figsize=(20, 10))
ax = sns.lineplot(x=res['Date'], y=res['Close'])
The text was updated successfully, but these errors were encountered: