Columns: Whatever you pass to this argument will become a column in your resulting table.
Index: whatever you pass to this argument will become an index in your resulting table.
9 questions · timed · auto-graded
Columns: Whatever you pass to this argument will become a column in your resulting table.
Index: whatever you pass to this argument will become an index in your resulting table.
Row and column selection
We can select any row and column of the DataFrame by passing the name of the rows and columns. When you select it from the DataFrame, it becomes onedimensional and considered as Series.
Filter Data
We can filter the data by providing some of the boolean expressions in DataFrame.
Null values
A Null value occurs when no data is provided to the items. The various columns may contain no values, which are usually represented as NaN.
• By label
• By Actual value
By label
The DataFrame can be sorted by using the sort_index() method. It can be done by passing the axis arguments and the order of sorting. The sorting is done on row labels in ascending order by default.
By Actual Value
It is another kind through which sorting can be performed in the DataFrame. Like index sorting, sort_values() is a method for sorting the values.
It also provides a feature in which we can specify the column name of the DataFrame with which values are to be sorted. It is done by passing the 'by' argument.