Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pd df pivot table

table = pd.pivot_table(df, values='D', index=['A', 'B'],
...                     columns=['C'], aggfunc=np.sum, fill_value=0)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pd #df #pivot #table
ADD COMMENT
Topic
Name
6+1 =