@lightdash/common 3.194.0 → 3.194.2

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.
@@ -36,7 +36,7 @@ def run(inputs, params):
36
36
  df = inputs["orders"] # one DataFrame per reference, columns already typed
37
37
  cutoff = pd.Timestamp("2026-01-01") # all datetimes are tz-naive UTC wall clock; never tz_localize/tz_convert
38
38
  out = df[df["created_at"] >= cutoff].groupby("customer_id", as_index=False)["revenue"].sum()
39
- return out # unique [A-Za-z_][A-Za-z0-9_]* column names, index dropped
39
+ 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
40
40
 
41
41
  Imports aside, all code inside run(). Read columns as df["col"], never df.col. Check df.dtypes before sum/astype.
42
42
  Libraries: ${PYTHON_SANDBOX_LIBRARIES_DESCRIPTION}. No network, no installs.`;