ium_464914/get_stats.py
2024-04-02 22:40:34 +02:00

19 lines
676 B
Python

import pandas as pd
meteorite_train = pd.read_csv('meteorite_train.csv')
meteorite_test = pd.read_csv('meteorite_test.csv')
meteorite_val = pd.read_csv('meteorite_val.csv')
with open('stats.txt', 'w') as f:
f.write(f"Wielkosc treningowego zbioru:\n {meteorite_train.shape}\n")
f.write(f"Wielkosc testowego zbioru:\n {meteorite_test.shape}\n")
f.write(f"Wielkosc walidacyjnego zbioru:\n {meteorite_val.shape}\n")
f.write(f"\Zbior Treningowy:\n")
f.write(f"{meteorite_train.describe()}\n")
f.write(f"\Zbior Testowy:\n")
f.write(f"{meteorite_test.describe()}\n")
f.write(f"\Zbior walidacyjny:\n")
f.write(f"{meteorite_val.describe()}\n")