Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
2 answers
80 views

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
69 views

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
90 views

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
57 views

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 ...
J H's user avatar
  • 11
0 votes
2 answers
215 views

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

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
173 views

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
104 views

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 ...
st4co4's user avatar
  • 477
0 votes
1 answer
172 views

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
167 views

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 ...
Lee M's user avatar
  • 11
3 votes
1 answer
79 views

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
132 views

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
158 views

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

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
237 views

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 ...
Andy's user avatar
  • 41

15 30 50 per page
1
2 3 4 5
...
35

AltStyle によって変換されたページ (->オリジナル) /