Update README.md

- Changed path of data
- Changed import of common\utils.py
pull/384/head
Anirban Mukherjee 4 years ago
parent 8d9d83449d
commit 159051a785

@ -28,6 +28,11 @@ Open the _/working_ folder in this lesson and find the _notebook.ipynb_ file.[^2
1. Run the notebook and import the necessary libraries: [^2] 1. Run the notebook and import the necessary libraries: [^2]
```python
import sys
sys.path.append('../../')
```
```python ```python
import os import os
import warnings import warnings
@ -42,13 +47,13 @@ Open the _/working_ folder in this lesson and find the _notebook.ipynb_ file.[^2
from common.utils import load_data, mape from common.utils import load_data, mape
``` ```
4. Load the data from the `/data/energy.csv` file into a Pandas dataframe and take a look: [^2] 2. Load the data from the `/data/energy.csv` file into a Pandas dataframe and take a look: [^2]
```python ```python
energy = load_data('./data')[['load']] energy = load_data('../../data')[['load']]
``` ```
5. Plot all the available energy data from January 2012 to December 2014: [^2] 3. Plot all the available energy data from January 2012 to December 2014: [^2]
```python ```python
energy.plot(y='load', subplots=True, figsize=(15, 8), fontsize=12) energy.plot(y='load', subplots=True, figsize=(15, 8), fontsize=12)

Loading…
Cancel
Save