Skip to content

Commit 5c8cfac

Browse files
dgunningclaude
andcommitted
Add documentation for FundShareholderReport (N-CSR/N-CSRS)
Guide page with expense, performance, and holdings DataFrame docs, metadata/methods reference tables, common analysis patterns, and Rich panel screenshot. Added to mkdocs nav and data-objects overview. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 099d09d commit 5c8cfac

4 files changed

Lines changed: 273 additions & 0 deletions

File tree

‎docs/data-objects.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,20 @@ form144.securities # security details
140140

141141
---
142142

143+
## Fund Shareholder Reports (N-CSR / N-CSRS)
144+
145+
Parse certified annual and semiannual shareholder reports with expense ratios, performance data, and share class details.
146+
147+
```python
148+
report = filing.obj() # FundShareholderReport
149+
report.expense_data() # expense ratios per share class
150+
report.performance_data() # annual returns per share class
151+
```
152+
153+
[:octicons-arrow-right-24: Fund Shareholder Reports guide](guides/fundshareholderreport-data-object-guide.md)
154+
155+
---
156+
143157
## Fund Voting Records (N-PX)
144158

145159
See how mutual funds voted on shareholder proposals.
Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
---
2+
description: Parse SEC N-CSR and N-CSRS fund shareholder reports with Python. Extract expense ratios, annual returns, top holdings, and share class data using edgartools.
3+
---
4+
5+
# Fund Shareholder Reports (N-CSR / N-CSRS): Parse Certified Shareholder Reports with Python
6+
7+
Registered investment companies file Form N-CSR annually and Form N-CSRS semiannually -- certified shareholder reports that include expense ratios, annual performance data, and top portfolio holdings for every share class. EdgarTools parses these Inline XBRL filings into structured Python objects using the OEF (Open-End Fund) taxonomy.
8+
9+
```python
10+
from edgar import get_filings
11+
12+
filings = get_filings(form="N-CSR")
13+
report = filings[0].obj()
14+
report
15+
```
16+
17+
![Fund Shareholder Report N-CSR parsed with Python edgartools](../images/fundshareholderreport-display.webp)
18+
19+
Three lines to get a fully parsed certified shareholder report with fund name, net assets, expense ratios, and annual returns for every share class.
20+
21+
---
22+
23+
## Access Expense Data
24+
25+
The `expense_data()` method returns a DataFrame with one row per share class, showing expense ratios and fees paid during the period:
26+
27+
```python
28+
report.expense_data()
29+
```
30+
31+
| Column | What it is |
32+
|--------|-----------|
33+
| `class_name` | Share class name (e.g., `"Investor Shares"`, `"Admiral Shares"`) |
34+
| `ticker` | Share class ticker symbol (if available) |
35+
| `expense_ratio_pct` | Total expense ratio as a decimal fraction |
36+
| `expenses_paid` | Total expenses paid in dollars during the period |
37+
| `advisory_fees_paid` | Advisory fees paid in dollars during the period |
38+
39+
Expense ratios are stored as decimal fractions. An `expense_ratio_pct` of `0.0094` means a 0.94% expense ratio. Multiply by 100 to display as a percentage.
40+
41+
---
42+
43+
## Access Performance Data
44+
45+
The `performance_data()` method returns a DataFrame of average annual returns across all share classes and reporting periods:
46+
47+
```python
48+
report.performance_data()
49+
```
50+
51+
| Column | What it is |
52+
|--------|-----------|
53+
| `class_name` | Share class name |
54+
| `ticker` | Share class ticker symbol |
55+
| `period` | Return period label (e.g., `"1-Year"`, `"5-Year"`, `"10-Year"`) |
56+
| `return_pct` | Average annual return as a decimal fraction |
57+
| `inception_date` | Share class inception date (if reported) |
58+
59+
Returns are decimal fractions. A `return_pct` of `0.1615` means a 16.15% return. Use this DataFrame to compare performance across share classes and time horizons in a single query.
60+
61+
---
62+
63+
## Access Holdings Data
64+
65+
The `holdings_data()` method returns a DataFrame of top portfolio holdings disclosed in the report:
66+
67+
```python
68+
report.holdings_data()
69+
```
70+
71+
| Column | What it is |
72+
|--------|-----------|
73+
| `class_name` | Share class name |
74+
| `holding` | Holding name derived from the XBRL dimension member |
75+
| `pct_of_nav` | Holding as a percentage of net asset value (decimal fraction) |
76+
| `pct_of_total_inv` | Holding as a percentage of total investments (decimal fraction) |
77+
78+
Holdings data availability varies significantly across filers. Some funds report detailed top-ten holdings; others omit this section entirely. Check `df.empty` before analysis.
79+
80+
---
81+
82+
## Look Up a Specific Fund
83+
84+
Search by management company name or CIK:
85+
86+
```python
87+
from edgar import Company
88+
89+
company = Company("VANGUARD")
90+
filing = company.get_filings(form="N-CSR").latest(1)
91+
report = filing.obj()
92+
93+
print(report.fund_name) # Fund name from the OEF taxonomy
94+
print(report.report_type) # "Annual"
95+
print(report.num_share_classes) # Number of share classes parsed
96+
print(report.net_assets) # Net assets (Decimal, or None)
97+
```
98+
99+
A single N-CSR filing may cover multiple fund series within a complex. The `fund_name` property returns the first fund name found in the Inline XBRL document.
100+
101+
---
102+
103+
## Access Semiannual Reports
104+
105+
N-CSRS filings follow the same structure as N-CSR but cover the fund's semiannual period. The `is_annual` property distinguishes them:
106+
107+
```python
108+
from edgar import get_filings
109+
110+
filings = get_filings(form="N-CSRS")
111+
report = filings[0].obj()
112+
113+
print(report.report_type) # "Semi-Annual"
114+
print(report.is_annual) # False
115+
```
116+
117+
Both form types return the same `FundShareholderReport` object. All three DataFrame methods work identically for both annual and semiannual reports.
118+
119+
---
120+
121+
## Common Analysis Patterns
122+
123+
### Compare expense ratios across share classes
124+
125+
```python
126+
expenses = report.expense_data()
127+
128+
# Display expense ratios as percentages
129+
expenses["expense_ratio_pct_display"] = expenses["expense_ratio_pct"] * 100
130+
print(expenses[["class_name", "ticker", "expense_ratio_pct_display"]].to_string(index=False))
131+
```
132+
133+
### Sort share classes by long-term return
134+
135+
```python
136+
perf = report.performance_data()
137+
138+
# Focus on 10-year returns
139+
ten_year = perf[perf["period"].str.contains("10", na=False)].copy()
140+
ten_year["return_display"] = ten_year["return_pct"] * 100
141+
ten_year_sorted = ten_year.sort_values("return_display", ascending=False)
142+
print(ten_year_sorted[["class_name", "ticker", "return_display"]])
143+
```
144+
145+
### Check portfolio turnover
146+
147+
```python
148+
if report.portfolio_turnover is not None:
149+
turnover_pct = float(report.portfolio_turnover) * 100
150+
print(f"Portfolio turnover: {turnover_pct:.1f}%")
151+
else:
152+
print("Portfolio turnover not reported")
153+
```
154+
155+
### Identify missing data before analysis
156+
157+
```python
158+
expenses = report.expense_data()
159+
performance = report.performance_data()
160+
holdings = report.holdings_data()
161+
162+
for label, df in [("Expenses", expenses), ("Performance", performance), ("Holdings", holdings)]:
163+
if df.empty:
164+
print(f"{label}: not available in this filing")
165+
else:
166+
print(f"{label}: {len(df)} rows")
167+
```
168+
169+
---
170+
171+
## Access Individual Objects
172+
173+
The `share_classes` list provides direct access to each share class's `ShareClassInfo` object. These are useful for custom display, export, or filtering logic.
174+
175+
### Iterate over share classes
176+
177+
```python
178+
for sc in report.share_classes:
179+
ticker = f" ({sc.class_ticker})" if sc.class_ticker else ""
180+
print(f"{sc.class_name}{ticker}")
181+
print(f" Expense ratio: {float(sc.expense_ratio_pct) * 100:.2f}%" if sc.expense_ratio_pct else " Expense ratio: N/A")
182+
print(f" Holdings reported: {sc.holdings_count}" if sc.holdings_count else " Holdings count: N/A")
183+
```
184+
185+
### Inspect annual returns for a single class
186+
187+
```python
188+
sc = report.share_classes[0]
189+
190+
for ret in sc.annual_returns:
191+
if ret.return_pct is not None:
192+
print(f" {ret.period_label}: {float(ret.return_pct) * 100:.2f}%")
193+
```
194+
195+
### Inspect top holdings for a single class
196+
197+
```python
198+
sc = report.share_classes[0]
199+
200+
for holding in sc.holdings:
201+
if holding.pct_of_nav is not None:
202+
print(f" {holding.name}: {float(holding.pct_of_nav) * 100:.2f}% of NAV")
203+
```
204+
205+
---
206+
207+
## Metadata Quick Reference
208+
209+
| Property | Returns | Example |
210+
|----------|---------|---------|
211+
| `fund_name` | Fund name from OEF taxonomy | `"Vanguard 500 Index Fund"` |
212+
| `report_type` | `"Annual"` or `"Semi-Annual"` | `"Annual"` |
213+
| `is_annual` | Whether this is an N-CSR (annual) report | `True` |
214+
| `net_assets` | Net assets as `Decimal` (or `None`) | `Decimal("47382956000")` |
215+
| `portfolio_turnover` | Turnover rate as decimal fraction (or `None`) | `Decimal("0.7567")` |
216+
| `num_share_classes` | Number of share classes parsed | `3` |
217+
| `share_classes` | `List[ShareClassInfo]` for all share classes | Full per-class data |
218+
219+
---
220+
221+
## Methods Quick Reference
222+
223+
| Method | Returns | What it does |
224+
|--------|---------|-------------|
225+
| `expense_data()` | `DataFrame` | Expense ratios and fees for all share classes |
226+
| `performance_data()` | `DataFrame` | Average annual returns across all share classes and periods |
227+
| `holdings_data()` | `DataFrame` | Top holdings by percentage of NAV for all share classes |
228+
229+
---
230+
231+
## Things to Know
232+
233+
**Values are decimal fractions, not percentages.** Expense ratios, portfolio turnover, and return values are all stored as decimals. An `expense_ratio_pct` of `0.0094` means 0.94%. Multiply by 100 before displaying to users.
234+
235+
**Net assets are in full dollars.** A `net_assets` value of `47382956000` means exactly $47.4 billion. There is no thousands scaling.
236+
237+
**Annual and semiannual reports use the same object.** N-CSR (annual) and N-CSRS (semiannual) filings both produce a `FundShareholderReport`. Use `is_annual` to distinguish them.
238+
239+
**XBRL is required.** `from_filing()` calls `filing.xbrl()` internally. If the filing does not contain Inline XBRL -- which is uncommon but possible for older filings -- `filing.obj()` returns `None`. Always check for `None` before accessing properties.
240+
241+
**Ticker symbols are often absent.** The OEF taxonomy includes a `ClassTicker` concept, but many filers do not populate it. The `class_ticker` field will be `None` for most share classes from smaller fund complexes.
242+
243+
**Holdings by NAV are sparsely populated.** The `pct_of_nav` field requires the filer to tag `oef:HoldingPctOfNav` against a `HoldingAxis` dimension. Many filers report only `holdings_count` (the total number of holdings) without disclosing individual holding percentages.
244+
245+
**Multiple fund series per filing.** A single N-CSR filing can cover multiple series from a fund family. Only the first `oef:FundName` fact is captured in `fund_name`. The DataFrame methods aggregate data across all discovered share classes regardless of series.
246+
247+
**Share class discovery uses ClassAxis dimensions.** Share classes are identified from the `oef:ClassAxis` dimension in the Inline XBRL. For single-class funds that do not use this dimension, a single placeholder class is constructed from undimensioned facts.
248+
249+
**Approximately 6,600 filings per year.** N-CSR and N-CSRS together account for roughly 6,623 annual filings from registered investment companies, covering thousands of individual fund series.
250+
251+
---
252+
253+
## Related
254+
255+
- [Working with Filings](working-with-filing.md) -- general filing access patterns
256+
- [Fund Portfolios (N-PORT)](nport-data-object-guide.md) -- monthly fund portfolio holdings
257+
- [Money Market Funds (N-MFP)](moneymarketfund-data-object-guide.md) -- money market fund holdings and yields
258+
- [Fund Census (N-CEN)](fundcensus-data-object-guide.md) -- annual fund operational census with service provider data
81.5 KB
Loading

‎mkdocs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ nav:
8888
- Fund Portfolios (N-PORT): guides/nport-data-object-guide.md
8989
- Money Market Funds (N-MFP): guides/moneymarketfund-data-object-guide.md
9090
- Fund Census (N-CEN): guides/fundcensus-data-object-guide.md
91+
- Fund Shareholder Reports (N-CSR): guides/fundshareholderreport-data-object-guide.md
9192
- Proxy Statements (DEF 14A): guides/proxystatement-data-object-guide.md
9293
- Private Offerings (Form D): guides/formd-data-object-guide.md
9394
- Crowdfunding (Form C): guides/formc-data-object-guide.md

0 commit comments

Comments
 (0)