A period of time is an interval, a span of time. You can also use it for questions related to the actual punctuation mark.
Questions tagged [period]
508 questions
1
vote
1 answer
Slowmotion time limit
I made a player in my game, such that it goes into slow-motion when you hold down the space bar. But I want the player to only be available to be in slow-motion for 5 seconds at a time. After 10 seconds the player will be available to go into…

DanielHagelskjaer
- 13
- 2
1
vote
1 answer
Python: change periods to daily records
I would like to change my period data to daily data.
I have following data:
d = {'id_article': [1, 1, 2],
'sale': [103963.00, 30000.00, 15000.00],
'date_from': ['04-01-2022', '03-01-2022', '03-01-2022'],
'date_to': ['15-01-2022',…

Veracious
- 27
- 4
1
vote
1 answer
Fill NaN with average based on index of type period[M]
I have a df in which the index is of dtype period[M] that looks like this:
month
outcome
MKT
2020-01
W
6
2020-01
W
4
2020-03
W
NAN
2020-03
L
NAN
2020-02
L
4
2020-02
L
7
I want to replace all NAN values of the column MKT by the…

user17717499
- 151
- 7
1
vote
2 answers
How to determine the frequency of a time series?
For an if-query I would like to create a macro varibale giving the respective frequency of the underlying time
series. I tried to get some descriptive statistics from proc time series. However, they unfortunately do not include the figure for the…

Juergen
- 13
- 3
1
vote
0 answers
Selecting Columns in DataFrame with Columns Labeled with Period[H] Datatypes
I am trying to show how many people are working in a specific time frame over multiple periods, and would like to display this as a chart using Seaborn. I'm looking to create something like this:
My data comes with a single entry per line for each…

Tzvi L
- 45
- 1
- 7
1
vote
1 answer
Access Database: Averages across two consecutive months
I have a table in an access database with essentially two critical fields: "Period" (as YYYYMM, so e.g. 202111, 202112, 202201 and so on) and, further, a dollar amount as field "Volume Balance". The goal is now to calculate a simple average for…

DVEF
- 47
- 4
1
vote
0 answers
How would I redirect after authenticating a user using passportjs?
I looked in several posts, but I cannot find something that meets my situation.
To login (or signup) with google, you have to go to mydomain.com/login/google
You then, well, login with google, and then the callback is handled on…

Liam Sholts
- 85
- 7
1
vote
2 answers
python datetime dataframe add some dates if there are lack of dates than I want
I have two data files and both have different periods of datetime.
As you can see below, the first 'Date' is from 2013-10-14 to 2015-11-25, and the second 'Date' is from 2014-01-01 to 2015-11-27.
If I want to make the date from 2013-10-14 to…

Joe
- 51
- 7
1
vote
3 answers
Compare a date with a time period
I'm currently running a zoo. The user is asked for a valid date, if the given date is between the inaccessible period for a given animal the animal's name will not be printed, but if it is ouside the period it will. How do I do this if the the date…

David Gallego
- 31
- 3
1
vote
1 answer
Python - to put space after period; not for a decimal number
Using Python and regex, would you please help converting
First sentence.Second sentence. Third 3.4 sentence3.Fourth sentence. Fifth5. Sixth.
to
First sentence. Second sentence. Third 3.4 sentence3. Fourth sentence. Fifth5. Sixth.
i.e., space needs…

Geeths
- 81
- 7
1
vote
1 answer
Convert a string column to period in pandas preserving the string
I would like to understand if I can convert a string column to a PeriodIndex (for instance year), preserving the string (suffix).
I have the following DataFrame:
company date ... revenue …

jcunhafonte
- 429
- 7
- 17
1
vote
2 answers
Convert a column of datetime and strings to period in pandas
I would like to understand if I can convert a column with mixed types (DateTime and Strings) to a PeriodIndex (for instance month).
I have the following DataFrame:
booking_date ... credit debit
None ... …

jcunhafonte
- 429
- 7
- 17
1
vote
2 answers
Time within working hours - check one liner in Kotlin
I need to show a red dot inside a recyclerView when a list item business working and red when it does not.
I use databinding, API 24, with the ability to use Java 8 calls (particularly API 26 new java.Time and its LocalTime and LocalDate).
//Get…

Vitaly Kononenko
- 21
- 1
- 5
1
vote
2 answers
Random time and date
I want to get a date that generates the time from now to 2685 days back and a random time. The format I accept must be "uuuu-MM-dd'T'HH: mm: ssZ". Currently my program is generating a random date but I am not able to create a random time because…

Than
- 21
- 4
1
vote
0 answers
Time series problem, find numbers of count which is above than threshold . count 1 if value continue above than threshold for one hrs
I have Index (2010 to 2013 hr basis & have sensor column. I have a threshold value which is 65, in sensor columns some value above 65 and some value below 65. I have to find numbers of count which are above 65 but the condition is if value…

Devendra Pal
- 13
- 2