Computer Science, asked by rahulgoyat14, 7 months ago

what function is used To iterate over horizontal subsets of dataframe

Answers

Answered by Anonymous
12

Answer:

Hey mate

It yields an iterator which can can be used to iterate over all the columns of a dataframe. For each column in the Dataframe it returns an iterator to the tuple containing the column name and column contents as series.

Hope you like it..

Answered by shkulsum3
0

The iterrows ( ) function in Pandas is used to iterate over horizontal subsets of a dataframe.

This function returns a series for each row, with the index and row data as a pandas Series object. The basic syntax for using iterrows() is as follows:

for index, row in df.iterrows():

   # code to access data for each row

Here, df is the name of the dataframe, index is the index label for each row, and row is the data for each row, represented as a series. iterrows() can be useful for performing operations on each row of a dataframe, such as accessing and manipulating the data in each row.

Learn more about similar questions visit:

brainly.in/question/40861849

brainly.in/question/6536248

#SPJ3

Similar questions