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

コース

Pythonで扱う日付と時刻

中級スキルレベル
更新日 2025/11
Pythonで日付と時刻を扱う方法を学びましょう。
コースを無料で開始
PythonProgramming4時間14 ビデオ48 演習4,100 XP77,546達成証明書

無料アカウントを作成

または

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

数千の企業の学習者に愛されています

Group

2名以上のトレーニングをお考えですか?

DataCamp for Businessを試す

コース説明

タイムマシンはなくても、時間を分析する「マシン」なら作れます。時間が関わる分析では、日や月の境目、タイムゾーン、夏時間など、準備が足りないと戸惑うポイントがたくさんあります。時間を含む分析を行うなら、Pythonでしっかり整理するのがおすすめです。ハリケーンと自転車シェアのデータを使い、イベントのカウント、イベント間の経過時間の算出、時系列のプロットまで扱います。標準のPythonとPandasの両方で作業し、公式Pythonドキュメントが推奨する唯一のタイムゾーンライブラリであるdateutilにも触れます。本コース修了後は、あらゆる形式の日付・時刻データを自信を持って扱えるようになります。

前提条件

Data Manipulation with pandas
1

Dates and Calendars

Hurricanes (also known as cyclones or typhoons) hit the U.S. state of Florida several times per year. To start off this course, you'll learn how to work with date objects in Python, starting with the dates of every hurricane to hit Florida since 1950. You'll learn how Python handles dates, common date operations, and the right way to format dates to avoid confusion.
チャプター開始
2

Combining Dates and Times

Bike sharing programs have swept through cities around the world -- and luckily for us, every trip gets recorded! Working with all of the comings and goings of one bike in Washington, D.C., you'll practice working with dates and times together. You'll parse dates and times from text, analyze peak trip times, calculate ride durations, and more.
チャプター開始
3

Time Zones and Daylight Saving

In this chapter, you'll learn to confidently tackle the time-related topic that causes people the most trouble: time zones and daylight saving. Continuing with our bike data, you'll learn how to compare clocks around the world, how to gracefully handle "spring forward" and "fall back," and how to get up-to-date timezone data from the dateutil library.
チャプター開始
4

Easy and Powerful: Dates and Times in Pandas

To conclude this course, you'll apply everything you've learned about working with dates and times in standard Python to working with dates and times in Pandas. With additional information about each bike ride, such as what station it started and stopped at and whether or not the rider had a yearly membership, you'll be able to dig much more deeply into the bike trip data. In this chapter, you'll cover powerful Pandas operations, such as grouping and plotting results by time.
チャプター開始
Pythonで扱う日付と時刻
コース完了

修了証明書を取得

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

19百万人を超える学習者と一緒にPythonで扱う日付と時刻を今日から始めましょう!

無料アカウントを作成

または

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

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

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