Question: show python codes for 4 . 1 to 4 . 7 Consider the data provided in the streaming tutorial ( namely users.csv ) alongside orders
show python codes for to
Consider the data provided in the streaming tutorial namely users.csv alongside orders data namely orders.csv Combine these input files in order to provide insights into the purchasing behaviours of the retailers customers.
Join the input files as streams using CoGroupByKey.
Perform a transformation that determines the average number of orders for female and male customers, respectively. Output the result as text in the notebook.
Verify the result of Question using Python Pandas.
Duplicate the code of previous question in a new cell and split your pipe to produceemit the total number or orders processed as an additional text output ie output the number of orders processed as well the average orders for female and male customers
Generate a graph using the Beam library of your pipeline.
Determine the total number of orders placed by male and female customers in the age groups
Modify the pipelinedirectedacyclicgraph DAG of Question to display the total number of yams purchased across the genders within the age groups.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
