Created
August 3, 2018 20:09
-
-
Save ImadDabbura/9072115c85ac7b65e005e73b1af2ec0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added load_employee_data.py