Data Science

Beschreibung

Karteikarten am Data Science, erstellt von Skye Long am 24/02/2020.
Skye Long
Karteikarten von Skye Long, aktualisiert more than 1 year ago
Skye Long
Erstellt von Skye Long vor mehr als 4 Jahre
1
0

Zusammenfassung der Ressource

Frage Antworten
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])
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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