Error running project


while running the forest fire in bootml getting below error.

ImportError Traceback (most recent call last)
1 # Let’s use Scikit-Learn Imputer class to fill missing values
----> 3 from sklearn.preprocessing import Imputer
4 imputer = Imputer(strategy=“b’mean’”)

ImportError: cannot import name ‘Imputer’


Hi @Deepak_Gupta,

Could you please use from sklearn.impute import SimpleImputer instead of from sklearn.preprocessing import Imputer

In the recent version of scikit-lean the library has changed


but now getting below error in bike demand project
Discover and visualize the data to gain insights
day.plot(kind=“scatter”, x=“dteday”, y=“dteday”, alpha=0.1)

ValueError Traceback (most recent call last)
----> 1 day.plot(kind=“scatter”, x=“dteday”, y=“dteday”, alpha=0.1)

/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/ in call(self, *args, **kwargs)
736 if kind in self._dataframe_kinds:
737 if isinstance(data, ABCDataFrame):
–> 738 return plot_backend.plot(data, x=x, y=y, kind=kind, **kwargs)
739 else:
740 raise ValueError(

/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/_matplotlib/ in plot(data, kind, **kwargs)
59 ax = plt.gca()
60 kwargs[“ax”] = getattr(ax, “left_ax”, ax)
—> 61 plot_obj = PLOT_CLASSES[kind](data, **kwargs)
62 plot_obj.generate()
63 plot_obj.draw()

/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/_matplotlib/ in init(self, data, x, y, s, c, **kwargs)
928 # the handling of this argument later
929 s = 20
–> 930 super().init(data, x, y, s=s, **kwargs)
931 if is_integer© and not
932 c =[c]

/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/_matplotlib/ in init(self, data, x, y, **kwargs)
868 y =[y]
869 if len([x]._get_numeric_data()) == 0:
–> 870 raise ValueError(self._kind + " requires x column to be numeric")
871 if len([y]._get_numeric_data()) == 0:
872 raise ValueError(self._kind + " requires y column to be numeric")

ValueError: scatter requires x column to be numeric


We have fixed the errors. Could you please generate the notebook again using BootML. It should run fine.