Python Viva Quesions
Python Viva Quesions
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.
Csv file in reading mode is using open() function. Then the csv.read() is used to read the file.
A list is a data structure in python that is mutable or changeable, ordered sequence of elements.
A list can be used for sorting items, deleting and adding items.
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.
A dictionary is a collection which is ordered, changeable and does not allow duplicates.
List is mutable
Tuple is immutable
A namespace is a naming system used to make sure that names are unique to avoid naming
conflicts.
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.