|
59 | 59 |
|
60 | 60 | from darts.logging import ( |
61 | 61 | get_logger, |
62 | | - raise_deprecation_warning, |
63 | 62 | raise_if, |
64 | 63 | raise_if_not, |
65 | 64 | raise_log, |
@@ -1823,29 +1822,6 @@ def to_series( |
1823 | 1822 |
|
1824 | 1823 | return pd.Series(data=data, index=index, name=name) |
1825 | 1824 |
|
1826 | | - def pd_series(self, copy: bool = True) -> pd.Series: |
1827 | | - """ |
1828 | | - Return a Pandas Series representation of this time series. |
1829 | | -
|
1830 | | - Works only for univariate series that are deterministic (i.e., made of 1 sample). |
1831 | | -
|
1832 | | - Parameters |
1833 | | - ---------- |
1834 | | - copy |
1835 | | - Whether to return a copy of the series. Leave it to True unless you know what you are doing. |
1836 | | -
|
1837 | | - Returns |
1838 | | - ------- |
1839 | | - pandas.Series |
1840 | | - A Pandas Series representation of this univariate time series. |
1841 | | - """ |
1842 | | - raise_deprecation_warning( |
1843 | | - "`TimeSeries.pd_series()` is deprecated and will be removed in Darts version 0.35.0. Use " |
1844 | | - "`TimeSeries.to_series()` instead", |
1845 | | - logger, |
1846 | | - ) |
1847 | | - return self.to_series(copy=copy) |
1848 | | - |
1849 | 1825 | def to_dataframe( |
1850 | 1826 | self, |
1851 | 1827 | copy: bool = True, |
@@ -1926,35 +1902,6 @@ def to_dataframe( |
1926 | 1902 |
|
1927 | 1903 | return nw.from_dict(data, backend=backend).to_native() |
1928 | 1904 |
|
1929 | | - def pd_dataframe(self, copy=True, suppress_warnings=False) -> pd.DataFrame: |
1930 | | - """ |
1931 | | - Return a Pandas DataFrame representation of this time series. |
1932 | | -
|
1933 | | - Each of the series components will appear as a column in the DataFrame. |
1934 | | - If the series is stochastic, the samples are returned as columns of the dataframe with column names |
1935 | | - as 'component_s#' (e.g. with two components and two samples: |
1936 | | - 'comp0_s0', 'comp0_s1' 'comp1_s0' 'comp1_s1'). |
1937 | | -
|
1938 | | - Parameters |
1939 | | - ---------- |
1940 | | - copy |
1941 | | - Whether to return a copy of the dataframe. Leave it to True unless you know what you are doing. |
1942 | | - suppress_warnings |
1943 | | - Whether to suppress the warnings for the `DataFrame` creation. |
1944 | | -
|
1945 | | - Returns |
1946 | | - ------- |
1947 | | - pandas.DataFrame |
1948 | | - The Pandas DataFrame representation of this time series |
1949 | | - """ |
1950 | | - |
1951 | | - raise_deprecation_warning( |
1952 | | - "`TimeSeries.pd_dataframe()` is deprecated, and will be removed in Darts version 0.35.0. Use " |
1953 | | - "`TimeSeries.to_dataframe()` instead", |
1954 | | - logger, |
1955 | | - ) |
1956 | | - return self.to_dataframe(copy=copy, suppress_warnings=suppress_warnings) |
1957 | | - |
1958 | 1905 | def quantile_df(self, quantile=0.5) -> pd.DataFrame: |
1959 | 1906 | """ |
1960 | 1907 | Return a Pandas DataFrame containing the single desired quantile of each component (over the samples). |
|
0 commit comments