TimeFeatureGenerator
Description
This API performs a preprocessing function that creates time features using the time index values of the data.
A total of 10 time features are generated.
- SecondOfMinute
- MinuteOfHour
- HourOfDay
- DayOfWeek
- WeekdayAndWeekend
- DayOfMonth
- DayOfYear
- MonthOfYear
- WeekOfYear
- SeasonOfYear
Refer to the code file for detailed calculation processes.
API module path
from api.v2.Preprocessing.Make_Time_Feature import TimeFeatureGenerator
Parameters
time_index
- Input the time index part of the time series DataFrame.
- Example
- time_index = df.index
Example Sample Code (Python)
Results

Check the entire module code.
datahub/api/v2/Preprocessing/Make_Time_Feature.py at main · machbase/datahub
All Industrial IoT DataHub with data visualization and AI source - machbase/datahub