Google News
logo
Pandas - Interview Questions
Explain pivot_table() in pandas.
When data from a very large table needs to be summarised in a very sophisticated manner so that they can be easily understood then pivot tables is a prompt choice. The summarization can be upon a variety of statistical concepts like sums, averages, etc. for designing these pivot tables from a pandas perspective the pivot_table() method in pandas library can be used. This is an effective method for drafting these pivot tables in pandas.
 
Syntax : pandas.pivot_table(data, values=None, index=None, columns=None, aggfunc='mean', fill_value=None, margins=False, dropna=True, margins_name='All', observed=False)
Advertisement