Update Introduction_to_Jarvis.md
Browse files- Introduction_to_Jarvis.md +15 -15
Introduction_to_Jarvis.md
CHANGED
|
@@ -299,21 +299,21 @@ Here we go!
|
|
| 299 |
- The Controller of CtrlExMemFlow_ExtLib calls write_code to write and test the code. Still, we do not provide any more test suites other than checking syntax.
|
| 300 |
```python
|
| 301 |
def plot_stock_prices(df):
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
```
|
| 318 |
- The MemoryWritingFlow of ExtendLibrary updates the logs of ExtendLibrary, it records the action of write_code.
|
| 319 |
- The MemoryReadingFlow of ExtendLibrary reads in the memory, here, new logs will override the old logs.
|
|
|
|
| 299 |
- The Controller of CtrlExMemFlow_ExtLib calls write_code to write and test the code. Still, we do not provide any more test suites other than checking syntax.
|
| 300 |
```python
|
| 301 |
def plot_stock_prices(df):
|
| 302 |
+
"""
|
| 303 |
+
Plots the 'Close' prices against the dates.
|
| 304 |
+
|
| 305 |
+
Parameters:
|
| 306 |
+
df (pandas.DataFrame): The DataFrame containing the stock data.
|
| 307 |
+
"""
|
| 308 |
+
import matplotlib.pyplot as plt
|
| 309 |
+
|
| 310 |
+
plt.figure(figsize=(10,5))
|
| 311 |
+
plt.plot(df.index, df['Close'], label='Close Price history')
|
| 312 |
+
plt.xlabel('Date')
|
| 313 |
+
plt.ylabel('Close Price')
|
| 314 |
+
plt.title('Close Price Trend')
|
| 315 |
+
plt.legend()
|
| 316 |
+
plt.show()
|
| 317 |
```
|
| 318 |
- The MemoryWritingFlow of ExtendLibrary updates the logs of ExtendLibrary, it records the action of write_code.
|
| 319 |
- The MemoryReadingFlow of ExtendLibrary reads in the memory, here, new logs will override the old logs.
|