INNER CODE UNIT · Python

get_specific_indices

lefterisloukas/edgar-crawler · download_filings.py:331

def get_specific_indices(
    tsv_filenames: List[str],
    filing_types: List[str],
    user_agent: str,
    cik_tickers: Optional[List[str]] = None,
) -> pd.DataFrame:
    """
    Loops through all the indexes and keeps only the rows/Series for the specific filing types.

    Args:
            tsv_filenames (List[str]): The filenames of the indices.
            filing_types (List[str]): The filing types to download, e.g., ['10-K', '8-K'].
            user_agent (str): The User-Agent string that will be declared to SEC EDGAR.
            cik_tickers (Optional[List[str]]): List of CIKs or Tickers. If None, the function processes all CIKs in the provided indices.

    Returns:
            pd.DataFrame: A dataframe which contains series only for the specific indices.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…