【发布时间】:2021-11-15 11:06:53
【问题描述】:
我有一个关于客户数据的 CSV 文件,我将其转换为 JSON Dict 类型,您可以在下面输入单个虚幻人的数据。
{
"First Name": "Jonathan",
"Last Name": "Thomas",
"Marital Status": "married or civil partner",
"Sex": "Male",
"Age (Years)": 46,
"Retired": true,
"Distance Commuted to Work (miles)": 13.72,
"Employer Company": "Begum-Williams",
"Dependants": 1,
"Yearly Salary (\u00c2\u00a3)": 54016,
"Yearly Pension (\u00c2\u00a3)": 0,
"Address Street": {
"Address Street": "00 Wheeler wells",
"Address City": "Chapmanton",
"Address Postcode": "L2 7BT"
},
"Credit Card Number": {
"Credit Card Number": "4529436854129855",
"Credit Card Start Date": "08/12",
"Credit Card Expiry Date": "11/26",
"Credit Card CVV": 583,
"Bank IBAN": "GB37UMCO54540228728019"
},
"Vehicle Make": {
"Vehicle Make": "Nissan",
"Vehicle Model": "ATS",
"Vehicle Year": 1996,
"Vehicle Type": "Coupe"
}
我想用 seaborn 可视化数据,我的任务就在下面:
-
执行以下数据属性的单变量图: a) 年龄,计算 bin_width 为 5 需要多少个 bin
-
使用以下数据属性执行多元绘图
您能否为我解释一下“单变量图”、“多变量图”以及最后“bin_width 为 5 需要多少个 bin”术语?
我对这些术语感到困惑。谢谢
【问题讨论】:
标签: python json csv seaborn data-visualization