89% found this document useful (9 votes)
22K views

Python Viva Quesions

Pandas is a Python library for data manipulation and analysis, Numpy is a library for multidimensional arrays and mathematical operations on arrays, and CSV files can be opened in Python using the open() and csv.read() functions. Lists are mutable ordered sequences that store items and are defined with square brackets, while tuples are similar but immutable. Dictionaries store data in key-value pairs and are ordered but changeable collections that do not allow duplicates.

Uploaded by

Raj Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
89% found this document useful (9 votes)
22K views

Python Viva Quesions

Pandas is a Python library for data manipulation and analysis, Numpy is a library for multidimensional arrays and mathematical operations on arrays, and CSV files can be opened in Python using the open() and csv.read() functions. Lists are mutable ordered sequences that store items and are defined with square brackets, while tuples are similar but immutable. Dictionaries store data in key-value pairs and are ordered but changeable collections that do not allow duplicates.

Uploaded by

Raj Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

What is pandas?

Pandas is a software library written for python for data manipulation and analysis.

What is numpy?

Numpy stands for numerical python, is a library consisting of multidimensional array objects and a
collection of routines for processing those arrays. Mathematical and logical operations on arrays can
be performed.

How can a csv file open in python?

Csv file in reading mode is using open() function. Then the csv.read() is used to read the file.

What is list in python?

A list is a data structure in python that is mutable or changeable, ordered sequence of elements.

List is defined by having values between square brackets.

What is list used for in python?

List is used for storing an ordered collection of items.

A list can be used for sorting items, deleting and adding items.

What is a tuple in python?

In python a tuple is similar to list except that the objects in tuple are immutable. We cannot change
the elements of a tuple once assigned.

What is dictionary in python?

A dictionary is a collection which is ordered, changeable and does not allow duplicates.

A dictionary is used to store data values in key:value pairs.

List and tuple difference?

List is mutable

Tuple is immutable

Lists consumes more memory.

Tuple consumes less memory.

A list has a variable size

A tuple has a fixed size.

What is namespace in python?

A namespace is a naming system used to make sure that names are unique to avoid naming
conflicts.

Difference in arrays and lists?

Arrays can hold only same type of data elements.


Lists can hold any type of data elements.

What is function in python?

A function is a block of code which is executed only when it is called.

What is lambda function?

Lambda function is a singe line function declared with no name that can have any number of
parameters but can have just one statement.

What is __init___?

Init is a method or constructor in python. This method is automatically called to allocate memory
when a new object is created.

What are python iterators?

Iterators are objects which can be traversed through.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy