Phân tích khám phá ban đầu

Phân tích chiến dịch Marketing với pandas

Jill Rosok

Data Scientist

Có bao nhiêu người dùng xem nội dung marketing?

# Aggregate unique users that see ads by date
daily_users = marketing.groupby(['date_served'])\
                                ['user_id'].nunique()         
print(daily_users)
date_served
2018-01-01    362
2018-01-02    374
2018-01-03    348
...
Name: user_id, dtype: int64
Phân tích chiến dịch Marketing với pandas

Trực quan hóa kết quả

import matplotlib.pyplot as plt

# Plot
daily_users.plot()

# Annotate
plt.title('Số người dùng xem quảng cáo theo ngày')
plt.xlabel('Ngày')
plt.ylabel('Số người dùng')
plt.xticks(rotation = 45)
plt.show()
Phân tích chiến dịch Marketing với pandas

Biểu đồ người dùng theo ngày

Phân tích chiến dịch Marketing với pandas

Hãy thực hành!

Phân tích chiến dịch Marketing với pandas

Preparing Video For Download...