加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做3DA3 C02、Java/python編程代寫
代做3DA3 C02、Java/python編程代寫

時間:2024-10-21  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Assignment 1, Commerce 3DA3 C02 - Predictive Data Analytics
To complete this assignment, please create a Jupyter notebook. The code in your jupyter notebook should provide answers to questions asked in the assignment. Please submit the assignment by uploading the file(s) into the "Assignment 1" folder on Avenue to Learn. You can find this folder under "Assessments>Assignments" on the course page. The deadline for submission is 11:59PM on Monday Oct. 21.
Background
In the past decade, we witnessed the rise of online grocery shopping. With the convenience of ordering groceries from the comfort of home, more people are turning to digital platforms for their everyday needs. This shift has been further fueled by factors such as busy lifestyles, the increasing use of mobile devices, and the covid-19 pandemic, which underscored the importance of contactless shopping.
For online grocery platforms, conducting data analysis on sales records is critical for understanding customer behavior, enhancing the overall shopping experience, and make data-driven decisions that lead to higher customer satisfaction and profitability.
Data: We will make use of two datasets from the transaction records of an online grocery delivery platform, stored in the files orders.csv (click to download) and order_products.csv (click to download).
The dataset in orders.csv includes the following columns:
order_id: This is the unique identifier of every customer order
customer_id: This is the unique identifier of every customer who placed the order order_dow: This indicates the day of the week, on which the order took place. 0 stands for Sunday, **5 indiates Monday-Friday, and 6 indicates a Saturday. order_hour_of_day: This indicates during which hour the order took place; for example, 14 indicates that the order was placed between 14:00 and 14:59. days_since_prior_order: This indicates how many days have passed since the customer's last order
coupon_use: This shows if the customer used a coupon to (partially) pay for the order
The dataset in order_products.csv records which products are purchased in an order. It

 includes the following columns:
order_id: This is the order idenfitier (same as in order.csv).
product_id: This is the identifier of a product that is purchased in the corresponding order.
quantity: This is the quantity of the product purchased in the corresponding order. unit_price: This is the unit price (in dollars) of the product purchased in the corresponding order.
customer_id: This is the identifier of the customer who purchased the product.
Please note that order_id in order_products.csv does not need to be unique. If two rows in order_products.csv share the same order_id, it means that in the same order, the products in those two rows are both purchased.
For example, suppose that the following row exists in order.csv:
order_id customer_id order_dow order_hour_of_day days_since_prior_order coupon_u
O1234 C6217 2 10 11 yes and the following two rows exist in order_products.csv:
         order_id
O1234
O1234
product_id quantity
P0217 1
P0219 2
unit price customer_id
9.99 C6217
19.99 C6217
         then we know that in the same order (order_id O1234), 1 unit of product P0217 and 2 units of product P0219 are purchased. And this order O1234 is the same order as the order O1234 in order.csv.
Imagine that you are a data analyst at the grocery delivery platform. Based on the datasets, please answer the following questions/tasks.
Questions 0.
In the first cell of your Jupyter notebook, please create the following as markdown. Add your first and last name, and your Student ID.
se

  Important: For the remaining questions, please make sure to create a markdown cell before you answer each question and in it indicate the question number, e.g., Question 1, Question 2, etc.
For each question, you should use one or more code cells to present your codes. Please make sure that you run each cell and display all the requested results. Please also ensure that you will use markdown cells to provide necessary explanations of your codes and results.
The Jupyter notebook should be a easy-to-read report that presents your analysis and results. The grading will be based on both the correctness of your coding and the readability of your notebook.
Question 1.
Import the two .csv files and assign them to a dataframe called df_orders and df_order_products , respectively. Then,
use a line of codes to review the first few rows of the dataframes. The result should be clearly displayed in the notebook after you run the code cells.
get the structures of the dataframes (number of rows, column types, etc.) using the
info() function. Review the first few rows of the dataframe.
In a markdown cell,explain the results returned by this function as comprehensive as you
can..
Question 2.
For the DataFrame df_orders loaded from orders.csv, perform the following steps in the given order.
1. Find how many missing value each column contains.
2. For any missing value in the column   , replace it with 'unknown_order'
3. For any missing value in the column   , replace it with
     'unknown_customer'
order_id
customer_id

 4. For any missing value in the column   , replace it with the mean value of the column
5. After completing the above steps, repeat the codes in Step 1 to check again the number of missing values in each column
6. For any remaining missing values, drop all rows containing a missing value
Question 3.
The grocery delivery platform is interested in assessing if offering coupons will increase customers' purchase frequency. To that end, let us again make use of the DataFrame
df_orders (loaded from orders.csv) to perform the following tasks.
1. Select all rows in df_orders where use of a coupon is yes , and assign those rows as a new DataFrame named df_orders_coupon .
2. Calculate the mean value of 'days_since_prior_order' in df_orders_coupon .
3. Select all rows in where use of a coupon is no , and assign those rows
as a new DataFrame named .
4. Calculate the mean value of 'days_since_prior_order' in df_orders_no_coupon .
Based on your findings of the above steps, answer the following question in a markdown cell:
Is the use of coupon associated with higher/lower order frequency? Please briefly explain your answer in the markdown cell.
Questions 4.
The platform is also interested in measuring the total number of orders received on each day of the week. To do this, they would like you to complete the following tasks.
Divide the order id's in the 'order_id' column of the DataFrame df_orders (loaded from orders.csv) into groups, based on the day of the week ('order_dow') when the order is placed. The result should be a Groupby object.
Construct and display the content of a pandas Series, which should show the total number of orders for each day of the week.
Question 5.
As observed, each row of the data in order_products.csv is the sales information of a product in a certain order. The information includes the per-unit price and number of units ordered, but it does not directly provide the revenue.
     df_orders
 df_orders_no_coupon
   days_since_prior_order

 Let us now create a new column named 'revenue' in the DataFrame df_order_products constructed from order_products.csv. For each row, the
column should contain the corresponding revenue, calcuated as 'quantity'×'unit price'. See the following two-row example for a demonstration.
order_id product_id quantity unit_price customer_id revenue
O1234 P0217 1 9.99 C6217 9.99
O1234 P0219 2 19.99 C621**9.98
After you have added the new column, further complete the following tasks:
Display the first few rows of the updated df_order_products DataFrame. Calculate the total revenue by summing up revenues in each row.
Question 6
From time to time, there will be customers who would like to review their purchase record. To do that, they will need to supply their customer id.
Suppose a customer with the id '0421MWMT' just contacted Customer Service and would like to see all their purchases. Perform the following tasks for the customer.
Select all rows related to this customer's purchases in the DataFrame df_order_products (loaded from order_products.csv), and assign them to a
new DataFrame named 'df_cust_inquiry'. Display the content of this DataFrame. Calculate the customer's total purchase in dollar amount.
              
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:INT 404代做、代寫Matlab程序設計
  • 下一篇:代寫CS 551、代做C/C++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    亚洲国产精品91| 日韩福利电影在线| 三区四区不卡| 久久精品国产99久久| 最新亚洲国产| 日韩在线视屏| 一区视频在线| 国产丝袜一区| 国产精品一站二站| 久久伊人国产| 综合日韩av| 中文日韩欧美| 欧美日中文字幕| 57pao国产一区二区| 在线成人超碰| 亚洲国产99| 中文字幕这里只有精品| 亚洲精品中文字幕乱码| 九色丨蝌蚪丨成人| 日本在线视频一区二区三区| 欧美日韩亚洲一区三区| 精品视频在线一区二区在线| 日本久久一二三四| 黄色在线成人| 欧美日韩国产在线观看网站| 成人免费在线电影网| 偷窥自拍亚洲色图精选| 亚洲一区有码| 麻豆极品一区二区三区| 色狠狠一区二区三区| 日韩理论片av| 国产高潮在线| 蜜臀av一区二区在线免费观看 | 超碰在线亚洲| 国产一区不卡| 国产日韩欧美一区二区三区| 亚洲情侣在线| 亚洲五月综合| 日韩国产欧美在线观看| 精品自拍视频| 成人国产一区二区三区精品麻豆| 日韩久久综合| 另类中文字幕国产精品| 怡红院成人在线 | 视频精品国内| 天堂精品在线视频| 一区二区精彩视频| 91蜜桃臀久久一区二区| 中文久久电影小说| 亚洲日本va中文字幕| 99ri日韩精品视频| 欧美日韩网址| 国产精品nxnn| 中日韩免视频上线全都免费| 中文字幕中文字幕精品| 91精品国产自产在线观看永久∴ | 亚洲制服一区| 国精一区二区| 国产一区二区三区探花| 亚洲涩涩av| 1204国产成人精品视频| 99久久香蕉| 日韩精品看片| 天天久久综合| 午夜一级久久| 极品在线视频| 亚洲18在线| 日本怡春院一区二区| 欧美精品播放| 日韩精品一区国产| 999在线精品| 久久精品av| 国产视频一区三区| 精品国产免费人成网站| 日韩专区视频| 亚洲欧美综合久久久| 亚洲影院天堂中文av色| 国产一区丝袜| 国产在线日韩| 蜜臀av在线播放一区二区三区| 高清不卡亚洲| 日韩国产欧美在线播放| 欧美视频二区欧美影视| 99re热精品视频| 九九在线精品| 国产精品伦理久久久久久| 欧美日韩女优| 中文字幕日韩亚洲| 国产成人一二片| 亚洲激情国产| 手机看片久久| 国产精品1区在线| 都市激情久久| 亚洲中字在线| 色狠狠一区二区三区| 欧美另类中文字幕| 色天天色综合| 免费观看在线综合色| 欧美一区免费| 日韩美脚连裤袜丝袜在线| 久久久久久久久国产一区| 午夜亚洲一区| 欧美在线不卡| 精品国产三区在线| 亚洲精品一二三区区别| 蜜桃av在线播放| 精品一区二区三区中文字幕在线 | 日韩精品三级| 狠色狠色综合久久| 日韩欧美精品一区二区综合视频| 粉嫩一区二区三区在线观看| 久久久一二三| 日韩欧美精品一区| 国产日产精品一区二区三区四区的观看方式 | 一区在线播放| 亚洲精品第一| 麻豆一二三区精品蜜桃| 亚洲在线视频| 亚洲毛片一区| 尤物tv在线精品| 欧美二三四区| 日本伊人久久| 爽爽淫人综合网网站| 老鸭窝一区二区久久精品| 精品视频日韩| 91综合视频| 久久不见久久见免费视频7| 亚洲精品2区| 久久精品97| 美女av一区| 精品三级久久| 超碰在线一区| 黄在线观看免费网站ktv| 亚洲v天堂v手机在线| 国产精品日韩久久久| 麻豆成人综合网| 欧美日韩在线二区| 久久国内精品视频| 久久九九精品| 国产69精品久久| 激情小说亚洲图片| 另类中文字幕国产精品| av日韩在线播放| 天堂中文在线播放| 精品国产乱码久久久久久樱花| 日韩专区在线视频| 国产精品探花在线观看| 麻豆成人精品| 欧美午夜网站| 国产精品久久久久久久| 日韩欧美美女在线观看| 日韩成人免费| 日本一区精品视频| 色资源二区在线视频| 丁香五月缴情综合网| 四虎成人精品一区二区免费网站| 国产精品巨作av| 日本午夜免费一区二区| 欧美日韩伦理| 一区二区三区国产精华| 亚洲视频播放| 日韩av网站免费在线| 不卡av播放| 91精品一区二区三区综合| 欧美一区成人| 国产精品免费看| 久久一级大片| 国产乱子精品一区二区在线观看| 激情五月***国产精品| 亚洲一区二区三区久久久| 国产精品毛片一区二区在线看| 综合激情五月婷婷| 日韩一级特黄| 国产午夜精品一区二区三区欧美 | 超碰精品在线观看| 美腿丝袜亚洲三区| 国产亚洲福利| 亚洲精品观看| 国产精品久久国产愉拍| 亚洲一区国产| 成人午夜大片| 亚洲国产一区二区精品专区| 亚洲欧美网站| 日本不卡高清| 亚洲精品麻豆| 天堂а√在线最新版中文在线| 91精品一区国产高清在线gif| 久久影视三级福利片| 成人福利视频| 91精品99| 成人自拍在线| av在线播放一区二区| 91看片一区| 欧美日韩免费观看一区=区三区| 精品国产一区二| 久久一区国产| 国模套图日韩精品一区二区| 国产一区二区中文| 亚洲午夜久久| 国色天香一区二区|