Skip to content

Latency: Need to unnest "statistics" column and cast to appropriate dtypes #70

Description

@blaylockbk
from synoptic import Latency

df = Latency(
    stid="wbb",
    start=datetime(2024, 6, 6),
    end=datetime(2024, 6, 6, 1),
    stats="all",
).df()

# SynopticPy should unnest "statistics" column for you...
df.unnest("statistics")

Need to cast columns to appropriate type (datetime, duration, etc.)

This service reports the delay time (in minutes) of an observation received at our ingest servers relative to the observation’s timestamp.
https://docs.synopticdata.com/services/latency

Duration columns

  • value
  • average
  • maximum
  • minimum
  • standard_deviation
  • median

Datetime columns

  • date_time
  • start
  • end
  • maxtime
  • mintime

Count column should be an uint64, right?

Restricted_data and Restricted metadata should be bool

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Latencysynoptic.services.Latency

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions