time-series

Creating circular boxplot for circadian data

Creating circular boxplot for circadian data Question: I am trying to find an R code to make a plot that looks like this (below). I know this figure was created in python because I emailed the person who created this code but after 2 months of back and forth with him promising to get me …

Total answers: 1

Using plotly express px.bar causes a shift in output

Using plotly express px.bar causes a shift in output Question: I am trying to print a bar chart using plotly express (px.bar). It is a yearly set of data from 2015 to 2022 but gets plotted from 2016 to 2023. Not sure why… Code to plot yearly returns. # plotting the yearly % returns fig …

Total answers: 2

How to format the timeseries axis of a matplotlib plot like a pandas plot

How to format the timeseries axis of a matplotlib plot like a pandas plot Question: I’ve created following graph with pd.Series([1]*month_limits.size, month_limits).plot(ax=ax) How do I recreate same x ticks labels with just matplotlib? I mean years and month not overriding each other Best I got is having years and months at the same time, but …

Total answers: 1

Calculate Delta between time series peaks with pandas

Calculate Delta between time series peaks with pandas Question: I have two pandas dataframe as follow: df1: dt z 1970-01-17 21:39:10.304 0.87602 1970-01-17 21:39:10.344 0.99907 … … df2: | dt | z | | ————————–| ————– | | 1970-01-17 21:39:23.312 | 0.84904 | | 1970-01-17 21:39:23.352 | 1.00542 | | … | … | where …

Total answers: 1

Pandas – Irregular time series data – Compare row to next 8 hours of rows

Pandas – Irregular time series data – Compare row to next 8 hours of rows Question: Right now I am using pandas to analyze call center data. The data is structured as followed: call_time = pd.to_datetime([ ‘2020-01-01 01:00:00’, ‘2020-01-01 09:00:00’, ‘2020-01-01 01:00:00’, ‘2020-01-01 03:00:00’, ‘2020-01-01 04:00:00’, ‘2020-01-01 06:00:00’, ‘2020-01-01 01:00:00’, ‘2020-01-01 10:00:00’, ]) df = …

Total answers: 2

Find events in log that occur after a specific event

Find events in log that occur after a specific event Question: I have a log of events to analyze that looks like this: +—-+———————+———-+——–+ | id | timestamp | record | event | +====+=====================+==========+========+ | 1 | 2023-03-01 13:17:05 | record03 | Edit | +—-+———————+———-+——–+ | 2 | 2023-03-02 02:57:49 | record02 | Edit | …

Total answers: 1

What is the best practice to apply cross-validation using TimeSeriesSplit() over dataframe within end-2-end pipeline in python?

What is the best practice to apply cross-validation using TimeSeriesSplit() over dataframe within end-2-end pipeline in python? Question: Let’s say I have dataset within the following pandas dataframe format with a non-standard timestamp column without datetime format as follows: +——–+—–+ |TS_24hrs|count| +——–+—–+ |0 |157 | |1 |334 | |2 |176 | |3 |86 | |4 …

Total answers: 2