Skip to content

[BugFix] FixSecForm13FHRFetcher: TypeError: Expected numeric dtype, got object instead. #7171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

deeleeramone
Copy link
Contributor

This PR fixes a bug that the tests running in #7169 found. I would have expected tests to have previously revealed this, but it could likely be attributed to a higher pandas version.

To test this, upgrade the version of pandas to the latest, in your obb environment, and then run the SEC provider's unit test.

pytest test_sec_fetchers.py::test_sec_form_13FHR_fetcher

Before will raise a TypeError.

TypeError: Expected numeric dtype, got object instead.

After, passes.

@deeleeramone deeleeramone added bug Bugs and bug fixes platform OpenBB Platform v4 PRs for v4 labels Jul 16, 2025
@deeleeramone deeleeramone requested a review from piiq July 16, 2025 22:13
@deeleeramone deeleeramone added this pull request to the merge queue Jul 17, 2025
Merged via the queue into develop with commit 34de2f6 Jul 17, 2025
12 checks passed
@deeleeramone deeleeramone deleted the bugfix/sec-13f-assign-float branch July 17, 2025 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs and bug fixes platform OpenBB Platform v4 PRs for v4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants