agentsclimarketplace

Python pandas merge

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-gemini-3.1-pro-preview/temperature-simulation/python-pandas-merge

Matching observations with simulated data using exact datetime and rounded depth merges in pandas.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill python-pandas-merge

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.0 KB, 211 tokens by cl100k_base, as published. Nobody here has run it

python-pandas-merge

This skill is useful when aligning observational data, such as field temperature sensors, with multi-dimensional simulated outputs from models based on exact time and rounded spatial coordinates (like depth).

Requirements

  • pandas
  • numpy

Pattern Example

import pandas as pd
import numpy as np

# Suppose `obs` is a DataFrame with 'datetime' (datetime64), 'depth' (float), and 'temp_obs' (float)
# Round depth to match expected simulation bins
obs['depth_rounded'] = obs['depth'].round()

# Suppose `sim` is a DataFrame flattened from xarray, containing 'datetime', 'depth_rounded', and 'temp_sim'
# Perform exact merge
merged = pd.merge(obs, sim, on=['datetime', 'depth_rounded'], how='inner')

# Calculate Root Mean Square Error (RMSE)
rmse = np.sqrt(((merged['temp_sim'] - merged['temp_obs']) ** 2).mean())

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.