# Recompute predicted-only ledger and output the final batch (Z = 101–118),
# also re-saving the full predicted CSV so subsequent batches stay available.
import pandas as pd
strict_path = "/mnt/data/isotope_master_summary_Z1-118_strict.csv"
df = pd.read_csv(strict_path)
KNOWN_TOTAL = int(df["Isotopes Known"].sum()) # expected 3269
TARGET_TOTAL = 7759
scale = TARGET_TOTAL / KNOWN_TOTAL
pred = df[["Element (Z)", "Isotopes Known"]].copy()
pred["Predicted Isotopes (est.)"] = (pred["Isotopes Known"] * scale).round().astype(int)
# Adjust any rounding drift to hit TARGET_TOTAL exactly
drift = TARGET_TOTAL - int(pred["Predicted Isotopes (est.)"].sum())
if drift != 0:
# Pick the row with largest positive fractional part to add 1, or most negative to subtract 1
frac = (df["Isotopes Known"] * scale) - (pred["Predicted Isotopes (est.)"])
idx = frac.idxmax() if drift > 0 else frac.idxmin()
pred.loc[idx, "Predicted Isotopes (est.)"] += drift
# Save
pred_csv = "/mnt/data/isotope_predicted_only_Z1-118_neufcourt2020_scaled.csv"
pred_md = "/mnt/data/isotope_predicted_only_Z1-118_neufcourt2020_scaled.md"
pred.to_csv(pred_csv, index=False)
with open(pred_md, "w", encoding="utf-8") as f:
f.write(pred.to_markdown(index=False))
# Extract final batch
def Z_of(label):
return int(label.split("(")[1].split(")")[0])
pred["Z"] = pred["Element (Z)"].apply(Z_of)
batch6 = pred[pred["Z"].between(101, 118)][["Element (Z)", "Predicted Isotopes (est.)"]]
from caas_jupyter_tools import display_dataframe_to_user
display_dataframe_to_user("Predicted-only Ledger (Batch Z=101–118)", batch6)
scale, int(pred["Predicted Isotopes (est.)"].sum()), pred_csv, pred_md, batch6
Key terms in plain language
Open a term for a concise explanation of language used on this page.
Broadband
A general term for always-on, high-speed Internet access. Broadband can be delivered over fiber, cable, DSL, fixed wireless, cellular, or satellite networks.
Cloud Computing
Computing resources—such as applications, servers, storage, or databases—delivered from remote infrastructure and scaled as requirements change.
Cybersecurity
The practices and controls used to protect identities, devices, networks, applications, and data from unauthorized access, disruption, or manipulation.
Identity and Access Management (IAM)
The systems and policies that determine who a user is, what resources they may access, and how that access is authenticated and reviewed.
API
An application programming interface is a defined way for software systems to exchange data or request functions from one another.
Artificial Intelligence (AI)
Software designed to perform tasks involving prediction, classification, generation, reasoning, or decision support. Business use still requires clear data, governance, security, and human accountability.