Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can I make this table in a way that Nan values will be replaced by stored values in first column ? import pandas as

image text in transcribedHow can I make this table in a way that Nan values will be replaced by stored values in first column ?

import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd. read_csv('imdb.csv', error_bad_lines = false) df vected 2 fields, saw 45 skipping line 148972: expected 22 fields, saw 39 skipping line 149180: expected 22 fields, saw 46 skipping line 150004: expected 22 fields, saw 42 skipping line 150132: expected 22 fields, saw 50 skipping line 150536: e pected 22 fields, saw 47 skipping line 150649: expected 22 fields, saw 53 skipping line 151495: expected 22 fields, saw 47 Skipping line 151693: expected 22 fields, saw 43 skipping line 152363: expected 22 fields, saw 47 skipping line 153946: e vected 22 fields, saw 49 skipping line 155915: expected 22 fields, saw 49 skipping line 156215: expected 22 fields, saw 54 11 duration country language director actors description : 0 Nan NaN NaN imdb_title_id title original_title year date_published genre tt0000009, Miss Jerry, Miss NaN Jerry, 1894 1894-10-... NaN NaN NaN tt0000574 The Story of the Kelly Gang, The NaN NaN NaN NaN NaN NaN NaN NaN 1 NaN Stor... NaN NaN NaN NaN NaN NaN 2 tt0001892,Den sorte drm. Den sorte drom, 1911,1... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 3 tt0002101, Cleopatra, Cleopatra, 1912,1912- 11-13,.. NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Hnnn2120 I Infarna I 'Infarna 1011 1011

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

What are the four types of research used in advertising evaluation?

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago

Question

=+j Describe how EU directives impact IHRM.

Answered: 1 week ago