vDataFrame[].range_plot¶
In [ ]:
vDataFrame[].range_plot(ts: str,
q: tuple = (0.25, 0.75),
start_date: (str, datetime.datetime, datetime.date, float,) = "",
end_date: (str, datetime.datetime, datetime.date, float,) = "",
plot_median: bool = False,
ax=None,
**style_kwds,)
Draws the range plot of the vcolumn. The aggregations used to draw the plot are the median and two user-specified quantiles.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
ts | str | ❌ | TS (Time Series) vcolumn to use to order the data. The vcolumn type must be date like (date, datetime, timestamp...) or numerical. |
q | tuple | ✓ | Tuple including the 2 quantiles used to draw the Plot. |
start_date | str / date / float | ✓ | Input Start Date. For example, time = '03-11-1993' will filter the data when 'ts' is lesser than November 1993 the 3rd. |
end_date | str / date / float | ✓ | Input End Date. For example, time = '03-11-1993' will filter the data when 'ts' is greater than November 1993 the 3rd. |
plot_median | bool | ✓ | If set to True, the Median will be drawn. |
ax | Matplotlib axes object | ✓ | The axes to plot on. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
In [13]:
from verticapy.datasets import load_amazon
amazon = load_amazon()
display(amazon)
In [14]:
amazon["number"].range_plot(ts = "date",
q = (0, 1),
plot_median = True)
Out[14]:
See Also¶
| vDataFrame[].plot | Draws the Time Series of one vcolumn. |
