メインコンテンツへスキップ
ホームPython

コース

pandas でデータを整形する

中級スキルレベル
更新日 2024/11
DataFrameをワイドからロングに変形し、行・列のstack/unstackを行い、MultiIndexのDataFrameを効率的に整形します。
コースを無料で開始
PythonData Manipulation
4時間
15 ビデオ
52 演習
4,450 XP
24,116
修了証明書

無料アカウントを作成

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

何千もの企業の従業員が支持

Group

チームのトレーニングを担当していますか?

Businessをお試しください

コース説明

データは人間にとって読みやすい形式でも、分析には向かないことがよくあります。そこで役立つのが pandas です。DataFrame をさまざまな形式に整形できる強力なツールです。このコースでは、DataFrame に含まれる文字列列やネストされたデータの扱い方を学びながら、データサイエンティスト/アナリストとしてのスキルを伸ばします。FIFA の選手レーティング、書評、チャーン分析データなどの実データを使い、ワイド形式からロング形式への変形、行や列のスタック/アンスタック、マルチインデックス DataFrame の記述統計の取得まで学びます。

前提条件

Data Manipulation with pandas
1

Introduction to Data Reshaping

Let's start by understanding the concept of wide and long formats and the advantages of using each of them. You’ll then learn how to pivot data from long to a wide format, and get summary statistics from a large DataFrame.
チャプターを開始
2

Converting Between Wide and Long Format

Master the technique of reshaping DataFrames from wide to long format. In this chapter, you'll learn how to use the melting method and wide to long function before discovering how to handle string columns by concatenating or splitting them.
3

Stacking and Unstacking DataFrames

In this chapter, you’ll level-up your data manipulation skills using multi-level indexing. You'll learn how to reshape DataFrames by rearranging levels of the row indexes to the column axis, or vice versa. You'll also gain the skills you need to handle missing data generated in the stacking and unstacking processes.
pandas でデータを整形する
コース完了

修了証明書を取得

この修了書をLinkedInや履歴書、CVに追加しましょう
ソーシャルメディアや人事評価で共有しましょう
今すぐ登録

19百万人を超える学習者と共にpandas でデータを整形するを始めましょう!

無料アカウントを作成

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

DataCamp for Mobileでデータスキルを磨きましょう

モバイル コースと毎日の 5 分間のコーディング チャレンジで、外出先でも進歩できます。