<jupyter_start><jupyter_text>[View in Colaboratory](https://colab.research.google.com/github/ykpengba/Home-Credit-Risk-Data/blob/master/Kaggle_Yukun_Credit_Card_balance.ipynb)<jupyter_code>!pip install kaggle-cli
!kg config -u <EMAIL> -p Hero1345679 -c home-credit-default-risk
!kg config
!kg download
import os,zipfile

for item in os.listdir('./'):
   if item.endswith('.zip'): 
        file_name = os.path.abspath(item)
        zip_ref = zipfile.ZipFile(file_name)
        zip_ref.extractall('./') 
        zip_ref.close() 
        os.remove(file_name) 
print(os.listdir('./'))

import pandas as pd

credit_card_balance_df = pd.read_csv('./credit_card_balance.csv')
credit_card_balance_df.head()
credit_card_balance_df.describe()
credit_card_balance_df.isnull().sum()
values = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].value_counts()
total_rows = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].shape<jupyter_output><empty_output><jupyter_text>Clean Up `AMT_DRAWINGS_ATM_CURRENT` column<jupyter_code>values = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].value_counts()
total_rows = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].shape

values = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].value_counts()
total_rows = credit_card_balance_df['AMT_DRAWINGS_ATM_CURRENT'].shape

total_rows<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12100965107646622, 'fraction_numerical': 0.005196733481811433, 'mean_word_length': 6.929411764705883, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '324224', 'license': 'Apache-2.0', 'n_tokens_mistral': 528, 'n_tokens_neox': 502, 'n_words': 57, 'path': 'Kaggle_Yukun_Credit_Card_balance.ipynb', 'repo_name': 'ykpengba/Home-Credit-Risk-Data', 'size': '1361'}