edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

10K Returning None for Citigroup

Open nikhilbansal23 opened this issue 1 year ago • 8 comments

I was trying to fetch Item form in 10k using the library, but i am getting None values, I have checked the same code for Oracle it is working fine. I have cross checked the form in the EDGAR website same form is present.

c = Company("831001") filing = c.get_filings(form="10-K").latest() tenk = filing.obj()

I can see the table of contents on running below code -
c = Company("831001") c.latest_tenk

getting just this on running below code - /usr/local/lib/python3.11/dist-packages/edgar/files/htmltools.py:271: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set pd.set_option('future.no_silent_downcasting', True) chunk_df.Item = chunk_df.Item.ffill().infer_objects(copy=False)

tenk['Item 1']

Getting None on running below code -

`# Get Item 1 - Business tenk.business

Get Item 1A - Risk Factors

tenk.risk_factors

Get Item 7 - Management's Discussion and Analysis

tenk.management_discussion

Get Item 10 - Directors, Officers and Corporate Governance

tenk.directors_officers_and_governance`

nikhilbansal23 avatar Mar 15 '25 08:03 nikhilbansal23

I replicated the same issue, which works for GOOGL and AAPL. However, interestingly, if you try the following code you can still pull the specific chunks until the helper methods are fixed.

First you can visualize the structure of the 10-K by calling tenk.get_structure(). Once you have the structure, you can try the following workarounds to access the specific chunks:

Instead of tenk.business you can try tenk.view('Item 1') Instead of tenk.risk_factors you can try tenk.view('Item 1A') Instead of tenk.management_discussion you can try tenkview('Item 7')

Hope this helps in the meantime.

kalavrcom avatar Mar 16 '25 18:03 kalavrcom

@khalaver @nikhilbansal23

Good afternoon, I am trying to run this as well though for a different company. Has this been fixed? I am having some issues getting Item 1A and Item 7. Please advise. Thank you.

david08-08 avatar Mar 17 '25 17:03 david08-08

Has this been fixed?

I don't believe so. The lead developer hasn't responded to this ticket, and I haven't seen any code commits related to the parsing. I also tried this recently and it still exhibits the same problem. Which company do you have an issue with to obtain items 1A and 7? We can add that to the list so you and I can test this in the future when additional releases become available.

kalavrcom avatar Mar 17 '25 18:03 kalavrcom

@khalaver I was going to do this in bulk shortly but I noticed you had issues so I wanted to follow-up and see if this was fixed. I was just able to retrieve 1A and 7 for Apple's last annual filing. Here are the results:

AAPL_2024-11-01_Item_7A.txt AAPL_2024-11-01_Item_7.txt AAPL_2024-11-01_Item_1.txt AAPL_2024-11-01_Item_1A.txt AAPL_2024-11-01_Item_2.txt AAPL_2024-11-01_Item_3.txt AAPL_2024-11-01_Item_4.txt

david08-08 avatar Mar 17 '25 18:03 david08-08

@khalaver to confirm I just tried pulling Citi which is the ticker on this ticket and I received the following output error: rocessing filings for C... No content found for Item 1 in C filing on 2025-02-21 No content found for Item 1A in C filing on 2025-02-21 No content found for Item 2 in C filing on 2025-02-21 No content found for Item 3 in C filing on 2025-02-21 No content found for Item 4 in C filing on 2025-02-21 No content found for Item 7 in C filing on 2025-02-21 No content found for Item 7A in C filing on 2025-02-21

david08-08 avatar Mar 17 '25 18:03 david08-08

Citi's 10-K structure is unusual and the current extraction logic cannot detect the sections.

Will look at whether an optimized algorithm or custom logic for Citi could work. Otherwise its something that would need an LLM based approach which isout of scope for the library

Image Image

dgunning avatar Mar 18 '25 21:03 dgunning

Investigation Complete

Same root cause as GitHub issue #215 (GE).

Root Cause

Citigroup uses a Cross Reference Index format:

Item Number | Page
Part I
1. | Business | 4–32, 130–135, 137, 169–173, 314–315
1A. | Risk Factors | 50–64

The content exists ("Risk Factors" appears 61 times, "Business" 573 times) but isn't organized with standard Item headings. Instead, page references point to where content appears.

Resolution

This will be addressed by feature edgartools-zwd: "Support Cross Reference Index format in 10-K filings"

Affected Companies

  • GE (CIK 40545) - #215
  • Citigroup (CIK 831001) - #251
  • Likely other large financials using same format

Tracking: edgartools-zwd

dgunning avatar Nov 25 '25 19:11 dgunning

Fixed in v5.23.4. Citigroup 10-K section extraction now works via cross-reference index.

dgunning avatar Mar 16 '26 22:03 dgunning