Skip to content

fix: serialize dividend factor DataFrame responses#7

Open
jinze wants to merge 1 commit into
atompilot:mainfrom
jinze:fix/divid-factors-dataframe-records
Open

fix: serialize dividend factor DataFrame responses#7
jinze wants to merge 1 commit into
atompilot:mainfrom
jinze:fix/divid-factors-dataframe-records

Conversation

@jinze

@jinze jinze commented Jun 8, 2026

Copy link
Copy Markdown

Change log:

  • Add dataframe_to_records helper for converting a single pandas DataFrame into JSON-safe records.

  • Reuse the helper in existing DataFrame-dict and financial-data conversions.

  • Return divid_factors data through the single-DataFrame converter instead of generic numpy conversion.

Verification:

  • Imported dataframe_to_records with a pandas/numpy sample and verified NaN becomes None.

  • Ran AST compile checks for helpers.py and market.py.

Change log:

- Add dataframe_to_records helper for converting a single pandas DataFrame into JSON-safe records.

- Reuse the helper in existing DataFrame-dict and financial-data conversions.

- Return divid_factors data through the single-DataFrame converter instead of generic numpy conversion.

Verification:

- Imported dataframe_to_records with a pandas/numpy sample and verified NaN becomes None.

- Ran AST compile checks for helpers.py and market.py.
@jinze jinze force-pushed the fix/divid-factors-dataframe-records branch from 76a9584 to 94388ef Compare June 8, 2026 06:47
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