Skip to content

Commit e3512d4

Browse files
committed
fix(industry): correct growth estimate column name
Fix incorrect column name in Industry._parse_top_growth_companies by removing an accidental leading space from 'growth estimate' Ensure DataFrame column names match expected keys so consumers can access the growth estimate column reliably
1 parent bc67252 commit e3512d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yfinance/domain/industry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _parse_top_growth_companies(self, top_growth_companies: Dict) -> Optional[_p
118118
Returns:
119119
Optional[pd.DataFrame]: DataFrame containing parsed top growth companies data.
120120
"""
121-
compnaies_column = ['symbol','name','ytd return',' growth estimate']
121+
compnaies_column = ['symbol','name','ytd return','growth estimate']
122122
compnaies_values = [(c.get('symbol', None),
123123
c.get('name', None),
124124
c.get('ytdReturn',{}).get('raw', None),

0 commit comments

Comments
 (0)