Skip to content

Commit 6b508e1

Browse files
authored
[pandas] index already in datetime (#251)
1 parent 4617875 commit 6b508e1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lectures/pandas.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,6 @@ def read_data(ticker_list,
695695
for tick in ticker_list:
696696
stock = yf.Ticker(tick)
697697
prices = stock.history(start=start, end=end)
698-
699-
# Change the index to date
700-
prices.index = pd.to_datetime(prices.index.date)
701698
702699
closing_prices = prices['Close']
703700
ticker[tick] = closing_prices

0 commit comments

Comments
 (0)