Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer science, python 2.3) (6 points) Suppose that we define a dataframe as shown below: people- + 1d1.2.3.4.5.6.71 first [A1. Helis. None, Mahn'ot. Vell. Ein'.

Computer science, python
image text in transcribed
2.3) (6 points) Suppose that we define a dataframe as shown below: people- + 1d1.2.3.4.5.6.71 first [A1. Helis. None, Mahn'ot. "Vell. Ein'. 'Aysel. ust' [+Gene'. 'Sen'. "Yilsa. Kacar. None None. 'Yawar) 3 df - pd. DataFrame (people) 2.3a [3 points]) Complete the one line code below to drop rows which contain any missing values: dfdf..... 2.3b (3 points]) After dropping which values in thd id column will be kept? 2.4 ) [4 points) Give a regular expression that can extract Visa and Mastercard credit card numbers frou a string. A Visa credit card number is any sequence of 16 digits that starts with a 4, and a Mastercard any sequence of 15 digits that starts with 5. Assume there are no dashes or other extra characters in a crec card number. For example, your regex should match 4123713131673827 and 5612512165638672. Just g the regex pattern, no need to write regex functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

=+free to pirate employees from competitors?

Answered: 1 week ago