0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

福岡県の Go To EATの加盟店一覧をスクレイピングしてCSVに変換

Posted at

Go To Eatキャンペーン福岡こちらにCSVデータであるのでジャンルを変換

import pandas as pd

df = pd.read_csv("https://gotoeat-fukuoka.jp/csv/fk_gotoeat_UTF-8.csv")

df["13.店舗情報ジャンル"] = df["13.店舗情報ジャンル"].replace(
    {
        1: "和食・寿司",
        2: "洋食",
        3: "中華料理",
        4: "フレンチ・イタリアン",
        5: "ラーメン・餃子",
        6: "焼肉・ホルモン・韓国料理",
        7: "すき焼き・しゃぶしゃぶ",
        8: "アジア・エスニック・各国料理",
        9: "カフェ・スイーツ",
        10: "ファミリーレストラン・食堂",
        11: "居酒屋",
        12: "バー・ダイニングバー",
        13: "ファーストフード",
        14: "うどん・そば・丼",
        15: "その他",
    }
)

df.to_csv("fukuoka.csv", encoding="utf_8_sig")
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?