Created
September 29, 2019 10:21
-
-
Save dradecic/d3224dfd866d8444fd03cc3cfd4cb526 to your computer and use it in GitHub Desktop.
recommender_1_obtaining_years
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
years = [] | |
for title in data['title']: | |
year_subset = title[-5:-1] | |
try: years.append(int(year_subset)) | |
except: years.append(9999) | |
data['moviePubYear'] = years | |
print(len(data[data['moviePubYear'] == 9999])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment