Skip to content

Commit 0b6dcdd

Browse files
committed
Create logregtest.py
1 parent e67f8d2 commit 0b6dcdd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/src/week39/codes/logregtest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pandas as pd
2+
import numpy as np
3+
import matplotlib.pyplot as plt
4+
import seaborn as sns
5+
credit = pd.read_csv('creditcard.csv')
6+
print(credit.columns)
7+
print(credit.head())
8+
print("dimension of credit data: {}".format(credit.shape))
9+
print(credit.groupby('Outcome').size())
10+
#sns.countplot(credit[‘Outcome’],label=”Count”)
11+
print(credit.info())

0 commit comments

Comments
 (0)