Missing values is a very big problem in data science projects. Missing values can occur when no information is provided for one or more items or for a whole unit. It is necessary to find out whether there are missings. The …
LCM (Least Common Multiple) of two numbers is the smallest number which can be divided by both numbers. Below is the program to find LCM of two numbers: Output:
In this article, we will learn to find the factorial of a number. The factorial of a number is the product of all the integers from 1 to that number. For example, the factorial of 6 is 1*2*3*4*5*6 = 720. Factorial is not defined for negative numbers, and …
In this article, we will see how to find average of list in Python. An average is a value that represents a whole set of data items or elements. Average can be found using the following formula: Average = summation …
PDF(Portable Document Format) is one of the most popular and widely used digital media. In this article, we will see how to extract text from a pdf file in Python. For that, we are using a third-party Python module PyPDF2. …
In this article, we will learn to extract data from Facebook using Python. Data on Facebook is represented using the ‘graph’. To interact with a graph we use an HTTPS-based API called the Graph API. Node, edge and fields are …
DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. This is similar to a spreadsheet or SQL table, or a dict of Series objects. A Comma Separated Values (CSV) file is a plain text file that contains a list …
In this article, we will see some of the exit commands in Python. The functions quit(), exit() and sys.exit() have the almost same functionality. They raise the SystemExit exception by which the Python interpreter exits and no stack traceback is printed. quit() It works only …
In this article, we will see how to end for loop in Python. In Python, break and continue statements can alter the flow of a normal loop. This break statement can also be used for ending for loop. Let’s see how this is done. …
In this article, let’s discuss how to drop multiple columns in Python. We are using Pandas Dataframe for demonstrating this. First lets create a dummy dataframe. Output: So now we’ve got the dataframe. We can use Pandas drop() function to …