Thanks.
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)
in
----> 1 day.plot(kind=“scatter”, x=“dteday”, y=“dteday”, alpha=0.1)
/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py 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/init.py 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/core.py 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 self.data.columns.holds_integer():
932 c = self.data.columns[c]
/usr/local/anaconda/lib/python3.6/site-packages/pandas/plotting/_matplotlib/core.py in init(self, data, x, y, **kwargs)
868 y = self.data.columns[y]
869 if len(self.data[x]._get_numeric_data()) == 0:
–> 870 raise ValueError(self._kind + " requires x column to be numeric")
871 if len(self.data[y]._get_numeric_data()) == 0:
872 raise ValueError(self._kind + " requires y column to be numeric")
ValueError: scatter requires x column to be numeric