Skip to content

Instantly share code, notes, and snippets.

@dradecic
Created September 29, 2019 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dradecic/d3224dfd866d8444fd03cc3cfd4cb526 to your computer and use it in GitHub Desktop.
Save dradecic/d3224dfd866d8444fd03cc3cfd4cb526 to your computer and use it in GitHub Desktop.
recommender_1_obtaining_years
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