Skip to content

improve examples #196

Open

Description

@peterdudfield

Verification

  • I have searched the existing issues to ensure this feature has not already been requested.

Provide a detailed description of the proposed feature.

Would be good to fix and upgrade the current examples

What is the motivation for the feature?

good so other team members can interact with the data-platform

Outline a potential approach or solution (optional).

The examples could be

  • get all the location and save them to csv
  • get the generation data between x and y
  • get the forecast from 2 forecasters, between and x and y
  • how get the details of one location
  • Can i see how the capacity of that location

Activity

  1. devsjc commented on Oct 5, 2026

    @devsjc
    Contributor

    Closed with #211

  2. peterdudfield commented on Oct 5, 2026

    @peterdudfield
    ContributorAuthor

    You might want to leave this open until youve shown the ML team. What do you think?

  3. peterdudfield commented on Oct 12, 2026

    @peterdudfield
    ContributorAuthor

    https://github.com/openclimatefix/data-platform/blob/main/examples/python/example.py
    This doesnt work, i get

        lambda df: df.join(pd.json_normalize(df['other_statistics_fractions']))
                                             ~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/peterdudfield/Documents/Github/ml-tooling/production_backtests/.venv/lib/python3.13/site-packages/pandas/core/frame.py", line 4378, in __getitem__
        indexer = self.columns.get_loc(key)
      File "/Users/peterdudfield/Documents/Github/ml-tooling/production_backtests/.venv/lib/python3.13/site-packages/pandas/core/indexes/range.py", line 535, in get_loc
        raise KeyError(key)
    KeyError: 'other_statistics_fractions'
    
  4. peterdudfield commented on Oct 12, 2026

    @peterdudfield
    ContributorAuthor

    ah it didnt work, if there were no forecast values

  5. devsjc commented on Oct 12, 2026

    @devsjc
    Contributor

    If I run this it works. Is your repo up to date?

    $ uv run examples/python/example.py
    
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions