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
C. system software
if it means drivers and so on
sales = float(input("Enter monthly sales amount: $"))
commission = 0.05
if sales> 500000:
commission = 0.1
print("You earned: $"+str(sales*commission))
I wrote my code in python 3.8. I hope this helps.
Formatting that is selected for each cell individually related to a specific condition