Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishnan Sanjay
/
cmsc13600-public
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fcc1418b
authored
May 26, 2020
by
Krishnan Sanjay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update core.py
parent
d4e2575b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
hw5/core.py
hw5/core.py
View file @
fcc1418b
...
@@ -8,7 +8,7 @@ import os
...
@@ -8,7 +8,7 @@ import os
import
json
import
json
def
imdb_title_words
():
def
imdb_title_words
():
f
=
open
(
'title.csv'
,
'r'
)
f
=
open
(
'title.csv'
,
'r'
,
errors
=
'replace'
)
line
=
f
.
readline
()
line
=
f
.
readline
()
while
line
!=
""
:
while
line
!=
""
:
...
@@ -22,7 +22,7 @@ def imdb_title_words():
...
@@ -22,7 +22,7 @@ def imdb_title_words():
f
.
close
()
f
.
close
()
def
imdb_years
():
def
imdb_years
():
f
=
open
(
'title.csv'
,
'r'
)
f
=
open
(
'title.csv'
,
'r'
,
errors
=
'replace'
)
line
=
f
.
readline
()
line
=
f
.
readline
()
while
line
!=
""
:
while
line
!=
""
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment