Answers for "equivalent of spread in R in python"

0

equivalent of spread in R in python

df.pivot_table(index=['First','Last'],columns='Group',values='Measure',fill_value=0)
Out[247]: 
Group          A   B
First Last          
Jane  Doe      0  11
John  Smith    2   0
Mary  Johnson  1   0
Posted by: Guest on August-17-2021

Code answers related to "equivalent of spread in R in python"

Python Answers by Framework

Browse Popular Code Answers by Language