Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.data.time_coordinates
Stay organized with collections
Save and categorize content based on your preferences.
Deals with coordinate values in the time dimensions of input data.
Classes
class TimeCoordinates
: A wrapper around time coordinates in Meridian's input data.
Functions
normalize_date(...)
: Normalizes the given date value into a datetime.date
.
normalize_date_interval(...)
: Normalizes representations of a date interval into a tuple of date
s.
Type Aliases
DateInterval
Instance of types.UnionType
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eThis content covers the handling of time coordinate values within input data for the Meridian project.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeCoordinates\u003c/code\u003e class serves as a wrapper for time coordinates in Meridian's data.\u003c/p\u003e\n"],["\u003cp\u003eThe functions \u003ccode\u003enormalize_date\u003c/code\u003e and \u003ccode\u003enormalize_date_interval\u003c/code\u003e are used to standardize date and date interval representations into usable \u003ccode\u003edatetime.date\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDateInterval\u003c/code\u003e is a type alias that specifies the expected type of the date.\u003c/p\u003e\n"],["\u003cp\u003eThe module contains a \u003ccode\u003eDate\u003c/code\u003e member that is an instance of \u003ccode\u003etypes.UnionType\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/data/time_coordinates.py) |\n\nDeals with coordinate values in the time dimensions of input data.\n\nClasses\n\n[`class TimeCoordinates`](../../meridian/data/time_coordinates/TimeCoordinates.md): A wrapper around time coordinates in Meridian's input data.\n\nFunctions\n\n[`normalize_date(...)`](../../meridian/data/time_coordinates/normalize_date.md): Normalizes the given date value into a `datetime.date`.\n\n[`normalize_date_interval(...)`](../../meridian/data/time_coordinates/normalize_date_interval.md): Normalizes representations of a date interval into a tuple of `date`s.\n\nType Aliases\n\n[`DateInterval`](../../meridian/data/time_coordinates/DateInterval.md)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ||\n|------|-------------------------------|\n| Date | Instance of `types.UnionType` |\n\n\u003cbr /\u003e"]]