René's URL Explorer Experiment


Title: Reference data turns CUSIP, CIK and other ID columns into numbers · Issue #146 · databento/databento-python · GitHub

Open Graph Title: Reference data turns CUSIP, CIK and other ID columns into numbers · Issue #146 · databento/databento-python

X Title: Reference data turns CUSIP, CIK and other ID columns into numbers · Issue #146 · databento/databento-python

Description: convert_jsonl_to_df reads reference responses with pd.read_json(TextIOWrapper(reader), lines=True) (parsing.py line 481). read_json defaults to dtype=True, so any identifier column whose values are all digits comes back as int64 (or floa...

Open Graph Description: convert_jsonl_to_df reads reference responses with pd.read_json(TextIOWrapper(reader), lines=True) (parsing.py line 481). read_json defaults to dtype=True, so any identifier column whose values are...

X Description: convert_jsonl_to_df reads reference responses with pd.read_json(TextIOWrapper(reader), lines=True) (parsing.py line 481). read_json defaults to dtype=True, so any identifier column whose values are...

Opengraph URL: https://github.com/databento/databento-python/issues/146

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reference data turns CUSIP, CIK and other ID columns into numbers","articleBody":"`convert_jsonl_to_df` reads reference responses with `pd.read_json(TextIOWrapper(reader), lines=True)` ([parsing.py line 481](https://github.com/databento/databento-python/blob/f6529f1062e0642fe52334d767a72f2a75244398/databento/common/parsing.py#L481)). `read_json` defaults to `dtype=True`, so any identifier column whose values are all digits comes back as int64 (or float64 when there's a null), and leading zeros are lost.\n\nThis reaches `security_master.get_last` and `get_range`, `corporate_actions.get_range` and `adjustment_factors.get_range`.\n\n### Example\n\nWith the repo's own fixture `tests/data/REFERENCE/test_data.security-master.jsonl` (Apple), mocked the same way as `tests/test_reference_security.py`, `client.security_master.get_last(symbols=\"AAPL\")` gives\n\n| field | JSON from the API | DataFrame today |\n|---|---|---|\n| us_code (CUSIP) | `\"037833100\"` | `37833100` (int64) |\n| cik | `\"0000320193\"` | `320193` (int64) |\n| sic | `\"3571\"` | `3571` (int64) |\n| naics | `\"334111\"` | `334111` (int64) |\n\nThe adjustment factors fixture (Microsoft) does the same with us_code `\"594918104\"`, and option_id `\"1\"` in the corporate actions fixture comes back as an int.\n\nCIKs are always zero-padded to 10 digits, so every row with a CIK loses characters. For CUSIPs, SIC and local codes it depends on whether every value in that column of the response is all digits, so the same column can come back as strings in one call and as numbers in another (a Hong Kong local_code like `00005` would become `5`).\n\n### Possible fix\n\nPass the identifier columns to `read_json` as `dtype=object` (symbol, nasdaq_symbol, local_code, local_code_resulting, outturn_local_code, us_code, outturn_us_code, sic, cik, gics, naics, option_id, serial_id), so every other column is read exactly as before. I have it working locally, about 25 lines in 2 files, and the reference and parsing tests (120) and the full suite still pass. One side effect is that listed columns that were already text change dtype from pandas' `str` to `object`. Happy to open a PR if that's useful.\n\nI used Claude Code to find and check this.\n","author":{"url":"https://github.com/JeetuSK0808","@type":"Person","name":"JeetuSK0808"},"datePublished":"2026-11-21T04:43:25Z","url":"https://github.com/databento/databento-python/issues/146"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:47406ab3-a427-0e1a-d6e1-23863ac1bee1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC26:1D68C9:1973AA2:220390F:6B03F3FC
html-safe-noncedc3fc0f544e8c5e95ab20571107ec13f547ff1fa5816f0eaad881db1e267eb51
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzI2OjFENjhDOToxOTczQUEyOjIyMDM5MEY6NkIwM0YzRkMiLCJ2aXNpdG9yX2lkIjoiNDg0NTM1MTg0NzY1MDkxNTMyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacffa3b87065c32eb3cc9ad16a850f6110767e7a896869cddca84ead722200a14a
hovercard-subject-tagissue:6524549587
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/databento/databento-python/146/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bfe1238d3c15419149f5a17b2d8f4cee1d4c95d04cd1d86805dd4dff772175a3/databento/databento-python/issues/146
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bfe1238d3c15419149f5a17b2d8f4cee1d4c95d04cd1d86805dd4dff772175a3/databento/databento-python/issues/146
og:image:altconvert_jsonl_to_df reads reference responses with pd.read_json(TextIOWrapper(reader), lines=True) (parsing.py line 481). read_json defaults to dtype=True, so any identifier column whose values are...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJeetuSK0808
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/databento/databento-python git https://github.com/databento/databento-python.git
octolytics-dimension-user_id64141749
octolytics-dimension-user_logindatabento
octolytics-dimension-repository_id440757282
octolytics-dimension-repository_nwodatabento/databento-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440757282
octolytics-dimension-repository_network_root_nwodatabento/databento-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/databento/databento-python/issues/146#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatabento%2Fdatabento-python%2Fissues%2F146
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatabento%2Fdatabento-python%2Fissues%2F146
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=databento%2Fdatabento-python
Reloadhttps://github.com/databento/databento-python/issues/146
Reloadhttps://github.com/databento/databento-python/issues/146
Reloadhttps://github.com/databento/databento-python/issues/146
databentohttps://github.com/databento
databento-pythonhttps://github.com/databento/databento-python
Codehttps://github.com/databento/databento-python
Issues2 (2)https://github.com/databento/databento-python/issues
Pull requests1 (1)https://github.com/databento/databento-python/pulls
Actionshttps://github.com/databento/databento-python/actions
Security and qualityhttps://github.com/databento/databento-python/security
Insightshttps://github.com/databento/databento-python/insights
https://github.com/databento/databento-python
New issuehttps://github.com/login?return_to=https://github.com/databento/databento-python/issues/146
New issuehttps://github.com/login?return_to=https://github.com/databento/databento-python/issues/146
Reference data turns CUSIP, CIK and other ID columns into numbershttps://github.com/databento/databento-python/issues/146#top
https://github.com/JeetuSK0808
JeetuSK0808https://github.com/JeetuSK0808
on Nov 21, 2026https://github.com/databento/databento-python/issues/146#issue-6524549587
parsing.py line 481https://github.com/databento/databento-python/blob/f6529f1062e0642fe52334d767a72f2a75244398/databento/common/parsing.py#L481
Sign up for freehttps://github.com/signup?return_to=https://github.com/databento/databento-python/issues/146
Sign in to commenthttps://github.com/login?return_to=https://github.com/databento/databento-python/issues/146
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.