1/21
Looks like no tags are added yet.
Nominal
Non-numeric data
Ordinal
Non-numeric or numeric data that is a ranking (cannot do math on it)
Interval and two types
Numeric data but can do math on it
Float and Integer
Counts how many missing values exist
df.isna()
Fills in missing values
df.fillna()
Find unique values and frequency
df.column_name.valuecounts()
Drops rows with missing values
dr.dropna()
Find every type of unique entry
value_counts()
Miscoded values
Typing errors or format inconsistences
Ex. NC, North Carolina, Nor Car, Nc
Indirect (Quasi) Identifiers
Information that can inadvertently identify
Masking vs Hashing
Masking - Hides certain information (****)
Hashing - Runs an identifier ex. name and scrambles
Good Graph
Be free of visual clutter
Maximize data to ink ratio
Well labeled with legible fonts
Light colored backgrounds
use color but make sure interpretable in black and white
Title, Axis, Color, Scale
If single categorical data use?
Bar chart or Pie Chart
If single numeric data use?
Box Plot or Histogram
How do you find which variables seem to have the relatively strong relationships?
Look for most Linear relationship
Categorical vs. Numeric
Comparative Box plot or Histogram
Numeric vs Numeric
Scatterplots
Mode
Most frequently occurring variable and tallest bar on a bar chart
5 Number Summary
Min , Q1, Q2 (Median) - 50% tile, Q3, Max
IQR
Interquartile Range
Q3-Q1
What is best measure of center if symmetric?
Mean - average of numbers, add it them all up and divide by how many numbers there are
What is the best measure of center is skewed?
Median - Middle number in the data set