当前位置: 首页 > news >正文

wordpress 文章同步微信网站seo报告

wordpress 文章同步微信,网站seo报告,wordpress ping通告,网站代理加盟🤵‍♂️ 个人主页:艾派森的个人主页 ✍🏻作者简介:Python学习者 🐋 希望大家多多支持,我们一起进步!😄 如果文章对你有帮助的话, 欢迎评论 💬点赞&#x1f4…

 

🤵‍♂️ 个人主页:@艾派森的个人主页

✍🏻作者简介:Python学习者
🐋 希望大家多多支持,我们一起进步!😄
如果文章对你有帮助的话,
欢迎评论 💬点赞👍🏻 收藏 📂加关注+


目录

1.项目背景

2.数据集介绍

3.技术工具

4.导入数据

5.数据可视化

源代码


1.项目背景

        在电子商务蓬勃发展的今天,欺诈性交易已成为一个不容忽视的问题。随着消费者对于在线购物的依赖程度不断加深,电子商务市场的规模持续扩大,但与此同时,欺诈行为也日益猖獗。这些欺诈行为不仅损害了消费者的权益,降低了他们对电子商务的信任度,还严重干扰了商家的正常经营秩序,对整个电子商务生态系统造成了巨大的冲击。

        电子商务欺诈行为的多样性和隐蔽性给防范和打击带来了极大的挑战。欺诈者可能采用各种手段,如伪造身份、发布虚假商品信息、恶意刷单、虚假评价等,以达成非法获利的目的。这些欺诈行为往往隐藏在庞大的交易数据中,难以被直接识别和发现,因此,需要借助先进的数据分析技术来揭示其中的规律和特点。

        数据驱动的欺诈防范策略在电子商务领域变得尤为重要。随着大数据和人工智能技术的快速发展,对大量的电子商务交易数据进行深入分析和挖掘成为可能。通过构建欺诈性电子商务交易数据集,并利用可视化分析技术将数据以直观、易懂的方式呈现出来,可以帮助分析人员快速理解数据中的信息,发现潜在的欺诈风险,并据此制定针对性的防范和应对策略。

        可视化分析在欺诈防范中发挥着至关重要的作用。它可以将复杂的数据转化为图表、图像等易于理解的视觉形式,帮助分析人员迅速捕捉数据中的关键信息和异常模式。通过对欺诈性电子商务交易数据集的可视化分析,我们可以更深入地了解欺诈行为的特点和规律,发现欺诈行为的潜在趋势和关联性,为制定更加有效的防范措施提供科学依据。

        因此,研究欺诈性电子商务交易数据集的可视化分析具有重要的理论意义和实践价值。它不仅有助于我们深入理解欺诈行为的本质和规律,还有助于提升电子商务市场的安全性和可信度,保护消费者和商家的合法权益,促进电子商务的健康发展。

2.数据集介绍

        本实验数据集来源于Kaggle,原始数据集分为训练集和测试集,其中训练集共有1472952条数据,16个变量。各变量含义解释如下:

Transaction ID:每个事务的唯一标识符。

Customer ID:每个客户的唯一标识符。

Transaction Amount:交易中交易的总金额。

Transaction Date:交易发生的日期和时间。

Payment Method:用于完成交易的方式(如信用卡、PayPal等)。

Product Category:交易中涉及的产品类别。

Quantity:交易中涉及的产品数量。

Customer Age:进行交易的客户的年龄。

Transaction Date:客户的地理位置。

Device Used:用于进行交易的设备类型(例如,移动设备、桌面设备)。

IP Address:用于交易的设备的IP地址。

Shipping Address:产品发货的地址。

Billing Address :与付款方式相关联的地址。

Is Fraudulent:表示事务是否欺诈性的二进制指示器(1表示欺诈性,0表示合法)。

Account Age Days:客户账户在交易时的存续天数。

Transaction Hour:交易发生的当天的时间。

3.技术工具

Python版本:3.9

代码编辑器:jupyter notebook

4.导入数据

导入数据分析第三方库

导入数据集

查看数据集大小

查看数据基本信息

查看数值型变量的描述性统计

我们可以看到客户年龄最小值是-16,这是不可能的,所以我们必须修复客户年龄列。

查看非数值型变量的描述性统计

统计数据缺失值情况

可以发现数据集中并不存在缺失值 

统计重复值情况

可以发现数据集中并不存在重复值

使用箱线图查看客户年龄分布

定义一个数据预处理函数,并处理我们的数据集

再次查看数据基本信息

数据集已被清理和压缩,其大小从180 MB减少到57MB。

5.数据可视化

交易金额普遍分布在0到1000之间且数据是右偏的。

 

源代码

Transaction ID:每个事务的唯一标识符。
Customer ID:每个客户的唯一标识符。
Transaction Amount:交易中交易的总金额。
Transaction Date:交易发生的日期和时间。
Payment Method:用于完成交易的方式(如信用卡、PayPal等)。
Product Category:交易中涉及的产品类别。
Quantity:交易中涉及的产品数量。
Customer Age:进行交易的客户的年龄。
Transaction Date:客户的地理位置。
Device Used:用于进行交易的设备类型(例如,移动设备、桌面设备)。
IP Address:用于交易的设备的IP地址。
Shipping Address:产品发货的地址。
Billing Address	:与付款方式相关联的地址。
Is Fraudulent:表示事务是否欺诈性的二进制指示器(1表示欺诈性,0表示合法)。
Account Age Days:客户账户在交易时的存续天数。
Transaction Hour:交易发生的当天的时间。
import numpy as np 
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.express as px
import time
import warnings
warnings.filterwarnings('ignore')train_df = pd.read_csv('Fraudulent_E-Commerce_Transaction_Data.csv')
train_df.head()
train_df.shape
train_df.info()
train_df.describe()
我们可以看到客户年龄最小值是-16,这是不可能的,所以我们必须修复客户年龄列
train_df.describe(include='O')
train_df.isnull().sum()
train_df.duplicated().sum()
px.box(data_frame=train_df,x="Customer Age",width=500,height=300)
def clean_data(df) -> pd.DataFrame: ##我们需要将**Transaction Date**列从对象类型转换为日期时间格式。df["Transaction Date"] = pd.to_datetime(df["Transaction Date"])## 从交易日期提取日、周、月df['Transaction Day'] = df["Transaction Date"].dt.daydf["Transaction DOW"] = df["Transaction Date"].dt.day_of_weekdf["Transaction Month"] = df["Transaction Date"].dt.month## 修复客户年龄mean_value = np.round(df['Customer Age'].mean(),0) df['Customer Age'] = np.where(df['Customer Age'] <= -9, np.abs(df['Customer Age']), df['Customer Age'])df['Customer Age'] = np.where(df['Customer Age'] < 9, mean_value, df['Customer Age'])## 如果“Shipping Address”与“Billing Address”相同,则取值为1,否则取值为0。df["Is Address Match"] = (df["Shipping Address"] == df["Billing Address"]).astype(int)### 删除不相关的特征并向下转换数据类型以减小数据集大小df.drop(columns=["Transaction ID", "Customer ID", "Customer Location","IP Address", "Transaction Date","Shipping Address","Billing Address"], inplace=True)int_col = df.select_dtypes(include="int").columnsfloat_col = df.select_dtypes(include="float").columnsdf[int_col] = df[int_col].apply(pd.to_numeric, downcast='integer')df[float_col] = df[float_col].apply(pd.to_numeric, downcast='float')return dftrain_df = clean_data(train_df)
train_df.head()
train_df.info()
数据集已被清理和压缩,其大小从180 MB减少到57MB。
plt.figure(figsize=(10,4))
sns.histplot(train_df["Transaction Amount"],bins=200)
plt.show()
交易金额普遍分布在0到1000之间
数据是右偏的。
payment_count = train_df["Payment Method"].value_counts()
plt.figure(figsize=(15,4))
plt.subplot(1,2,1)
sns.set_palette('pastel')
colors = sns.color_palette()
plt.pie(payment_count,labels = payment_count.index,shadow=True,autopct='%1.1f%%',colors=colors,wedgeprops=dict(width=0.8,edgecolor="w"))
plt.title("Payment Method")
plt.subplot(1,2,2)
sns.countplot(data=train_df,x="Payment Method",edgecolor="black",linewidth=1, palette="Set2")
plt.show()
我们可以看到所有的付款方式都是平均分配的
category_count = train_df["Product Category"].value_counts()
plt.figure(figsize=(15,4))
plt.subplot(1,2,1)
sns.set_palette('pastel')
colors = sns.color_palette()
plt.pie(category_count,labels = category_count.index,shadow=True,autopct='%1.1f%%',colors=colors,wedgeprops=dict(width=0.8,edgecolor="w"))
plt.title("Product Category")plt.subplot(1,2,2)
ax = sns.countplot(data=train_df,x="Product Category",edgecolor="black",linewidth=1, palette="Set2")
我们可以看到,所有的产品类别也是均匀分布的
quantity_count = train_df["Quantity"].value_counts()
plt.figure(figsize=(15,4))
plt.subplot(1,2,1)
sns.set_palette('pastel')
colors = sns.color_palette()
plt.pie(quantity_count,labels = quantity_count.index,shadow=True,autopct='%1.1f%%',colors=colors,wedgeprops=dict(width=0.8,edgecolor="w"))
plt.title("Quantity")
plt.subplot(1,2,2)
ax = sns.countplot(data=train_df,x="Quantity",edgecolor="black",linewidth=1, palette="Set2")
plt.figure(figsize=(7,4))
sns.histplot(data=train_df, x="Customer Age",bins=150,kde=True,color='orange')
plt.show()
device_count = train_df["Device Used"].value_counts()
plt.figure(figsize=(15,4))
plt.subplot(1,2,1)
sns.set_palette('pastel')
colors = sns.color_palette()
plt.pie(device_count,labels = device_count.index,shadow=True,autopct='%1.1f%%',colors=colors,wedgeprops=dict(width=0.8,edgecolor="w"))
plt.title("Device Used")
plt.subplot(1,2,2)
ax = sns.countplot(data=train_df,x="Device Used",edgecolor="black",linewidth=1, palette="Set2")
hour_count = train_df["Transaction Hour"].value_counts().head(15)
plt.figure(figsize=(10,4))
sns.set_palette('Set2')
colors = sns.color_palette()
ax=sns.barplot(x=hour_count.index, y=hour_count.values,palette=colors)
plt.xticks(rotation=80)
plt.show()
plt.figure(figsize=(5,3))
sns.violinplot(data=train_df, x='Is Fraudulent', y='Transaction Amount')
plt.show()
column = ['Payment Method', 'Product Category', 'Quantity', 'Device Used','Transaction DOW', 'Transaction Month','Is Address Match']
plt.figure(figsize=(10,35))
plot_num = 1
for col in column:plt.subplot(10,2,plot_num)sns.countplot(data=train_df, x=col, hue="Is Fraudulent")plt.xticks(rotation=90)plt.title(col)plt.tight_layout()plot_num += 1
plt.figure(figsize=(10,6))
plt.subplot(1,2,1)
sns.boxenplot(x='Is Fraudulent', y='Transaction Amount', data=train_df)
plt.subplot(1,2,2)
sns.boxenplot(x='Is Fraudulent', y='Transaction Day', data=train_df)
plt.yticks(np.arange(0,32))
plt.show()

资料获取,更多粉丝福利,关注下方公众号获取

在这里插入图片描述


文章转载自:
http://fluidic.jqLx.cn
http://person.jqLx.cn
http://mousetrap.jqLx.cn
http://serapis.jqLx.cn
http://kailyard.jqLx.cn
http://subscribe.jqLx.cn
http://deferrable.jqLx.cn
http://circumforaneous.jqLx.cn
http://consultant.jqLx.cn
http://niigata.jqLx.cn
http://breakup.jqLx.cn
http://woopie.jqLx.cn
http://emancipator.jqLx.cn
http://nee.jqLx.cn
http://thorite.jqLx.cn
http://prowl.jqLx.cn
http://homochronous.jqLx.cn
http://nevada.jqLx.cn
http://vitrifacture.jqLx.cn
http://ibidem.jqLx.cn
http://roumania.jqLx.cn
http://glow.jqLx.cn
http://muster.jqLx.cn
http://iguana.jqLx.cn
http://wallow.jqLx.cn
http://sourball.jqLx.cn
http://abecedarium.jqLx.cn
http://hearsay.jqLx.cn
http://prefigurative.jqLx.cn
http://mootah.jqLx.cn
http://telegraphic.jqLx.cn
http://henroost.jqLx.cn
http://spectroscopic.jqLx.cn
http://focalization.jqLx.cn
http://peplum.jqLx.cn
http://globetrotter.jqLx.cn
http://insaneness.jqLx.cn
http://afflated.jqLx.cn
http://cariostatic.jqLx.cn
http://ichthyophagy.jqLx.cn
http://mens.jqLx.cn
http://telautograph.jqLx.cn
http://popeyed.jqLx.cn
http://mosque.jqLx.cn
http://abmigration.jqLx.cn
http://eslisor.jqLx.cn
http://undetermined.jqLx.cn
http://trackway.jqLx.cn
http://unblemished.jqLx.cn
http://australopithecine.jqLx.cn
http://piggish.jqLx.cn
http://erythrosin.jqLx.cn
http://grenoble.jqLx.cn
http://supersystem.jqLx.cn
http://aneurismal.jqLx.cn
http://princekin.jqLx.cn
http://daa.jqLx.cn
http://aperiodic.jqLx.cn
http://aurelia.jqLx.cn
http://embraceor.jqLx.cn
http://protomorphic.jqLx.cn
http://sonography.jqLx.cn
http://tagraggery.jqLx.cn
http://retinued.jqLx.cn
http://trepang.jqLx.cn
http://subvitreous.jqLx.cn
http://alabaman.jqLx.cn
http://nucleolate.jqLx.cn
http://foreseeable.jqLx.cn
http://rowton.jqLx.cn
http://magnetochemistry.jqLx.cn
http://female.jqLx.cn
http://augmentative.jqLx.cn
http://boldface.jqLx.cn
http://sedentarily.jqLx.cn
http://rheda.jqLx.cn
http://bvm.jqLx.cn
http://noah.jqLx.cn
http://scantiness.jqLx.cn
http://uncomplimentary.jqLx.cn
http://heck.jqLx.cn
http://electronical.jqLx.cn
http://roentgenometry.jqLx.cn
http://mutagenic.jqLx.cn
http://practiced.jqLx.cn
http://tonoplast.jqLx.cn
http://ladyfinger.jqLx.cn
http://trendline.jqLx.cn
http://perplex.jqLx.cn
http://somatopleure.jqLx.cn
http://unspeak.jqLx.cn
http://specialisation.jqLx.cn
http://inexorable.jqLx.cn
http://oak.jqLx.cn
http://macrocell.jqLx.cn
http://clearer.jqLx.cn
http://chaulmoogra.jqLx.cn
http://cechy.jqLx.cn
http://boswellize.jqLx.cn
http://overbearing.jqLx.cn
http://www.hrbkazy.com/news/84010.html

相关文章:

  • vvic一起做网站网建公司
  • 佛山做网站有哪几家深圳知名seo公司
  • html5建设的网站seo手机搜索快速排名
  • 企业网站建设的意义广州企业推广
  • 做网站 需要了解什么网站打开速度优化
  • 做a视频 免费网站怎么进行网络推广
  • 做网站用模版引流黑科技app
  • 微信公众平台可以导入wordpressseo查询工具
  • 做网站建设需要什么资质爱站工具
  • 湖北做网站的seo公司服务
  • javaweb做视频网站原理网站营销方案
  • 电视台网站建设方案.doc国内专业seo公司
  • 唐山网站建设模板广州seo推广优化
  • 厦门哪些做鲜花的网站个人免费建站软件
  • 网站开发工程师发展趋势运营培训班学费大概多少
  • .net如何做网站安卓优化大师
  • 专门做母婴的网站有哪些宣传平台有哪些
  • 购物网站建设需要什么资质地推平台去哪里找
  • 网站右下角弹窗代码怎么营销推广
  • 国外建站工具一个新手如何推销产品
  • wordpress最近评论seo推广费用需要多少
  • 北京网站建设网络公司北京营销推广网站建设
  • 技能培训中心网站建设外贸推广具体是做什么
  • 中小型企业网站建设网站优化的方式有哪些
  • 做简易网站聊城优化seo
  • 张家港市人民政府关于网站建设什么推广软件效果好
  • 国外做logo的网站青岛seo关键词优化排名
  • 简单网站开发实例汇总补习班
  • 一个网站的建设要经过哪几个阶段百度浏览器在线打开
  • 邢台做外贸网站高级seo课程