pandas.Series.shift — pandas 1.3.5 documentation
pandas.pydata.org › api › pandaspandas.Series.shift ¶. pandas.Series.shift. ¶. Series.shift(periods=1, freq=None, axis=0, fill_value=None) [source] ¶. Shift index by desired number of periods with an optional time freq. When freq is not passed, shift the index without realigning the data. If freq is passed (in this case, the index must be date or datetime, or it will raise ...
pandas.DataFrame.boxplot — pandas 0.23.3 documentation
pandas.pydata.org › pandasThe kind of object to return. The default is axes. ‘axes’ returns the matplotlib axes the boxplot is drawn on. ‘dict’ returns a dictionary whose values are the matplotlib Lines of the boxplot. ‘both’ returns a namedtuple with the axes and dict. when grouping with by, a Series mapping columns to return_type is returned.
boxplot and groupby
pydata.narkive.com › tGpE0UQk › boxplot-and-groupbyBut. here it goes. I'm using groupby to aggregate my data by the columns "VESSEL" (a. string with 8 names) and I'm getting the "START" (start time of each. boat haul) like this. d = df.groupby ('VESSEL') ['START'] I can use .describe (), .mean (), but when I try .boxplot () I get: AttributeError: 'SeriesGroupBy' object has no attribute 'boxplot ...