Skip to content

Instantly share code, notes, and snippets.

@ImadDabbura
Created August 3, 2018 20:09
Show Gist options
  • Save ImadDabbura/9072115c85ac7b65e005e73b1af2ec0d to your computer and use it in GitHub Desktop.
Save ImadDabbura/9072115c85ac7b65e005e73b1af2ec0d to your computer and use it in GitHub Desktop.
# Load the data
df = pd.read_csv(“data/HR_comma_sep.csv”)
# Check both the datatypes and if there is missing values
print(“\033[1m” + “\033[94m” + “Data types:\n” + 11 * “-”)
print(“\033[30m” + “{}\n”.format(df.dtypes))
print(“\033[1m” + “\033[94m” + “Sum of null values in each column:\n” + 35 * “-”)
print(“\033[30m” + “{}”.format(df.isnull().sum()))
df.head()
@ImadDabbura
Copy link
Author

Added load_employee_data.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment