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

[customer-analysis-1] Laura #37

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

Conversation

jantzla
Copy link

@jantzla jantzla commented Oct 12, 2023

No description provided.

@pt-data-ta-lis
Copy link

Good Job!

Comments:

  • Show the DataFrame's shape.
    df1.shape
    df2.shape
    df3.shape

  • Rearrange the columns in the dataframe as needed
    df2 = df2[df1.columns.columns]
    df3 = df3[df1.columns.columns]

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

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

  • Correct the values in the column customer_lifetime_value. They are given as percent, so multiply them by 100 and change dtype to numerical type
    concate_data['customer_lifetime_value'] = concate_data['customer_lifetime_value'].str.replace('%','')
    concate_data['customer_lifetime_value'] = pd.to_numeric(concate_data['customer_lifetime_value'], errors='coerce')*100

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