Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duizhang_tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data—王林芳
duizhang_tools
Commits
479d4a2b
Commit
479d4a2b
authored
Nov 17, 2017
by
Perry_Zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
白条每日赔付样式调整
parent
5621c030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
白条直投每日赔付(用实还表出).py
白条/出表/白条直投每日赔付(用实还表出).py
+2
-6
No files found.
白条/出表/白条直投每日赔付(用实还表出).py
View file @
479d4a2b
...
...
@@ -134,18 +134,14 @@ def split_repay(df_repay, df_plan, account_type):
df_hk_new
=
pd
.
merge
(
df_t
,
df_hk_new
,
how
=
'left'
,
on
=
[
'order_no'
,
'term_no'
])
df_hk_new
.
loc
[
df_hk_new
[
'hk_day'
]
.
isnull
(),
'hk_day'
]
=
df_hk_new
.
loc
[
df_hk_new
[
'hk_day'
]
.
isnull
(),
't_day'
]
df_hk_new
.
fillna
(
0
,
inplace
=
True
)
df_hk_new
=
df_hk_new
[
[
'order_no'
,
'term_no'
,
'hk_day'
,
'plan_all'
,
'zc_prin_inst_total'
,
'yq_prin_inst_total'
,
'tq_prin_inst_total'
]]
else
:
df_hk_new
=
df_plan
df_hk_new
.
rename
(
columns
=
{
'plan_day'
:
'hk_day'
},
inplace
=
True
)
df_hk_new
[
'zc_prin_inst_total'
]
=
0.0
df_hk_new
[
'yq_prin_inst_total'
]
=
0.0
df_hk_new
[
'tq_prin_inst_total'
]
=
0.0
df_hk_new
=
df_hk_new
[
[
'order_no'
,
'term_no'
,
'hk_day'
,
'plan_all'
,
'zc_prin_inst_total'
,
'yq_prin_inst_total'
,
'tq_prin_inst_total'
]]
df_hk_new
=
df_hk_new
[[
'order_no'
,
'term_no'
,
'hk_day'
,
'plan_all'
,
'zc_prin_inst_total'
,
'yq_prin_inst_total'
,
'tq_prin_inst_total'
]]
else
:
df_hk_new
=
df_plan
df_hk_new
[
'zc_prin_inst_total'
]
=
0.0
...
...
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