Created
April 4, 2019 00:18
-
-
Save JohnDeJesus22/658b2b02f80fb04c310219b7b06833a7 to your computer and use it in GitHub Desktop.
Medium web scrap p5
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
# Search for sum of duplicate | |
print(df.duplicated(['Teacher_Names']).sum()) | |
# Eliminating duplicates | |
df.drop_duplicates(['Teacher_Names'], keep='first', inplace=True) | |
# Export to csv without numbered indices | |
df.to_csv('BronxSchoolStaffInfo.csv', index=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment