Niharika Aitam has Published 172 Articles

Python program to calculate age in year

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 14:20:56

16K+ Views

Generally, the age of a person is calculated by subtracting the birth year with the current year then the age of the person will be generated in years. In the same way we can calculate the age of a person by using the python modules datetime, dateutil and timedelta. General ... Read More

Python program to calculate acceleration, final velocity, initial velocity and time

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 14:17:19

2K+ Views

Acceleration, final velocity, initial velocity and time are the terms related to physical science which are widely used to study the motion and mechanics. Let’s see each one in detail. Acceleration Acceleration is the rate at which an object changes its velocity over the given time. It is denoted ... Read More

Profiling in Python

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 14:14:53

220 Views

In Python profiling is the measure of performance of different parts of a program to check and identify the areas of optimization and bottlenecks. We have many tools to perform profiling for the python code which includes built in modules, libraries and IDEs (Integrated development environments). There are different types ... Read More

Profile Application using Python Flask and MySQL

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 14:12:47

349 Views

Flask is one of the web frameworks which provide libraries to build light weight web applications in python. It is a micro framework, developed by Armin Ronacher who runs an international group of python enthusiasts (POCCO). Flask works on WSGI toolkit and jinja2 template engines. For creating the profile application ... Read More

ProcessPoolExecutor Class in Python

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 14:07:03

219 Views

The ProcessPoolExecutor class in python is part of the concurrent.futures module, is a high level interface for asynchronously executing functions using the processes and threads. The ProcessPoolExecutor allows us to execute the multiple functions in parallel using the multiple processes, which is particularly useful to CPU bound tasks that benefit ... Read More

Priority Queue using Queue and Heapdict module in Python

Niharika Aitam

Niharika Aitam

Updated on 19-Oct-2023 11:45:08

469 Views

The priority Queue is the abstract data type which is similar to the queue or stack, in which each element is attached with a priority. Here the priority determines the order of the elements to be dequeued from the queue and the higher priority elements are dequeued before the elements ... Read More

How to check for a substring in a PySpark dataframe?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 16:01:28

4K+ Views

Pyspark is the library which provides the interface to Apache spark. The Apache spark is the distributed computing system to process the large datasets. We have the feasibility in pyspark to write the spark applications using python apart of the traditional languages Java and Scala. Verifying for a ... Read More

How to check horoscope using Python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 16:00:18

221 Views

Checking horoscope using Python Python is used in many applications all over the world. One of the applications is to check the horoscope on that day or day after using the Beautifulsoup of the python language. The following are the steps to be followed to check the horoscope using python. ... Read More

How to check if the PyMongo Cursor is Empty?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:41:50

2K+ Views

PyMongo is one of the libraries in python which provides a way to interact with the MongoDB , the most popular NoSQL document oriented database. It allows the developers to easily connect with the mongoDB instances and interact with the databases and collections, insert and retrieve the documents and other ... Read More

How to check whether user's internet is on or off using Python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:40:38

14K+ Views

Generally, if you need to verify whether your current system is connected to the internet or not, we can do so, by simply sending request to any of webserver application using the browser or, using the dos command ping. The ping command is typically used to troubleshoot connectivity, reachability, ... Read More

Previous 1 ... 6 7 8 9 10 ... 18 Next
Advertisements