mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 15:21:02 +00:00
bugfix(ChatExcel): ChatExcel Language confusion bug
1.Fix ChatExcel Language confusion bug
This commit is contained in:
parent
eab1993540
commit
3dbf0cf34b
@ -1,18 +0,0 @@
|
||||
# filename: stock_price_chart.py
|
||||
import yfinance as yf
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Define the ticker symbols for NVDA and TESLA
|
||||
tickers = ["NVDA", "TSLA"]
|
||||
|
||||
# Fetch the historical stock price data for YTD
|
||||
data = yf.download(tickers, start="2021-01-01", end="2021-12-31")
|
||||
|
||||
# Extract the 'Close' price column for each ticker
|
||||
close_prices = data["Close"]
|
||||
|
||||
# Plot the stock price change YTD
|
||||
close_prices.plot(title="Stock Price Change YTD", ylabel="Price (USD)")
|
||||
|
||||
# Display the chart
|
||||
plt.show()
|
@ -62,7 +62,7 @@ class ChatExcel(BaseChat):
|
||||
# ]
|
||||
return "\n".join(f"{i+1}. {item}" for i, item in enumerate(command_strings))
|
||||
|
||||
def generate_input_values(self):
|
||||
async def generate_input_values(self) -> Dict:
|
||||
input_values = {
|
||||
"user_input": self.current_user_input,
|
||||
"table_name": self.excel_reader.table_name,
|
||||
|
Loading…
Reference in New Issue
Block a user