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

Python 時系列分析 1,000本ノック– ノック27: 時系列データの四半期の変更 –
次の Python コードの出力はどれでしょうか?

Python コード:

import pandas as pd

date = pd.Timestamp('2023-06-15')
quarter = date.to_period('Q')
new_quarter = quarter.asfreq('Q-NOV')

print(new_quarter)

 

回答の選択肢:

(A) 2023Q2
(B) 2024Q2
(C) 2023Q3
(D) 2024Q3

Python 時系列分析 1,000本ノック– ノック28: 時系列データのピボット –

Screenshot

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

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