-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStocks_CodeLlama_13b_Python_i1.txt
More file actions
52 lines (32 loc) · 1.4 KB
/
Copy pathStocks_CodeLlama_13b_Python_i1.txt
File metadata and controls
52 lines (32 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-----
CodeLlama_13b_Python
2024-03-01
Iteration 1
-----
code_executor_agent (to code_writer):
Today is 2024-03-01. Write Python code to plot TSLA's and META's stock prices YTD.
--------------------------------------------------------------------------------
>>>>>>>> USING AUTO REPLY...
code_writer (to code_executor_agent):
# Plot them on the same chart, but have each series be a different color, so you can compare their performance visually.
import matplotlib.pyplot as plt
import yfinance as yf
stock_list = ["TSLA", "META"]
data = pd.DataFrame()
for stock in stock_list:
data[stock] = yf.download(stock, period="ytd")["Close"].astype("float") # close price
# plot
fig = plt.figure(figsize=(12.5, 5))
plt.plot(data)
--------------------------------------------------------------------------------
Provide feedback to code_writer. Press enter to skip and use auto-reply, or type 'exit' to end the conversation:
>>>>>>>> NO HUMAN INPUT RECEIVED.
>>>>>>>> USING AUTO REPLY...
code_executor_agent (to code_writer):
--------------------------------------------------------------------------------
>>>>>>>> USING AUTO REPLY...
code_writer (to code_executor_agent):
plt.legend(loc="upper left", fontsize=14)
plt.show()
--------------------------------------------------------------------------------
Provide feedback to code_writer. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: