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
Luda [366]
2 years ago
8

Create a new data frame, first_south, by subsetting titanic to include instances where a passenger is in the first class cabin (

pclass column is 1) and boarded from Southampton (embarked column is S).
Computers and Technology
1 answer:
Virty [35]2 years ago
4 0

The data frame first_south is created using first_south = (titanic['Pclass']==1) & (titanic['Embarked']=='S')

<h3>How to create the data frame?</h3>

To do this, we make the following assumptions:

  • The pandas module has been loaded as pd
  • The dataset has also been loaded as titanic

When pclass column is 1.

This is represented as:

titanic['pclass']==1

When the passenger boards from Southampton.

This is represented as:

titanic['Embarked']=='S'

So, we have:

first_south = (titanic['Pclass']==1) & (titanic['Embarked']=='S')

Read more about data frames at:

brainly.com/question/16524297

#SPJ1

You might be interested in
Why can't I register for Brainly?? I've been trying for months, too! I've noticed this question has been asked so many times, bu
Alenkasestr [34]

Answer:

Just click view profile and go to preferences

Heres a screenshot :

4 0
3 years ago
Given an int variable k that has already been declared, write some code that uses a for loop to print a single line consisting o
yawa3891 [41]

Answer:

The program to the given statement can be defined as follows:

Program:

//header file

#include <stdio.h> //defining header file

int main() //defining main method

{

int k; //defining integer variable k

for (k=1;k<=97;k++) //defining for loop

{

printf("*"); //print value asterisks

}

return 0;

}

Output:

*************************************************************************************************

Explanation:

Firstly, the headers file is included in the above C-language, and then the main method is described and all computations are performed with this method, which can be described as follows:

  • Inside the main method, an integer variable k is declared.
  • In the next line, the for loop is declared, which uses the variable k, which starts from 1 and ends when the value of k is less than equal to 97, inside the loop, it will print asterisks.
6 0
3 years ago
"An Infrastructure as a Service provider shares its computing resources between a number of different clients, each of whom has
arlik [135]

Answer:

Elasticity

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

Cloud computing comprises of three (3) service models and these are;

1. Platform as a Service (PaaS).

2. Software as a Service (SaaS).

3. Infrastructure as a Service (IaaS).

An Infrastructure as a service (IaaS) provides virtualized computing resources for end users over the internet. For example, the provisioning of On-demand computing resources such as storage, network, virtual machines (VMs) etc., so as to enable the end users install various software applications or programs, database and servers.

Elasticity simply means that cloud computing gives an end user the ability to expand and reduce resources according to his or her specific service requirement because resources such as servers can be used to execute a particular task and after completion, these resources can then be released or reduced.

Hence, the Cloud computing concept which is illustrated in this scenario is elasticity

4 0
3 years ago
Give examples of keyboard shortcuts and what they do/mean.
pshichka [43]
Ctrl-alt-del=opens up windows task manager
8 0
3 years ago
How does the game Clash Royale keep players continuously active and engaged?
lana [24]

Answer: a

Explanation: because they have to beat and check the players to move on

4 0
4 years ago
Other questions:
  • _____ is a valuable tool that enables you to find information on the web by specifying words or phrases know as keywords- which
    14·1 answer
  • Explain the design and development proccess?
    15·1 answer
  • Illustrate the process of using an operating system to manipulate a computer’s desktop, files and disks.
    12·1 answer
  • How can people make sure they are using credit cards responsibly
    14·2 answers
  • 16235 to the nearest ten thousand
    13·2 answers
  • Please fill these out. I really need this done.
    5·1 answer
  • Write a Java program that prompts the user for an int n. You can assume that 1 ≤ n ≤ 9. Your program should use embedded for loo
    5·1 answer
  • Write a program using integers userNum and divNum as input, and output userNum divided by divNum three times.
    7·1 answer
  • Who plays Counter blox or counter strike
    7·2 answers
  • Which would you use to get the number of elements in a dictionary?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!