<jupyter_start><jupyter_text>Example usageTo use `risk_model_tool` in a project:<jupyter_code>%load_ext autoreload
%autoreload 2


import os
import pandas as pd

import risk_model_tool
risk_model_tool.__version__<jupyter_output>The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload<jupyter_text>Docs of Utils autoexcel<jupyter_code>### Read data
from risk_model_tool.utils import autoexcel
from openpyxl import load_workbook
from PIL import Image as PILImage

write_excel = load_workbook(filename="./example/toy_data/iris.xlsx")

autoexcel.insert_df(anchor="G1", sheet=write_excel["Sheet1"], df=pd.DataFrame([{"test": "test", "try":"try"}]), header=True)

# autoexcel.batch_insert_image(anchor="K1", sheet=write_excel["Sheet1"], images="./example/images/", img_size=(5,3))

write_excel.save("./example/toy_data/iris_add_df.xlsx")<jupyter_output><empty_output><jupyter_text>df_to_highchart<jupyter_code>from risk_model_tool.utils import df_to_highchart

df = pd.read_excel("./example/toy_data/iris.xlsx").iloc[:, 1:]

df_to_highchart.serialize(df, title="Test in notebook",output_type='notebook')<jupyter_output><empty_output><jupyter_text>Mailsender<jupyter_code>from risk_model_tool.utils import mail_sender


config = {
    'host': "smtp.163.com",
    'port': 465,
    'user': "MAIL",
    'passwd': "PASSWORD",
    'subject': "Test",
    'to': "<EMAIL>",
    'timeout':20,
}

mail = mail_sender.MailSender(config, None)

# mail.send()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14066666666666666, 'fraction_numerical': 0.010666666666666666, 'mean_word_length': 7.385474860335195, 'pattern_counts': {'":': 2, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '64425', 'license': 'MIT', 'n_tokens_mistral': 585, 'n_tokens_neox': 569, 'n_words': 93, 'path': 'docs/example.ipynb', 'repo_name': 'PANDASANG1231/tools', 'size': '1505'}