This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# picking columns that are more relevant | |
github_df = github_data_df[['topic','name','user','star','fork','watch','issue','pull_requests','topic_tag','commits','contributers']] | |
# pass a dictionary with old column names as key and new names as values to rename function | |
new_names = ['Topic','Repo_Name','User_Name','Star','Fork','Watch','Issues','Pull_Requests','Topic_Tags','Commits','Contributors'] | |
old_names = github_df.columns | |
github_df = github_df.rename(columns=dict(zip(old_names, new_names))) | |
# a peek into the dataframe | |
github_df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment