517 questions
1
vote
2
answers
78
views
Get period start of month period (bimester, trimester, quarter, and semester)
I'm trying to get the period start of a given month period (2 for bimester, 3 for trimester, 4 for quarter, and 6 for semester).
Here's what I've tried:
DECLARE @param_MONTH_PERIOD TINYINT = 2;
...
1
vote
1
answer
65
views
In pandas, what is the difference between a datetime-based Interval and Period
In pandas, there are two obvious ways to represent timespans: Interval[datetime64] and Period. When do I use which? Is there a prefered one in all cases?
I couldn't find this in the documentation - ...
0
votes
1
answer
84
views
How to align Pandas Periods of frequency 12 hours to start and end at 00:00 and 12:00
I want to divide a large dataset into 12-hour periods of data starting/ending at midnight and noon each day.
I was planning to use Pandas.Period for this but I noticed that it converts an arbitrary ...
0
votes
1
answer
53
views
If I change a Pandas Periodindex into a String valued index, what am I giving up?
A disclaimer at the start: I am not really a programmer but do have some ability to hack some things together and get a reasonable result. But my knowledge is very much a case of— get a solution to ...
0
votes
2
answers
204
views
How to find next open accounting period in netsuite?
I have to find next open accounting period for certain period.
Suppose, on invoice, accounting period is Feb 2022, then first check if accounting period has closed. If closed, I have to find next open ...
0
votes
2
answers
75
views
Convert pandas series of strings into PeriodIndex, quarterly
I have a column of strings which represent quarters (format '%Y%q') which I want to convert to PeriodIndex. How to do this? Nothing is working, can't find a strptime function that takes a format ...
0
votes
1
answer
152
views
How to avoid period aggregation in Cloudwatch dashboard?
I have a CloudWatch dashboard that is designed to collect logs from a log group associated with a Lambda function. The widgets type is "number", and the Statistic is "Sample count"....
1
vote
2
answers
102
views
How to remove overlaps from intervals? [closed]
I have two datasets:
one consisting time periods when persons worked
second consisting time periods when persons were on vacation
I need to remove these vacation periods from working periods as ...
0
votes
1
answer
161
views
Stop VisualStudio 2022 from erasing the period in intelliSense AutoCompletion
I work on Visual studio 2022 (Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.10.3 ) and intellisense autocomplete erases the period. How can i have it not erase the period (or ...
1
vote
1
answer
165
views
I need a measure in PowerBI gives the equivalent weekday vs the same WEEKDAY of the previous year
I have a weekday vs previous year weekday requirement that does not seem to be common in the Retail industry. I have found no articles or videos that happens to address this issue. My employer wants ...
3
votes
1
answer
79
views
Pandas bug when trying to loc data on a quarter
With a dataframe that has a datetime index, I am used to getting data for quarters with the syntax eg. df.loc["2014-Q1"] to grab the data for the first quarter of 2014 (Jan, Feb, Mar).
This ...
0
votes
3
answers
126
views
Subtract columns with data of type date in python
I have the next example
import pandas as pd
data = {
'id_number': ['000001000', '000009795', '000011722'],
'first_date': ['2022-01-08 13:41:00', '2022-11-07 09:16:00', '2022-02-15 12:46:...
1
vote
1
answer
156
views
Why do I get a difference between two dates in Java? [duplicate]
Period period = new Period(startDate, endDate, PeriodType.yearMonthDay());
int years = period.getYears();
int months = period.getMonths();
int days = period.getDays();
if startDate = May 1, 1975 and ...
0
votes
0
answers
10
views
List Division in Period Folding [duplicate]
I have two lists of x and y values, respectively (~200k coordinate pairs total) representative of a sinusoidal wave. It's period ends at the 300th coordinate point; I've been tasked with dividing the ...
1
vote
2
answers
232
views
Validate pandas.Period with Pandera schema
I have a dataframe with a column "Period" which should have a dtype of pandas.Period.
I would like to validate this, using a Pandera Schema (either DataFrameModel or DataFrameSchema).
My ...