Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON Pandas DataFrame I've just cleaned a database, filtered potentially redundant information. Now, I am trying to store the modifed data in a Pandas DataFrame

PYTHON Pandas DataFrame

I've just cleaned a database, filtered potentially redundant information. Now, I am trying to store the modifed data in a Pandas DataFrame called dfBabies. This is all on jupyter notebook. If you need more clarity, please ask.

so far, this is what i have.

df = pd.read_csv("https://www.stat.berkeley.edu/~statlabs/data/babies.data", delim_whitespace=True) df.head(10) # simply calling and reading the database

df[(df.smoke != 9) & (df.weight != 999) & (df.height != 99) & (df.parity != 9) & (df.gestation != 999) & (df.bwt != 999)] #Modification

Thank yoU!

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

2. How can competencies be used in employee development?

Answered: 1 week ago