Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started