<jupyter_start><jupyter_text>店舗の差分確認<jupyter_code>import pandas as pd
master = pd.read_csv("./../data/shop_master.csv", index_col="id")
master.head(3)
len(master)
# df = pd.read_csv("./../rawdata/shops/200322_all_stations.csv", index_col="id")

date = "200412"
nakahara_df = pd.read_csv("./../rawdata/shops/{}_musashinakahara.csv".format(date), index_col="id")
shinjo_df = pd.read_csv("./../rawdata/shops/{}_musashishinjo.csv".format(date), index_col="id")
kosugi_df = pd.read_csv("./../rawdata/shops/{}_musashikosugi.csv".format(date), index_col="id")
mizonokuchi_df = pd.read_csv("./../rawdata/shops/{}_musashimizonokuchi.csv".format(date), index_col="id")
miyazakidai_df = pd.read_csv("./../rawdata/shops/{}_miyazakidai.csv".format(date), index_col="id")
len(nakahara_df), len(shinjo_df), len(mizonokuchi_df), len(kosugi_df), len(miyazakidai_df)
data = master
data = pd.concat([data, nakahara_df], sort=False).drop_duplicates(subset="url", keep="last")
data = pd.concat([data, shinjo_df], sort=False).drop_duplicates(subset="url", keep="last")
data = pd.concat([data, kosugi_df], sort=False).drop_duplicates(subset="url", keep="last")
data = pd.concat([data, mizonokuchi_df], sort=False).drop_duplicates(subset="url", keep="last")
data = pd.concat([data, miyazakidai_df], sort=False).drop_duplicates(subset="url", keep="last")
len(data)
# 新しく加盟した店
new_shops = data[~data['url'].isin(master['url'])]
for_show = new_shops.drop(["latitude", "longitude", "point", "postal_code", "reviews"], axis=1)
for_show.to_csv("./../tmp/new_shops.csv")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2109623964308477, 'fraction_numerical': 0.008922880815806247, 'mean_word_length': 7.722222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '358190', 'license': 'MIT', 'n_tokens_mistral': 656, 'n_tokens_neox': 653, 'n_words': 73, 'path': 'notebooks/shop_check_diff.ipynb', 'repo_name': 'macchino/delivery-analisys', 'size': '1569'}