<jupyter_start><jupyter_text>replace accent characters and commas<jupyter_code>def decodeuni(str):
    return unidecode.unidecode(str)
rating_AOTY['artist'] = rating_AOTY['artist'].apply(decodeuni)
rating_AOTY['album'] = rating_AOTY['album'].apply(decodeuni)
rating_AOTY['artist'] = rating_AOTY['artist'].apply(lambda x : x.replace(",", ""))
rating_AOTY['album'] = rating_AOTY['album'].apply(lambda x : x.replace(",", ""))
rating_AOTY.to_csv("../data/rating_AOTY.csv", index=False)<jupyter_output><empty_output><jupyter_text>Load csv file<jupyter_code>df = pd.read_csv("../data/rating_AOTY_utf8.csv")
print(df.shape)
df.head()
import sqlalchemy, pickle
from sqlalchemy import create_engine
pw = pickle.load(open("mysql_pw.pickle", "rb"))
engine = sqlalchemy.create_engine("mysql+mysqldb://root:" + pw + "@192.168.3.11/project_rookie")
df.to_sql(name="rating_AOTY", con=engine, if_exists='replace')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1790722761596548, 'fraction_numerical': 0.010787486515641856, 'mean_word_length': 9.08695652173913, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '120457', 'license': 'MIT', 'n_tokens_mistral': 371, 'n_tokens_neox': 362, 'n_words': 44, 'path': 'crawler/scrape-rating-AOTY.ipynb', 'repo_name': 'lucaseo/content-worth-debut-artist-classification-project', 'size': '927'}