Python - Basic Articles
In this post, we will see how to find the memory size of a NumPy array. So for finding the memory size of a NumPy… Read More
Prerequisites: Find current weather of any city using openweathermap API The idea of this article is to provide a simple GUI application to users to… Read More
Let’s see the program for getting all 2D diagonals of a 3D NumPy array. So, for this we are using numpy.diagonal() function of NumPy library.… Read More
For plotting graphs in Python, we will use the Matplotlib library. Matplotlib is used along with NumPy data to plot any type of graph. From… Read More
Let us see how to compute matrix multiplication with NumPy. We will be using the numpy.dot() method to find the product of 2 matrices. For… Read More
Numpy library gives us functions such as real() and imag() to find real and imaginary parts of a complex number.  real() : To find real… Read More
Unlike other languages Java, C++, etc. Python is a strongly, dynamically-typed language in which we don’t have to specify the data type of the function’s… Read More
In this article, we are going to learn how to set up a simple and local HTTP server using Python. An HTTP server can be… Read More
Are you bored with sending birthday wishes to your friends or do you forget to send wishes to your friends or do you want to… Read More
Given a String, convert its characters to unicode characters. Input : test_str = ‘gfg’  Output : \u0067\u0066\u0067  Explanation : Result changed to unicoded string.  Input… Read More
Given a List, extract all elements whose frequency is greater than K. Input : test_list = [4, 6, 4, 3, 3, 4, 3, 4, 3,… Read More
This article will explore the process to create new tables in the PostgreSQL database using Python. Steps for creating PostgreSQL tables in Python To create… Read More
Given a string s, the task is to encrypt the string in the following way. Let the string be “apple”. Step 1: Reverse the input:… Read More
Let us see how we can replace the column value of a CSV file in Python. CSV file is nothing but a comma-delimited file. Method… Read More
Sometimes we need an Excel file for reporting, so as a coder we will see how to export Pandas DataFrame to an Excel file. The… Read More
EOFError is raised when one of the built-in functions input() or raw_input() hits an end-of-file condition (EOF) without reading any data. This error is sometimes… Read More
re.MatchObject.span() method returns a tuple containing starting and ending index of the matched string. If group did not contribute to the match it returns(-1,-1). Syntax:… Read More
Python offers numerous inbuilt libraries to ease our work. Among them pywhatkit is a Python library for sending WhatsApp messages at a certain time, it… Read More
While working with NumPy, you might have seen some functions return the copy whereas some functions return the view. The main difference between copy and… Read More
  Django provides us Admin Panel for it’s users. So we need not worry about creating a separate Admin page or providing authentication feature as… Read More