Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
Details
Activity
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
abel_cjy
Amazon-Selection-Data
Commits
67068a36
Commit
67068a36
authored
Sep 29, 2025
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流量选品-实时任务修改最小分类计算规则
parent
0f4f80be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
kafka_flow_asin_detail.py
Pyspark_job/my_kafka/kafka_flow_asin_detail.py
+1
-1
No files found.
Pyspark_job/my_kafka/kafka_flow_asin_detail.py
View file @
67068a36
...
@@ -239,7 +239,7 @@ class KafkaFlowAsinDetail(Templates):
...
@@ -239,7 +239,7 @@ class KafkaFlowAsinDetail(Templates):
cate_1_pattern
=
self
.
pattern1_dict
[
self
.
site_name
]
cate_1_pattern
=
self
.
pattern1_dict
[
self
.
site_name
]
df
=
df
.
withColumn
(
"asin_bs_sellers_rank_lower"
,
F
.
lower
(
"best_sellers_rank"
))
df
=
df
.
withColumn
(
"asin_bs_sellers_rank_lower"
,
F
.
lower
(
"best_sellers_rank"
))
df
=
df
.
withColumn
(
"asin_bs"
,
self
.
u_parse_bs_category
(
df
=
df
.
withColumn
(
"asin_bs"
,
self
.
u_parse_bs_category
(
"asin_bs_sellers_rank_lower"
,
"best_sellers_herf"
,
"all_best_sellers_herf"
,
F
.
lit
(
cate_current_pattern
),
F
.
lit
(
cate_1_pattern
)))
"asin_bs_sellers_rank_lower"
,
"best_sellers_herf"
,
"all_best_sellers_herf"
,
F
.
lit
(
cate_current_pattern
),
F
.
lit
(
cate_1_pattern
)
,
"node_id"
))
df
=
df
.
withColumn
(
"asin_bs_cate_1_id"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_1_id"
))
\
df
=
df
.
withColumn
(
"asin_bs_cate_1_id"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_1_id"
))
\
.
withColumn
(
"asin_bs_cate_current_id"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_current_id"
))
\
.
withColumn
(
"asin_bs_cate_current_id"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_current_id"
))
\
.
withColumn
(
"asin_bs_cate_1_rank"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_1_rank"
))
\
.
withColumn
(
"asin_bs_cate_1_rank"
,
df
.
asin_bs
.
getField
(
"asin_bs_cate_1_rank"
))
\
...
...
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