Skip to content

fix(data): preserve single-symbol concat values - #913

Open
JohnDReynolds wants to merge 1 commit into
polakowo:masterfrom
JohnDReynolds:fix/data/single-symbol-concat-values
Open

JohnDReynolds wants to merge 1 commit into
polakowo:masterfrom
JohnDReynolds:fix/data/single-symbol-concat-values

Conversation

@JohnDReynolds

Copy link
Copy Markdown
Contributor

Summary

Currently, Data.concat() builds single-symbol results through a float64 placeholder. This can round large integer values, such as nanosecond timestamps, and reject stored boolean, string, datetime or nullable columns.

This PR fixes that by constructing each single-symbol result from a copy of its stored column, then applying the existing object inference and symbol naming.

Benefit and scope: Preserves large integer values in feature-based output and CSV exports with a small change confined to single-symbol concatenation.

Validation

Regression evidence

Event timestamps 1704067200000000001 and 1704067200000000003 now remain distinct through single-symbol concatenation and CSV export. Previously, both were rounded to 1704067200000000000. Regressions also cover native and nullable dtypes, missing and empty data, symbol and feature labels, configurable string inference, and independent result values.

Checks

  • Focused regressions: 48 passed.
  • Complete data test module: 88 passed.
  • Full Python suite: 1,960 passed, 2 skipped.

Notes

Single-symbol results now retain native column dtypes before the existing infer_objects() normalization.

AI use

  • Tools and models: OpenAI Codex, using GPT-6.1 Sol.
  • What AI did: Used proprietary workflows tailored to this repository to reproduce the data loss, implement the construction correction and regression tests, verify native pandas behavior and result ownership, and prepare this description.
  • Human review before submission: I personally reviewed all changes, weighing the benefits against complexity and maintenance burden. My review draws on 40 years of software development experience in the investment management industry.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant