OnurKerimoglu commited on
Commit
412440d
·
1 Parent(s): 61b2df0

src.ticker_finder: minor fixes

Browse files
Files changed (1) hide show
  1. src/ticker_finder.py +2 -4
src/ticker_finder.py CHANGED
@@ -110,7 +110,6 @@ class TickerFinder():
110
  results : pd.DataFrame
111
  A pd.df containing the matched title, ticker, and fuzzy matching score
112
  """
113
-
114
  matches = process.extract(
115
  input_name.lower(),
116
  self.df["title"].str.lower(),
@@ -125,7 +124,8 @@ class TickerFinder():
125
  def find_best_matching_ticker(
126
  self,
127
  ticker:str,
128
- top_n:int=3) -> pd.DataFrame:
 
129
  """
130
  Find the best matching company ticker for a given ticker.
131
  Args:
@@ -181,11 +181,9 @@ class TickerFinder():
181
  df):
182
  """
183
  Convert a pd.DataFrame into a pretty string, using the tabulate package.
184
-
185
  Args:
186
  df : pd.DataFrame
187
  The dataframe to convert
188
-
189
  Returns:
190
  pretty_string : str
191
  A string containing the pretty-formatted dataframe
 
110
  results : pd.DataFrame
111
  A pd.df containing the matched title, ticker, and fuzzy matching score
112
  """
 
113
  matches = process.extract(
114
  input_name.lower(),
115
  self.df["title"].str.lower(),
 
124
  def find_best_matching_ticker(
125
  self,
126
  ticker:str,
127
+ top_n:int=3
128
+ ) -> pd.DataFrame:
129
  """
130
  Find the best matching company ticker for a given ticker.
131
  Args:
 
181
  df):
182
  """
183
  Convert a pd.DataFrame into a pretty string, using the tabulate package.
 
184
  Args:
185
  df : pd.DataFrame
186
  The dataframe to convert
 
187
  Returns:
188
  pretty_string : str
189
  A string containing the pretty-formatted dataframe