Skip to main content

pandas_to_timeseries

Function pandas_to_timeseries 

Source
pub fn pandas_to_timeseries(
    py: Python<'_>,
    series: Py<PyAny>,
) -> PyResult<PyTimeSeries>
Expand description

Convert pandas Series to PyTimeSeries

This function extracts the values and index from a pandas Series and creates a PyTimeSeries object.

§Arguments

  • series - A pandas Series object

§Returns

A PyTimeSeries object with values and timestamps