We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f288395 commit 773e199Copy full SHA for 773e199
1 file changed
financial-tools-chat/chat_tools.py
@@ -25,7 +25,7 @@ def _get_stock_analysis(symbol: str) -> str:
25
def _get_stock_data(symbol: str) -> str:
26
df = yf.download(symbol, period="5y", interval="5d")
27
df = df.reset_index()
28
- df = df.sort_values(by="Date", ascending=False)
+ df = df.sort_values(by="Date", ascending=True)
29
df = df.round({"Open": 2, "High": 2, "Low": 2, "Close": 2, "Adj Close": 2})
30
df["Date"] = pd.to_datetime(df["Date"])
31
return df.to_csv(index=False)
0 commit comments