Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.data.load
Stay organized with collections
Save and categorize content based on your preferences.
Contains classes and methods to load input data for Meridian.
The InputDataLoader
abstract class defines a single method: load()
which
reads data from any of the supported sources and stores it as an InputData
object.
Classes
class DataFrameDataLoader
: Reads data from a Pandas DataFrame
.
class InputDataLoader
: Loads the data from the specified data format.
class XrDatasetDataLoader
: Reads data from an xarray.Dataset
object.
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 page provides classes and methods for loading input data into the Meridian system.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInputDataLoader\u003c/code\u003e abstract class defines the \u003ccode\u003eload()\u003c/code\u003e method, which is responsible for reading data from various sources and storing it as an \u003ccode\u003eInputData\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDataFrameDataLoader\u003c/code\u003e loads data from a Pandas \u003ccode\u003eDataFrame\u003c/code\u003e while \u003ccode\u003eXrDatasetDataLoader\u003c/code\u003e loads data from an \u003ccode\u003exarray.Dataset\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe data loaded will be made from the supported sources.\u003c/p\u003e\n"]]],["The core content defines methods and classes for loading input data into the Meridian system. The `InputDataLoader` abstract class features a `load()` method for reading data from supported sources and storing it as `InputData`. Specific implementations include `DataFrameDataLoader`, which reads from Pandas `DataFrame` objects, and `XrDatasetDataLoader`, which handles `xarray.Dataset` objects. These classes provide structured ways to access data from different formats.\n"],null,["\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/data/load.py) |\n\nContains classes and methods to load input data for Meridian.\n\nThe `InputDataLoader` abstract class defines a single method: `load()` which\nreads data from any of the supported sources and stores it as an `InputData`\nobject.\n\nClasses\n\n[`class DataFrameDataLoader`](../../meridian/data/load/DataFrameDataLoader.md): Reads data from a Pandas `DataFrame`.\n\n[`class InputDataLoader`](../../meridian/data/load/InputDataLoader.md): Loads the data from the specified data format.\n\n[`class XrDatasetDataLoader`](../../meridian/data/load/XrDatasetDataLoader.md): Reads data from an `xarray.Dataset` object."]]