Skip to content

Commit

Permalink
升级组件
Browse files Browse the repository at this point in the history
  • Loading branch information
myhhub committed Nov 15, 2024
1 parent aeeb9b1 commit 1e3dcec
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trusted-host = mirrors.aliyun.com" > /etc/pip.conf && \
pip install mysqlclient && \
pip install requests && \
pip install arrow && \
pip install numpy==1.26.4 && \
pip install numpy && \
pip install SQLAlchemy && \
pip install PyMySQL && \
pip install Logbook && \
Expand Down
34 changes: 34 additions & 0 deletions instock/core/crawling/stock_fund_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ def stock_sector_fund_flow_rank(
"今日主力净流入最大股",
]
]
# temp_df['今日涨跌幅'] = pd.to_numeric(temp_df['今日涨跌幅'])
# temp_df['今日主力净流入-净额'] = pd.to_numeric(temp_df['今日主力净流入-净额'])
# temp_df['今日主力净流入-净占比'] = pd.to_numeric(temp_df['今日主力净流入-净占比'])
# temp_df['今日超大单净流入-净额'] = pd.to_numeric(temp_df['今日超大单净流入-净额'])
# temp_df['今日超大单净流入-净占比'] = pd.to_numeric(temp_df['今日超大单净流入-净占比'])
# temp_df['今日大单净流入-净额'] = pd.to_numeric(temp_df['今日大单净流入-净额'])
# temp_df['今日大单净流入-净占比'] = pd.to_numeric(temp_df['今日大单净流入-净占比'])
# temp_df['今日中单净流入-净额'] = pd.to_numeric(temp_df['今日中单净流入-净额'])
# temp_df['今日中单净流入-净占比'] = pd.to_numeric(temp_df['今日中单净流入-净占比'])
# temp_df['今日小单净流入-净额'] = pd.to_numeric(temp_df['今日小单净流入-净额'])
# temp_df['今日小单净流入-净占比'] = pd.to_numeric(temp_df['今日小单净流入-净占比'])
elif indicator == "5日":
temp_df.columns = [
"-",
Expand Down Expand Up @@ -351,6 +362,17 @@ def stock_sector_fund_flow_rank(
"5日主力净流入最大股",
]
]
# temp_df['5日涨跌幅'] = pd.to_numeric(temp_df['5日涨跌幅'])
# temp_df['5日主力净流入-净额'] = pd.to_numeric(temp_df['5日主力净流入-净额'])
# temp_df['5日主力净流入-净占比'] = pd.to_numeric(temp_df['5日主力净流入-净占比'])
# temp_df['5日超大单净流入-净额'] = pd.to_numeric(temp_df['5日超大单净流入-净额'])
# temp_df['5日超大单净流入-净占比'] = pd.to_numeric(temp_df['5日超大单净流入-净占比'])
# temp_df['5日大单净流入-净额'] = pd.to_numeric(temp_df['5日大单净流入-净额'])
# temp_df['5日大单净流入-净占比'] = pd.to_numeric(temp_df['5日大单净流入-净占比'])
# temp_df['5日中单净流入-净额'] = pd.to_numeric(temp_df['5日中单净流入-净额'])
# temp_df['5日中单净流入-净占比'] = pd.to_numeric(temp_df['5日中单净流入-净占比'])
# temp_df['5日小单净流入-净额'] = pd.to_numeric(temp_df['5日小单净流入-净额'])
# temp_df['5日小单净流入-净占比'] = pd.to_numeric(temp_df['5日小单净流入-净占比'])
elif indicator == "10日":
temp_df.columns = [
"-",
Expand Down Expand Up @@ -390,6 +412,18 @@ def stock_sector_fund_flow_rank(
"10日主力净流入最大股",
]
]
# temp_df['10日涨跌幅'] = pd.to_numeric(temp_df['10日涨跌幅'])
# temp_df['10日主力净流入-净额'] = pd.to_numeric(temp_df['10日主力净流入-净额'])
# temp_df['10日主力净流入-净占比'] = pd.to_numeric(temp_df['10日主力净流入-净占比'])
# temp_df['10日超大单净流入-净额'] = pd.to_numeric(temp_df['10日超大单净流入-净额'])
# temp_df['10日超大单净流入-净占比'] = pd.to_numeric(temp_df['10日超大单净流入-净占比'])
# temp_df['10日大单净流入-净额'] = pd.to_numeric(temp_df['10日大单净流入-净额'])
# temp_df['10日大单净流入-净占比'] = pd.to_numeric(temp_df['10日大单净流入-净占比'])
# temp_df['10日中单净流入-净额'] = pd.to_numeric(temp_df['10日中单净流入-净额'])
# temp_df['10日中单净流入-净占比'] = pd.to_numeric(temp_df['10日中单净流入-净占比'])
# temp_df['10日小单净流入-净额'] = pd.to_numeric(temp_df['10日小单净流入-净额'])
# temp_df['10日小单净流入-净占比'] = pd.to_numeric(temp_df['10日小单净流入-净占比'])

return temp_df


Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy==1.26.4
numpy==2.1.3
pandas==2.2.3
py_mini_racer==0.6.0
TA_Lib==0.4.32
TA_Lib==0.5.0
arrow==1.3.0
bokeh==3.6.0
PyMySQL==1.1.1
Expand Down

0 comments on commit 1e3dcec

Please sign in to comment.