Skip to content

Commit

Permalink
Merge pull request #76 from 1nchaos/dev
Browse files Browse the repository at this point in the history
fixed
  • Loading branch information
1nchaos authored Jul 4, 2024
2 parents 2c058d7 + 3b50b30 commit 5f04412
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adata/stock/info/stock_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def all_code(self):
code['stock_code'] = code['stock_code'].astype(str).str.zfill(6)
df = pd.merge(res_df, code, on='stock_code', how='left')
df['list_date'] = df['list_date'].fillna(df['list_date2'])
df['list_date'] = pd.to_datetime(df['list_date'], errors='coerce').dt.date
df['list_date'] = df['list_date'].where(df['list_date'].notnull(), np.nan)
return df.sort_values('stock_code').reset_index(drop=True)[self.__CODE_COLUMNS]

def __market_rank_baidu(self):
Expand Down

0 comments on commit 5f04412

Please sign in to comment.