I am trying to calculate average energy consumption of electric vehicles. For calculating that, I am using speed parameter from the dataset. Trying to segment the speed based on time per second. Need python coding for machine learning to segment speed profile for every 120 seconds and then to calcuate average speed from start to end of the segment. I am having 10000 records in my dataset with 40 columns.
The coding I used for plotting is
import matplotlib as pyplot
ax=df['speed'].plot(figsize=(12,6), fontsize=10)
plt.xlabel('time in sec', fontsize=20)
plt.ylabel('Speed')
The above displays a simple graph of speed profile. Need help on segmentation based on time .
source https://stackoverflow.com/questions/72062750/segmentation-for-calculating-average-speed-for-electric-vehicle
Comments
Post a Comment