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
Answer:
same as above....................
Answer:
Written in Python
import math
principal = 8000
rate = 0.025
for i in range(1, 11):
amount = principal + principal * rate
principal = amount
print("Year "+str(i)+": "+str(round(amount,2)))
Explanation:
This line imports math library
import math
This line initializes principal amount to 8000
principal = 8000
This line initializes rate to 0.025
rate = 0.025
The following is an iteration from year 1 to 10
for i in range(1, 11):
This calculates the amount at the end of the year
amount = principal + principal * rate
This calculates the amount at the beginning of the next year
principal = amount
This prints the calculated amount
print("Year "+str(i)+": "+str(round(amount,2)))
Verbal Communication. Verbal communication occurs when we engage in speaking with others. ...
Non-Verbal Communication. What we do while we speak often says more than the actual words. ...
Answer:
0.00452
Explanation:
There are 4 sixes in a deck. So the chance that the first card you draw is a six, is 4/52. Then there are only 3 sixes left and 51 cards. So the chance that the second one is also a six is 3/51.
The combined chance is the multiplication, i.e., 4/52 * 3/51 = 0.00452