Files
FYS-STK4155/doc/src/week39/codes/logregtest.py
T
Morten Hjorth-Jensen 0b6dcdd9d9 Create logregtest.py
2025-09-22 07:52:31 +02:00

12 lines
351 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
credit = pd.read_csv('creditcard.csv')
print(credit.columns)
print(credit.head())
print("dimension of credit data: {}".format(credit.shape))
print(credit.groupby('Outcome').size())
#sns.countplot(credit[Outcome],label=”Count”)
print(credit.info())