<jupyter_start><jupyter_text>Excel Loading and Extraction Import Frameworks<jupyter_code>import numpy as np
import pandas as pd
import xlrd<jupyter_output><empty_output><jupyter_text>New Magic!! %qtconsole<jupyter_code>%qtconsole<jupyter_output><empty_output><jupyter_text>Load File<jupyter_code>filename='DataFile.xlsx'
sheetname='Sheet1'<jupyter_output><empty_output><jupyter_text>- Open the File<jupyter_code>book=xlrd.open_workbook(filename)
print('Source file: ' + filename + ' loaded!')<jupyter_output><empty_output><jupyter_text>- File Data Extraction<jupyter_code>nsheets=book.nsheets

sheet_names=book.sheet_names()
nrows=book.sheet_by_name(sheetname).nrows<jupyter_output><empty_output><jupyter_text>- Extract Header Names<jupyter_code>header=book.sheet_by_name(sheetname).row_values(0)<jupyter_output><empty_output><jupyter_text>- Extract Main Data<jupyter_code>data=[book.sheet_by_name(sheetname).row_values(i) for i in range(1, nrows)]<jupyter_output><empty_output><jupyter_text>Construct DataFrame<jupyter_code>df=pd.DataFrame(data, columns=header)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11996336996336997, 'fraction_numerical': 0.0027472527472527475, 'mean_word_length': 16.078125, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '184608', 'license': 'MIT', 'n_tokens_mistral': 425, 'n_tokens_neox': 410, 'n_words': 44, 'path': 'ExcelExtraction/MonoSheet/ExcelExtractionDemo.ipynb', 'repo_name': 'YangChuan80/UtilityNotes', 'size': '1092'}