pandasでリストの要素を分解して新しい列にする方法2022/8/17 / 1 min readView more blogs with the tag pandas, View more blogs with the tag pythonTable of Contents#はじめに#方法はじめに df から df_s のような df を作成する方法です。 df lst [hoge, 100, 200] df_s name x y name 100 200 方法 import pandas as pd df_s = df['lst'].apply(pd.Series)df_s.columns = ['name', 'x', 'y']関連記事2026/8/16pandas前処理まとめ|結合・エンコーディング・欠損の右詰め・単語頻度2026/8/9Google Colaboratory活用まとめ|Drive連携・GPU・MeCab・Selenium2023/7/20SQLAlchemy2.0以降を使ってread_sqlする方法2023/5/17indexメソッドを利用した複数条件でdfの行を削除する2023/4/26Pandasのテーブルをまとめて一つのエクセルに出力したいときこの記事を書いた人barorin公認会計士会計とITの二足のわらじで働く公認会計士です。Pythonを中心に、会計・監査の実務で実際に使っているコードや、Ubuntu・Raspberry Piの設定メモを書いています。Find me onGithubFedibirdTwitterBuyMeACoffeeRSS