Vikram Chiluka has Published 249 Articles

How do I prepare for a Python interview?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 12:24:14

337 Views

Python is a powerful general-purpose interpreted programming language. In this article, we will go over how to prepare for a Python developer job interview by going over some of the major topics you must prepare for. Steps to Prepare for Python Interview 1)Review Data Structures and Algorithms(DSA) in Python if ... Read More

Difference between data frames and matrices in Python Pandas?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 12:14:17

4K+ Views

In this article, we will show you the differences between dataframe and matrices in python pandas. Both dataframes and matrices are 2-dimensional data structures. In general, dataframes can include multiple types of data (numeric, character, factor, etc) while matrices can only store one type of data. Dataframe in Python In ... Read More

Examples of runtime errors in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 12:03:56

12K+ Views

In this article, we will look at some examples of runtime errors in Python Programming Language Runtime Errors A runtime error in a program is one that occurs after the program has been successfully compiled. The Python interpreter will run a program if it is syntactically correct (free of ... Read More

How to select elements from Numpy array in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 11:38:25

19K+ Views

In this article, we will show you how to select elements from a NumPy array in python. Numpy Array in Python A NumPy array is a central data structure of the NumPy library, as the name implies. The name of the library is an abbreviation for "Numeric Python" or "Numerical ... Read More

How to invert a matrix or nArray in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 11:25:00

22K+ Views

In this article, we will show you how to calculate the inverse of a matrix or ndArray using NumPy library in python. What is inverse of a matrix? The inverse of a matrix is such that if it is multiplied by the original matrix, it results in an identity matrix. ... Read More

How to Flatten a Matrix using numpy in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 31-Oct-2022 11:21:45

4K+ Views

In this article, we will show you how to flatten a matrix using the NumPy library in python. numpy.ndarray.flatten() function The numpy module includes a function called numpy.ndarray.flatten() that returns a one-dimensional copy of the array rather than a two-dimensional or multi-dimensional array. In simple words, we can say that ... Read More

How to randomly select an item from a tuple in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Oct-2022 11:37:12

6K+ Views

In this article, we will show you how to randomly select an item from a tuple using python. Below are the various methods in python to accomplish this task: Using random.choice() method Using random.randrange() method Using random.randint() method Using random.random() Using random.sample() method Using random.choices() method Assume ... Read More

How to do Python math at command line?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Oct-2022 11:29:37

2K+ Views

In this article, we will show you how to do python math at the command line. Python is an interpreter-based language. When you invoke the Python interpreter, (>>>) Python prompt appears. Any Python statement can be entered in front of it. As soon as you press ENTER, the statement ... Read More

How to randomly select an item from a string in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 27-Oct-2022 13:08:03

10K+ Views

In this article, we will show you how to randomly select an item from a string using python. Below are the various methods in python to accomplish this task − Using random.choice() method Using random.randrange() method Using random.randint() method Using random.random() Using random.sample() method Using random.choices() method Assume ... Read More

How to pick a random number not in a list in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 27-Oct-2022 12:44:48

2K+ Views

In this article, we will show you how to pick a random number not in a list in python. Below are the various methods to accomplish this task − Using random.choice() function Using random.choice() function and List Comprehension Using random.choice() & set() functions Using random.randrange() function Using random.choice() ... Read More

Advertisements