본문으로 바로가기
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분 코딩 챌린지를 통해 이동 중에도 학습 효과를 높이세요.