Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer Science – Data Frames

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
09-09-2024
Written in
2024/2025

Computer Science – Data Frames – 12 Viva Questions with Answers - 2 Pages – Helpful for Students and Teachers

Institution
Course

Content preview

DataFrames | Vineeta Garg


DATAFRAMES
VIVA QUESTIONS


1. What is a DataFrame?
A DataFrame is a 2D labeled heterogeneous, data-mutable and size-mutable
array. The data in DataFrame is aligned in a tabular fashion in rows and
columns therefore has both a row and column labels.

2. What is a difference between DataFrames and Numpy Array?
The basic difference between a Numpy array and a Dataframe is that Numpy
array contains homogenous data while Dataframe contains heterogenous data.


3. How can we create customized labels in DataFrames?
The index and columns parameters can be used to change the default row and
column labels.

4. What happens when list of dictionaries is used to create a
DataFrame?
The dictionary keys are treated as column labels and row labels take default
values starting from zero. The values corresponding to each key are treated as
rows. The number of rows is equal to the number of dictionaries present in the
list.

5. What values are filled in the dataFrame for missing keys?
NaN

6. What happens when you try to add a column by the label which
already exist?
If the column already exists by the same label then the values of that column
are updated by the new values.

7. Name the method which is used to add a new row and column.
loc() method

8. Name the method which is used to delete a row/column?
DataFrame.drop() method

9. Name the method is used to rename the labels of rows and columns
in a DataFrame.
DataFrame.rename() method
The parameter axis=columns to reset column labels and axis=index to
reset row labels.

10. What is the difference between loc() and iloc() methods?


1

Written for

Institution
Secondary school
School year
5

Document information

Uploaded on
September 9, 2024
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kbzone

Get to know the seller

Seller avatar
kbzone ICSE
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
284
Last sold
-
Notes On All Subjects

A Store where Notes, Presentations, Questions & Answers, Classnotes, Study mqaterials and Studyguides are available at a very nominal preice. The notes are very useful for both the Students and Teachers.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions