PythonFan.org
Toggle Menu
Home
Online Python Compiler
Tutorials
Python FastAPI
Python Pandas
Python PyTorch
Python Seaborn
Blog
All Posts
Pandas Time Series Mastery
Explore datetime handling and resampling in Pandas.
1. Which Pandas function is primarily used to create a fixed-frequency DatetimeIndex?
to_datetime
date_range
period_range
timedelta_range
2. Which of the following are valid resampling aggregation methods in Pandas?
mean
sum
sort
filter
3. A Pandas Series with dtype 'datetime64[ns]' is timezone-aware by default.
True
False
4. Name the Pandas accessor used to access datetime properties (e.g., year, month) of a Series, abbreviated.
5. What frequency code in Pandas represents monthly frequency?
'D'
'M'
'Y'
'H'
6. Which of the following are Pandas window functions used for time series analysis?
rolling
expanding
resample
pivot_table
7. A Pandas Period object represents a specific point in time, like a Timestamp.
True
False
8. What term describes adjusting time series data to remove seasonal variations, aiding in trend analysis?
9. Resampling a daily time series to monthly frequency is an example of:
upsampling
downsampling
interpolation
normalization
10. Which of the following are key components of a time series analyzed in Pandas?
trend
seasonality
noise
color
Reset
Answered 0 of 0 — 0 correct