I'm newbee to PQ, but I have a task to do. I would appreciate the help if it will be provided) I have the following table: YEAR ...
I'm newbee to PQ, but I have a task to do. I would appreciate the help if it will be provided) I have the following table: YEAR ...
I want to pivot a table such that each row in the type column is now its own row. Each metric is then a row and the values are the intersection of the ...
I am using SQL Server 2014 and I have the following Table (T1): I need to convert this table so that I get the output below: I tried the unpivot ...
I have a temp table #temproles with data like this: ID Dept RoleCode RoleName NameOf 123 ...
So I have a table that looks like this: list value date cars 10000 2023-01-28 ...
I have a dataframe like: id diag a_date 0 1 d1 55 1 1 d2 88 2 2 d5 22 3 2 d3 44 4 2 d4 88 5 ...
I have been trying to find a way to pivot a dataset with 4 columns into one row. I will show an example of what I mean. I want this dataset to be t ...
I am trying to compute stats for basketball lineups given the play-by-play data. In particular I have a dataframe which more or less looks like this ...
I have a pandas dataframe like: and I want to flatten it so each id pairing (id, sid) is unique across rows. In this process, I want to create new ...
I'm having issues with my pivot statement. Essentially the problem is we have a set of patients who have been seen by different physicians during a se ...
I'm trying to get the right regex (following this) to use inside names_pattern. The strings are: CRIS_CLAU_ENG_O and LARI_CLAU_ENG_O Desired output: ...
I have a question for reorganizing the data in SQL in the manner indicated below. I have a table with the given data structure. Us ...
I'm having trouble translating a pivot column. I've been trying all day to add this translation but it still doesn't work. I'm using the package: ht ...
I have table in Python Pandas like below: Input: df: And I need to create pivot_table using code like below: df_pivot (result of above code) ...
I have a very large dataframe that recorded tumor size on MRI scans on multiple follow-ups. Let's say I have p: As you can see, the data records t ...
I am struggling to apply various functions to a list of 60 dataframes. Mainly I want to use select and pivot_longer, but I also need to transform some ...
I have a dataframe like this: Sequence Message 1 A 2 B 3 C ...
I am trying to find allocation percentage of assets, as to how much % of stocks, cash and bond, of a customer at account level. portfolio table: ...
I have a datafame in pandas with has a group of columns with hyphens (theres several but I'll use 2 as an example, _1 and _2), which both depict a dif ...
ID (PrimaryKey) HumanAttribut attributValue 1 Name John 1 Country ...