Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
FactorCalculate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李煜
FactorCalculate
Commits
c886f704
Commit
c886f704
authored
Jul 17, 2019
by
李煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify all_factor_cal
parent
8de03115
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
all_factor_cal.py
client/all_factor_cal.py
+3
-3
No files found.
client/all_factor_cal.py
View file @
c886f704
...
...
@@ -531,7 +531,7 @@ def cash_flow_calculate(trade_date):
def
constrain_calculate
(
trade_date
):
# c
ash flow
# c
onstrain
balance_sets
,
ttm_factors_sets
=
get_basic_constrain
(
trade_date
)
if
len
(
balance_sets
)
<=
0
or
len
(
ttm_factors_sets
)
<=
0
:
print
(
"
%
s has no data"
%
trade_date
)
...
...
@@ -548,7 +548,7 @@ def constrain_calculate(trade_date):
def
growth_calculate
(
trade_date
):
#
cash flow
#
growth
ttm_factor_sets
,
balance_sets
=
get_basic_growth_data
(
trade_date
)
growth_sets
=
pd
.
merge
(
ttm_factor_sets
,
balance_sets
,
on
=
'symbol'
)
if
len
(
growth_sets
)
<=
0
:
...
...
@@ -564,7 +564,7 @@ def growth_calculate(trade_date):
def
earning_calculate
(
trade_date
):
#
cash flow
#
earring
tp_earning
,
ttm_earning_5y
,
ttm_earning
=
get_basic_earning
(
trade_date
)
if
len
(
tp_earning
)
<=
0
or
len
(
ttm_earning_5y
)
<=
0
or
len
(
ttm_earning
)
<=
0
:
print
(
"
%
s has no data"
%
trade_date
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment