From e7bc351aa21f728c4d8a40b135de77d289ad909c Mon Sep 17 00:00:00 2001 From: Morgan Williams Date: Fri, 17 May 2024 12:54:20 +1000 Subject: [PATCH] Initialize values to float in geochem.transform.aggregate_element --- pyrolite/geochem/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrolite/geochem/transform.py b/pyrolite/geochem/transform.py index b1bcb2ae..bc88aac0 100644 --- a/pyrolite/geochem/transform.py +++ b/pyrolite/geochem/transform.py @@ -342,7 +342,7 @@ def aggregate_element( for t in targetnames: if t not in _df: - _df[t] = 0 # avoid missing column errors + _df[t] = 0. # avoid missing column errors coeff = np.array(coeff) if coeff.ndim == 2: