Last active
January 4, 2022 22:47
-
-
Save youssefHosni/3907733e225adaca21f9b74df7e8f653 to your computer and use it in GitHub Desktop.
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
demographics_df.drop(['Category', 'Topic'], axis=1 ,inplace=True) # droping categorey and topic columns | |
demographics_df = demographics_df.T | |
demographics_df = demographics_df.rename(columns=demographics_df.iloc[0]).drop(demographics_df.index[0]) | |
demographics_df = demographics_df.reset_index().rename(columns={'index':'Neighborhood'}) | |
demographics_df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment