Questions tagged [period]

A period of time is an interval, a span of time. You can also use it for questions related to the actual punctuation mark.

508 questions
0
votes
1 answer

How to pretty format a Period in Java 17?

I would like to format a period (age) in human readable form like: 47 years, one month and 7 days. Here 1 replaced by one and 0 skipped like 58 years and 7 days. Is there a ready-made formatter for such a task? Should I write my own and how to do…
Jegors Čemisovs
  • 608
  • 6
  • 14
0
votes
2 answers

How do I get periods to display behind the index numbers?

I'm working on a project for school. I was able to get my function to work the way I need it to, using all of the parameters that the teacher wanted, except when it displays. I need it to pull from two lists, which it does, and display both lists…
MeCAHK11
  • 3
  • 2
0
votes
1 answer

Know the period of a stationary series

I am studying time series, I am using Python, and I need to know the period of the stationary part (The decomposition is the following, I am interested in the seasonal part). What I have done is take a number (any) and count the number of steps…
0
votes
0 answers

How to set up two-weeks interval for datetime value

I am trying to lineup date values in my df to bi-weekly format. Lets have 1st 2-weeks interval starts at 1/1/2021, the second interval starts at 1/14/2021 if df value belongs to 1st interval, i would like to see 1st interval value. df =…
OcMaRUS
  • 329
  • 3
  • 13
0
votes
2 answers

Need help in writing a function for Pisano Period in C++

int PisanoLength(int m){ std::vector v; v.push_back(0); v.push_back(1); int i; for(i = 2; ; i++){ v[i] = v[i - 1] + v[i - 2]; int a = v[i - 1] % m; int b = v[i] % m; if( a == 0 && b == 1) …
Soham Parate
  • 55
  • 1
  • 5
0
votes
1 answer

SELECT-SQL-Statement - Transformation of a single data record with a date period into several single data records per day

I have the following example records in a table that contains records with time periods (Originally import data): ID DateFrom DateTo Value 1 01.01.2021 03.01.2021 A 2 02.03.2021 06.03.2021 B ... The data is imported as individual…
0
votes
1 answer

Instaloader data scraping using specific hashtag and timeframe

I need help using instaloader to data scrape posts from Instagram that include #slowfashion from a specific timeframe. I want to scrape the visual and textual data from the posts (specifically, the image/s posted, their descriptions, and comments).
Geordie
  • 1
  • 2
0
votes
0 answers

DateParseError error appears when I try to set PeriodIndex

This continuation of my previous question. I try to fit ARIMA model from sktime package but I had a problem. With help of the answerer, I set period index, but still, errors occur. import numpy as np, pandas as pd df =…
student
  • 68
  • 1
  • 11
0
votes
1 answer

How to process data after a counter reached to zero for a specific period of time, then the counter will start again after that peiod of time?

My scenario is that a node chooses a random number as a counter, then starts to auto-decrement the counter (I did this step). When the counter reaches to zero, then the node processes data for 1 minute only. After 1 minute of processing, the node…
ismsm
  • 143
  • 2
  • 11
0
votes
1 answer

How to run function for specific time and sleep for a specific time?

I want to run calculateSomething function for a specific period of time, for example for 1 minute which this function receive messages from MQTT protocol. After 1 minute, this function will sleep or stop receiving data from MQTT for 1 minute, then…
ismsm
  • 143
  • 2
  • 11
0
votes
0 answers

SQL Server 2016 Temporal Tables are Blank

I am trying to create a Temporal Table in SQL Server 2016. The Database is linked to an Azure Data factory which is updated regularly. I am able to successfully 'create' the Temporal Table, but whenever I try to Select Rows from the table they are…
0
votes
0 answers

Need to create Period over Period Issue Reporting in SQL Server 2016

I am responsible for creating period-over-period and trend reporting for our Team's Issue Management Department. What I need to do is at copy table Issues at month-end into a new table IssuesHist and add a column with the current date example:…
0
votes
1 answer

How to divide 24 hours into 96 quarters?

I'm trying to come up with some logic to cleanly divide 24 hours into 96 quarters but I can't figure it out. I have a Python Pandas dataframe showing the hours and quarters of each time stamp. It looks like this Timestamp | Hour | …
Wouter
  • 477
  • 2
  • 6
  • 8
0
votes
0 answers

Do Azure DevOps user stories have a retention period?

I'm trying to audit work that was done this year and have found that stories from back in January-March are missing. I'm able to see some of the releases for the later part of that period (Feb-March), but no stories. I've searched all of ADO for all…
Nathon
  • 173
  • 1
  • 8
0
votes
2 answers

autocorrelation to detect periodicity

I am processing a signal in real-time. I need to detect whether the signal is periodic or not (not only by visualizing graphs). So I tought of autocorrelation function. Here's my approach but I am not sure : I calculate the autocorrelation of the…
DBen
  • 31
  • 3