run2_13f-stock-search
How to find top fund managers heavily invested in a particular stock across all data quality issues.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 92
- Forks
- 7
01 前言 Front Matter
- name
- run2_13f-stock-search
- description
- How to find top fund managers heavily invested in a particular stock across all data quality issues.
03 SKILL.md 正文
Overview
When searching for funds heavily invested in a single stock, be aware that CUSIP codes might be entered in varying cases (e.g. 69608A108 vs 69608a108), so normalizations like .str.upper() are critical.
Usage Patterns
Finding Top Funds by Value
This strategy avoids issues with case sensitivity and missing commas when parsing TITLEOFCLASS.
import pandas as pd
cusip = "69608A108"
quarter = "2025-q3"
infotable = pd.read_csv(f"/root/{quarter}/INFOTABLE.tsv", sep="\t", dtype=str)
coverpage = pd.read_csv(f"/root/{quarter}/COVERPAGE.tsv", sep="\t", dtype=str)
# Filter by CUSIP defensively
infotable["CUSIP_UPPER"] = infotable["CUSIP"].str.upper()
stock_holders = infotable[infotable["CUSIP_UPPER"] == cusip].copy()
# Sum the VALUE by ACCESSION_NUMBER
stock_holders["VALUE"] = stock_holders["VALUE"].astype(float)
fund_sums = stock_holders.groupby("ACCESSION_NUMBER")["VALUE"].sum().reset_index()
# Sort to get top 3
top_funds = fund_sums.sort_values(by="VALUE", ascending=False).head(3)
# Merge back to COVERPAGE to obtain FILINGMANAGER_NAME
merged = pd.merge(top_funds, coverpage[["ACCESSION_NUMBER", "FILINGMANAGER_NAME"]], on="ACCESSION_NUMBER", how="left")
print(merged[["FILINGMANAGER_NAME", "VALUE"]])
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.