Python 時系列分析 1,000本ノック
– ノック35: 時系列データの週次計算 –

Python 時系列分析 1,000本ノック– ノック35: 時系列データの週次計算 –
次の Python コードの出力はどれでしょうか?

Python コード:

import pandas as pd

dates = pd.date_range(
    start='2023-01-01', 
    periods=4, 
    freq='W')
    
data = [100, 110, 90, 120]
df = pd.DataFrame(
    data, 
    index=dates, 
    columns=['A'])

print(df.pct_change())

 

回答の選択肢:

(A) 各週の値の割合
(B) 各週の変化率
(C) 各週の値の累積和
(D) 各週の差分

Python 時系列分析 1,000本ノック– ノック36: 時系列データの四半期 –

Screenshot

【月1 特定テーマ講座(10月)】
Python で学ぶ 明日からできる「欠損値処理」超入門

【開催日時】 全2回(土)2026/10/17,10/31(13:30〜18:00)
【受講形式】 当日Zoom( or 復習用に後日動画視聴)
【参加費用】 2万2千円(税込み)/人