100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
OMIS 114 Question and answers rated A+ $12.99   Add to cart

Exam (elaborations)

OMIS 114 Question and answers rated A+

 3 views  0 purchase
  • Course
  • OMIS
  • Institution
  • OMIS

OMIS 114 Question and answers rated A+ OMIS 114 - Quiz 3 pd.DataFrame( {column1 : [], column2 : []} ) - correct answer creates DataFrame from scratch df.Fruit = aFrame( {column1 : [], column2 : []}, index = [row 1, row 2] - correct answer creates DataFrame from scratch and adds rows and ...

[Show more]

Preview 1 out of 3  pages

  • November 5, 2024
  • 3
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • omis 114
  • OMIS
  • OMIS
avatar-seller
Academia199
OMIS 114 - Quiz 3
pd.DataFrame( {column1 : [row1.item], column2 : [row1.item]} ) - correct
answer ✔creates DataFrame from scratch


df.Fruit = aFrame( {column1 : [row1.item], column2 : [row1.item]}, index = [row
1, row 2] - correct answer ✔creates DataFrame from scratch and adds rows
and SAVES IT TO FRUIT DATAFRAME


df.Fruit.to_csv('FILE_NAME') - correct answer ✔writes the file to a .csv file


df = pd.read_csv('students.csv') - correct answer ✔reads the file and assigns
to the df dataframe


df = df.set_index('Name') - correct answer ✔sets index of DataFrame to
"name" column


df.index - correct answer ✔returns the index labels


df.columns - correct answer ✔returns the list of column names (as an index
object)


df.values - correct answer ✔returns a ndarray of values


df.iloc[x ,y] - correct answer ✔access using POSITIONAL INDEX where:
x = info needed to select rows (pos. idx or range of integers)
y = info needed to select columns (pos. idx or range of integers)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Academia199. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67866 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart