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#
Convert TimeSeries to pandas.Series.
- パラメータ:
ts (TimeSeries) -- Input time series to convert.
index (str, default "datetime") -- "datetime" (UTC aware), "seconds" (unix), or "gps".
name (str, optional) -- Override name for the resulting series.
copy (bool) -- Whether to copy data.
- 戻り値の型:
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#
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.