@lightdash/common 3.194.0 → 3.194.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ def run(inputs, params):
41
41
  df = inputs["orders"] # one DataFrame per reference, columns already typed
42
42
  cutoff = pd.Timestamp("2026-01-01") # all datetimes are tz-naive UTC wall clock; never tz_localize/tz_convert
43
43
  out = df[df["created_at"] >= cutoff].groupby("customer_id", as_index=False)["revenue"].sum()
44
- return out # unique [A-Za-z_][A-Za-z0-9_]* column names, index dropped
44
+ return out # unique snake_case column names, letter first, max 63 chars (revenue_2024, not "Revenue 2024" or 2024); flatten pivot/unstack columns; index dropped
45
45
 
46
46
  Imports aside, all code inside run(). Read columns as df["col"], never df.col. Check df.dtypes before sum/astype.
47
47
  Libraries: ${PYTHON_SANDBOX_LIBRARIES_DESCRIPTION}. No network, no installs.`;