Skip to main content

similar_dfs

Get dataframes for similar companies

Source Code: [link]

openbb.stocks.fa.similar_dfs(symbol: str, info: Dict[str, Any], n: int, no_filter: bool = False)

Parameters

NameTypeDescriptionDefaultOptional
symbolstrThe ticker symbol to create a dataframe forNoneFalse
intoDict[str,Any]The dictionary produced from the yfinance.info functionNoneTrue
nintThe number of similar companies to produceNoneFalse
no_filterboolTrue means that we do not filter based on market capFalseTrue

Returns

TypeDescription
List[str, pd.DataFrame]A list of similar companies