Pairs Trading Strategy - installed Jupyter

I ran this block of code on jupyter but getting an error.

 

# For data manipulations
import numpy as np
import pandas as pd

# To read, write, and manipulate data in excel formats
import pyexcel

# To perform statistical tests
import statsmodels.api as stat
import statsmodels.tsa.stattools as ts

# To plot
import matplotlib.pyplot as plt
%matplotlib inline

# For warnings
import warnings
warnings.filterwarnings('ignore')

Getting this error
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [6], in <cell line: 6>()
      3 import pandas as pd
      5 # To read, write, and manipulate data in excel formats
----> 6 import pyexcel
      8 # To perform statistical tests
      9 import statsmodels.api as stat

ModuleNotFoundError: No module named ‘pyexcel’


Any ideas?

Hello Alexander,



Did you try to install the library first?



In Jupyter notebook, try doing this before you import the library:

 

!pip install pyexcel


I hope this helps,

Thanks!

José Carlos

 

Yes, that worked. Thank you!



Alex