20 lines
452 B
Python
20 lines
452 B
Python
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)
|