Computer Science, asked by swathi7050, 10 months ago


method in Pandas can be used to change
the index of rows and columns of a Series or Dataframe .
Is it ignore_index
or set_index or some other ans??​

Answers

Answered by Shrideepthi
1

Answer:

Reset the index of the DataFrame, and use the default one instead. If the DataFrame has a MultiIndex, this method can remove one or more levels. ... Change to same indices as other DataFrame.

Explanation:

To set a column as index for a DataFrame, use DataFrame. set_index() function, with the column name passed as argument. You can also setup MultiIndex with multiple columns in the index. In this case, pass the array of column names required for index, to set_index() method.

hope it may helps you.....

Answered by GodSun
0

Answer:

unknown

Explanation:

not know

Similar questions