Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lab-customer-analysis-round-1]Pedro #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pedro-gui-afonso
Copy link

No description provided.

@pt-data-ta-lis
Copy link

Good Job!

Comments:

  • Rearrange the columns in the dataframe as needed
    tab2_data = tab2_data[tab1_data.columns]
    tab3_data = tab3_data[tab1_data.columns]

  • Which columns are numerical?
    datatotal_data.select_dtypes('float')

  • Which columns are categorial?
    datatotal_data.select_dtypes('object')

  • Filter out the data for customers who have an income of 0 or less
    The logic is right, but it was intendend to take out who has an income of 0 or less so that the final data frame shows only who has a positive income. The condition should be:
    datatotal_data[datatotal_data['income'] > 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants