Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi This is IMDB dataset from kaggle and im reading someone's code im very confuse by this. What is regular expression? What is compile and
Hi
This is IMDB dataset from kaggle and im reading someone's code
im very confuse by this. What is regular expression?
What is compile and findall doing? (a typical element in the "runtime" col is, for example, 142 min)
What is going on when it comes to appending. it makes no sense. please explain clearly
EDA on IMDB Movies Dataset 1 Notebook Data Logs Comments (5) Ta Alfred Hitchcock Steven Spielberg Hayao Miyazaki Akira Kurosawa Martin Scorsese Stanley Kubrick Mostly Occurred Woody Allen Billy Wilder Clint Eastwood Quentin Tarantino Runtime of the movies In [26] : import re duration=[] for x in data[ "Runtime" ] : p=re.compile('\d+') j=p.findall(x) if len(i)==2: duration.append(int([1])-int([0])+1) else: duration.append(int ( [0])+1) data['duration']=duration In [27]: data['duration').head Out [27] 0 143 1 176 2 153 3 203 4 97 Name: duration, dtype: int64Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started