Python Forum
Custom timeinterval converted to hourly values using Pandas?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom timeinterval converted to hourly values using Pandas?
#1
Hello!

I have a timeserie of values where every week is devided into 4 parts, each representing 42 hours.
Is it possible to convert this to hourly values using Pandas built in functions?

The values starts week 1 2000 (2000/3/1 and ends week 52 2015 (2015/12/27). Part 1 should be repeated for 42 hours and so on.

Sorry if this is a stupuid question. I am total new to Python programming.

Part Value
1 65
2 13
3 44
4 12
Reply
#2
If you are totally new to Python,
you should begin with a tutorial:
https://pandas.pydata.org/pandas-docs/st...10min.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Assigning conditional values in Pandas Scott 3 725 Dec-19-2023, 03:10 AM
Last Post: Larz60+
  pandas: Compute the % of the unique values in a column JaneTan 1 1,758 Oct-25-2021, 07:55 PM
Last Post: jefsummers
  update values in one dataframe based on another dataframe - Pandas iliasb 2 9,103 Aug-14-2021, 12:38 PM
Last Post: jefsummers
  Python Custom Module not working in Jupyter Notebook with Pandas fid 0 2,009 Jul-04-2020, 11:05 AM
Last Post: fid
  Pandas + Groupby + Filter unique values JosepMaria 1 2,842 Jun-15-2020, 08:15 AM
Last Post: JosepMaria
  Pandas copying wrong values vmarg 2 2,345 Jan-06-2020, 09:45 AM
Last Post: vmarg
  sort values of a column pandas karlito 2 2,473 Oct-22-2019, 06:11 AM
Last Post: karlito
  Pandas Import CSV count between numerical values within 1 Column ptaylor520 3 2,606 Jul-16-2019, 08:13 AM
Last Post: ptaylor520
  Imported csv, column text converted to number but not summing Ecniv 4 2,871 Jun-21-2019, 02:03 PM
Last Post: Ecniv
  Can't store pandas converted json dataframe into mongoDB mahmoud899 1 4,204 Dec-12-2018, 07:45 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020