1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tamiku [17]
3 years ago
4

Consider a DataFrame named df with columns named P2010, P2011, P2012, P2013, 2014 and P2015 containing float values. We want to

use the apply method to get a new DataFrame named result_df with a new column AVG. The AVG column should average the float values across P2010 to P2015. The apply method should also remove the 6 original columns (P2010 to P2015). For that, what should be the value of x and y in the given code?
Computers and Technology
1 answer:
Kamila [148]3 years ago
7 0

Answer:

x = 1

y = 1

Explanation:

The apply method has the axis argument which enables it to use the applied function either across the rows or columns, by passing the value 1 to the axis argument, the mean of at each index is calculated, (across the column) such that the length of the AVG column is equal to the lengtb of the original dataframe.

The drop method is used in pandas to remove row or column entry from a dataframe. To remove columns from a data table, the value 1 is passed to the axis argument of the drop method. Hence, passing 1 to the axis argument removes all 6 columns leaving only the AVG column in result_df.

You might be interested in
Spencer wants to choose a career path that wouldn’t hold him to an office or laboratory. Which of the following career paths wou
ruslelena [56]
Photography is the best choice but video game designers are also nice
please mark as brainliest
 
5 0
3 years ago
Read 2 more answers
A user launches an application on an Android device. Once the software loads, the user reports that when turning the tablet to w
gtnhenbr [62]

Answer:

The correct answer to the following question will be Option C (The application was not developed to react to changes to the gyroscope).

Explanation:

  • Most of the android devices are enabled with the sensors. Gyroscope is one of them, it rotates the screen accordingly.
  • When the user launches an application on the tablet he or she turns the tablet but the screen doesn't rotate accordingly because the application or software is not enabled to rotate accordingly with the gyroscope. 
  • By measuring the rate of turn around one particular axis, the gyroscope maintains its level of effectiveness. When the rotations around an aircraft's roll axis are measured, an actual value is determined until the object stabilizes.
8 0
3 years ago
Ejemplo la violencia no se combate con violencia
Hatshy [7]

Answer:

ur right violence should not be fought by violence

but sometimes there are problems in the world

that just happens to lead with violence

6 0
3 years ago
Select all the correct answers.
Dvinal [7]

Answer: Avoid forwarding a personal email to others and most likely Avoid forwarding jokes and trivia using email.

8 0
3 years ago
Variables used for input are associated with what controls on a form ?​
zalisa [80]

Answer:

The answer to this question is given below in the explanation section

Explanation:

There are different forms control. for example HTML form controls are:

  • Text Input Controls.
  • Checkboxes Controls.
  • Radio Box Controls.
  • Select Box Controls.
  • File Select boxes.
  • Hidden Controls.
  • Clickable Buttons.
  • Submit and Reset Button.

to take input from the user and store it into the variable, mostly text input form control is used.

however, you can also use text input, checkbox, radio button as a control to take input from the user and store the input value in some variables.

5 0
3 years ago
Other questions:
  • Write the prototype for a function named showValues. It should accept an array of integers and an integer for the array size as
    14·3 answers
  • Which of the following best describes a toolbar?
    9·1 answer
  • How can an administrator force wireless clients to use a standard web browser to provide information, and require a user to agre
    10·1 answer
  • Your teacher needs to keep track of a biology experiment's results for all students, to
    7·2 answers
  • Most of us have been using elements of Web 2.0 without even realizing it.<br> True<br> False
    6·1 answer
  • What are the biggest problems facing the criminal justice system in the area of computer crime
    10·2 answers
  • Give an example of a class and an example of an object. Describe what a class is, what an object is, and how they are related. U
    6·1 answer
  • How to share pictures on brainy ​
    8·1 answer
  • What does this say in morse code?
    11·2 answers
  • Which two features could be added to a game using an "if () then " block
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!