-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdata_processing.py
More file actions
47 lines (33 loc) · 1.13 KB
/
data_processing.py
File metadata and controls
47 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
def extract_movie_type(entry: str) -> str:
"""Extract the type of the movie from the entry
Args:
entry (str): the entry from which to extract the type
Returns:
str: the type of the movie
"""
pass # Add implementation here
def extract_duration_period(entry: str) -> tuple:
"""Extract the duration of the movie from the entry
Args:
entry (str): the entry from which to extract the duration
Returns:
tuple: the duration of the movie
"""
pass # Add implementation here
def extract_name(entry: str, movie_type="Unknown") -> str:
"""Extract the name of the movie from the entry
Args:
entry (str): the entry from which to extract the name
movie_type (str): the type of the movie
Returns:
str: the name of the movie
"""
pass # Add implementation here
def extract_genre(entry: str) -> str:
"""Extract the genre of the movie from the entry
Args:
entry (str): the entry from which to extract the genre
Returns:
str: the genre of the movie
"""
pass # Add implementation here