Added data and a way to load and print basic description
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.venv
|
||||
@@ -0,0 +1,26 @@
|
||||
import pandas as pd
|
||||
|
||||
data_path = "student_lifestyle_dataset.csv"
|
||||
|
||||
def main():
|
||||
df = load_data()
|
||||
inspect_data(df)
|
||||
|
||||
def load_data():
|
||||
df = pd.read_csv(data_path, encoding="ascii", delimiter=",")
|
||||
return df
|
||||
|
||||
def inspect_data(df):
|
||||
print("Info:")
|
||||
print(df.info())
|
||||
print("\n")
|
||||
|
||||
print("Head:")
|
||||
print(df.head())
|
||||
print("\n")
|
||||
|
||||
print("Description:")
|
||||
print(df.describe(include="all"))
|
||||
print("\n")
|
||||
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user