gwexpy.interop.pandas_
Functions
|
Convert DataFrame to TimeSeriesDict. |
|
Create a TimeSeries from pandas.Series. |
|
Convert TimeSeriesDict to DataFrame. |
|
Convert TimeSeries to pandas.Series. |
- gwexpy.interop.pandas_.to_pandas_series(ts: TimeSeries, index: Literal['datetime', 'seconds', 'gps'] = 'datetime', name: str | None = None, copy: bool = False) pd.Series[source]
Convert TimeSeries to pandas.Series.
- gwexpy.interop.pandas_.from_pandas_series(cls: type[T], series: pd.Series, *, unit: str | None = None, t0: float | None = None, dt: float | None = None, channel: str | None = None, name: str | None = None) T[source]
Create a TimeSeries from pandas.Series.
t0/dtare inferred from the index when possible; if inference fails they fall back to0/1with aUserWarningrather than silently.channel/name(which a plain Series cannot carry) may be supplied explicitly.