Question: se the PaymentMethod column and create a new column named AutoPayment. If the PaymentMethod has the word automatic, make the values in this column 1.
se the PaymentMethod column and create a new column named AutoPayment. If the PaymentMethod has the word automatic, make the values in this column 1. Otherwise, make its values 0. Hints: You will iterate through each observation in the PaymentMethod column to check if that particular observation has the word automatic. If yes, assign 1 to this newly created column. Otherwise, assign 0. This column will tell us if customers do automatic payment. Check Module 1e: String operations. You may need to use a function such as find(). Also check Module 2b: for loops and Module 2e: Conditional Statements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
