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
cbab55e6
Commit
cbab55e6
authored
Jun 01, 2026
by
fangxingjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
94e558b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
ods_brand_analytics.py
Pyspark_job/ods/ods_brand_analytics.py
+4
-1
No files found.
Pyspark_job/ods/ods_brand_analytics.py
View file @
cbab55e6
...
@@ -232,8 +232,11 @@ class OdsBrandAnalytics(Templates):
...
@@ -232,8 +232,11 @@ class OdsBrandAnalytics(Templates):
self
.
df_st_rank
=
self
.
df_st_rank
.
withColumn
(
self
.
df_st_rank
=
self
.
df_st_rank
.
withColumn
(
"rank_sum"
,
self
.
df_st_rank
.
rank_sum
+
self
.
df_st_rank
[
col
]
"rank_sum"
,
self
.
df_st_rank
.
rank_sum
+
self
.
df_st_rank
[
col
]
)
)
# self.df_st_rank = self.df_st_rank.withColumn(
# "rank_sum_avg", self.df_st_rank.rank_sum / len(self.date_info_tuple)
# )
self
.
df_st_rank
=
self
.
df_st_rank
.
withColumn
(
self
.
df_st_rank
=
self
.
df_st_rank
.
withColumn
(
"rank_sum_avg"
,
self
.
df_st_rank
.
rank_sum
/
len
(
self
.
date_info_tuple
)
"rank_sum_avg"
,
self
.
df_st_rank
.
rank_sum
/
len
(
date_dict
)
)
)
print
(
"1111=============="
)
print
(
"1111=============="
)
self
.
df_st_rank
.
show
(
10
,
truncate
=
False
)
self
.
df_st_rank
.
show
(
10
,
truncate
=
False
)
...
...
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