This commit is contained in:
2024-09-30 19:27:17 +02:00
parent 9a1615c1ea
commit 1c3f79605b
6 changed files with 58653 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
import pandas as pd
def summarize_csv(file_path: str):
# Step 1: Load the CSV file using pandas
df = pd.read_csv(file_path, delimiter=';')
# Step 2: Print general information about the data
print("Data Info:")
print(df.info())
# Step 3: Print statistical summary of the numerical columns
print("\nStatistical Summary:")
print(df.describe())
# Usage
input_csv_file = 'AmesHousing.csv'
summarize_csv(input_csv_file)