I\'m following this tutorial to make this ML prediction:
import numpy as np import matplotlib.pyplot as plt from matplotlib import style style.use(\"ggplot\
With one feature my Dataframe list converts to a Series. I had to convert it back to a Dataframe list and it worked.
if type(X) is Series: X = X.to_frame()