Closed krowll closed 5 years ago
Hi!
After changing the sorting in optimize, train and test (df['Date'] = pd.to_datetime(df['Date'], format='%Y-%m-%d %I-%p')), I'm unable to render a correct graph.
df['Date'] = pd.to_datetime(df['Date'], format='%Y-%m-%d %I-%p')
In BitcoinTradingGraph.py I've changed the lines to
BitcoinTradingGraph.py
def __init__(self, df): self.df = df # self.df['Time'] = self.df['Date'].apply( # lambda x: datetime.strptime(x, '%Y-%m-%d %I-%p')) self.df['Time'] = self.df['Date'] self.df = self.df.sort_values('Time')
I've compared the dataframe with the original code and the new one and I can't find any difference. Nonetheless, I'm unable to render a correct graph.
Am I missing something here?
This is due to #28
Hi!
After changing the sorting in optimize, train and test (
df['Date'] = pd.to_datetime(df['Date'], format='%Y-%m-%d %I-%p')
), I'm unable to render a correct graph.In
BitcoinTradingGraph.py
I've changed the lines toI've compared the dataframe with the original code and the new one and I can't find any difference. Nonetheless, I'm unable to render a correct graph.
Am I missing something here?