Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Coding
#3
Hi,

(Sep-28-2019, 06:29 AM)buran Wrote: and we don't have idea how you expect to deal with cumulative worldwide gross...

That is a bit harsh, isn't it? Not knowing how an external module works in detail, certainly is not an uncommon thing to happen. This seems especially true for IMDbPY and its rather basic documentation.

(Sep-28-2019, 05:52 AM)anh3phecan Wrote: i have no idea how to deal with cumulative worldwide gross

You probably are having problems because the data set for the key "box office" is not retrieved by default by all IMDbPY methods that provide a movie data set. So you might have to retrieve your data for that move id again.

movie = ia.get_movie(movie.movieID)
This however will retrieve all data in the standard set. Your teacher probably also wants you to do this a performant way. Also note that in the "box office" data set will not always contain a value for a CWG. You will have to deal with that too.

Cheers
zipit
Reply


Messages In This Thread
Python Coding - by anh3phecan - Sep-28-2019, 05:52 AM
RE: Python Coding - by buran - Sep-28-2019, 06:29 AM
RE: Python Coding - by zipit - Sep-28-2019, 01:53 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 07:51 PM
RE: Python Coding - by buran - Sep-28-2019, 08:00 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 09:24 PM
RE: Python Coding - by buran - Sep-29-2019, 07:32 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020