Data Science

Description

Flashcards on Data Science, created by Skye Long on 24/02/2020.
Skye Long
Flashcards by Skye Long, updated more than 1 year ago
Skye Long
Created by Skye Long over 4 years ago
1
0

Resource summary

Question Answer
Write a function to check the age of a user. If they are over 13 print: “Welcome to the site!” other wise print ‘Sorry you are too young to Enter this site.’ age_check = lambda x: 'Welcome to the site! if age > 13 else 'Sorry you are too young to enter this site.
Add a new column to the df 'customers' that takes the area code from the column 'phone. the format of 'phone is '413-345-0795 customers['area_code'] = customers.phone_number.apply(lambda x: x.split('-')[0])
Show full summary Hide full summary

Similar

Basic Python - Lists
Rebecca Noel
Python
Jay Prakash
Computer Science
Bayram Annanurov
Top 5 Data Science Certifications In-demand By Fortune 500 Firms in 2022
Data science council of America
Top 5 Data Science Certifications In-demand By Fortune 500 Firms in 2022
Data science council of America
Skewed Distributions in Data Science.
Vishakha Achmare
Sampling Techniques In Data Science
Vishakha Achmare
Inferential Statistics for Data Science
Vishakha Achmare
Descriptive Statistics for Data Science
Vishakha Achmare
Logistic regression
Vishakha Achmare
Linear Regression
Vishakha Achmare