plot_acf_pacf¶
In [ ]:
plot_acf_pacf(vdf,
column: str,
ts: str,
by: list = [],
p=15,
**style_kwds,)
Draws ACF and PACF Charts.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
vdf | vDataFrame | ❌ | Input vDataFrame. |
column | str | ❌ | Input vcolumn to test. |
ts | str | ❌ | vcolumn used as timeline. It will be to use to order the data. It can be a numerical or type date like (date, datetime, timestamp...) vcolumn. |
by | list | ✓ | vcolumns used in the partition. |
p | int/list | ✓ | Int: the maximum number of lag to consider during the computation or List: the lags to include in the computation. p must be positive or a list of positive integers. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [2]:
from verticapy import *
amazon = vDataFrame("amazon_clean")
amazon["number"].plot(ts = "date")
Out[2]:
In [3]:
from verticapy.learn.model_selection import plot_acf_pacf
plot_acf_pacf(amazon,
column = "number",
ts = "date",
p = 40)
Out[3]:
