Home > Back-end >  Unclear terms about Data visualization
Unclear terms about Data visualization

Time:11-16

I have a CSV file about customers' data, I converted it into JSON Dict type you can a single unreal person's data below.

{
"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"
}

I want to visualize data with seaborn and my tasks are right below there:

  1. Perform univariate plots of the following data attributes: a) Age, calculating how many bins would be required for a bin_width of 5

  2. Perform multivariate plots with the following data attributes

Could you explain the "univariate plots", "multivariate plots" and lastly "how many bins would be required for a bin_width of 5" terms for me?

I am confused about these terms. Thank you

CodePudding user response:

sns.histplot with binwidth=5

With 2 variables ("bivariate"), you could e.g. create 2D kdeplot. Or a scatterplot. More variables can be represented either by sns.scatterplot and sns.kdeplot in 2D

  • Related