From 0b6dcdd9d91f53c2a30782eaf8aaaaefdb667df5 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Mon, 22 Sep 2025 07:52:31 +0200 Subject: [PATCH] Create logregtest.py --- doc/src/week39/codes/logregtest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/src/week39/codes/logregtest.py diff --git a/doc/src/week39/codes/logregtest.py b/doc/src/week39/codes/logregtest.py new file mode 100644 index 000000000..cbbd0071f --- /dev/null +++ b/doc/src/week39/codes/logregtest.py @@ -0,0 +1,11 @@ +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())