Questions tagged [pivot]
The pivot tag has no usage guidance.
3
questions
2
votes
0
answers
48
views
Print columns of text without hard coding the width (attempt 6 - pivot edition)
If you'd like to pivot this:
...
3
votes
0
answers
47
views
SQL query to pivot table into dynamically growing set of columns
I am working on SQL Server I have sample data like this in a table.
CustId
Bank
city
rating
date
rnk
1
Deutsche
Delhi
5
10/10/2022
1
1
BOA
Pune
6
10/10/2022
2
1
UBS
Mumbai
7
10/10/2022
3
1
SBI
...
2
votes
2
answers
421
views
Pivoting and then Padding a Pandas DataFrame with NaN between specific columns - Case Study
This question is about pivoting and padding columns, two very frequent activities in Pandas.
I have a raw dataframe. I need to manipulate from long to ...