Programming Articles

Page 90 of 2547

Post a picture automatically on Instagram using Python

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 4K+ Views

In today's digital era, Instagram has emerged as a popular platform for sharing special moments and connecting with people. Imagine the ease of automatically posting photos on Instagram without manual effort, all achieved through Python programming. This article guides you through automating Instagram picture posts using Python. We'll explore the instabot library to handle login, image uploads, captions, and logout functionality. What is instabot Library? The instabot library is a third-party Python package that provides a convenient wrapper around Instagram's functionality. It simplifies automation tasks like uploading photos, commenting, liking posts, and managing followers without dealing directly ...

Read More

Plotting World Map Using Pygal in Python

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 4K+ Views

With the help of the Pygal library of Python, we can create stunning world maps in Python as it provides different functions to create and customize the graphs. This article explores the step-by-step process of plotting a world map, customizing the map's style, adding data to highlight countries or regions, and rendering the map to an SVG file. Whether you want to visualize geographic data, showcase international statistics, or create interactive visualizations, Pygal provides a powerful toolset for displaying global information with ease. Prerequisites Before we start, make sure you have Pygal installed ? pip install ...

Read More

Plotting the Growth Curve of Coronavirus in various Countries using Python

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 316 Views

Explore the dynamic world of COVID-19 data through Python as we analyze and visualize the growth curve of the virus in different countries. This tutorial demonstrates how to process COVID-19 data, create interactive visualizations, and generate growth curve plots using Python libraries like pandas and plotly. Overview We will create an interactive graph to visualize the growth of total COVID-19 cases for any country. The program will also display available countries for selection. The dataset can be downloaded from https://ourworldindata.org/. Required Libraries First, let's import the necessary libraries ? import pandas as pd import ...

Read More

Plotting ICMR approved test centers on Google Maps using folium package

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 241 Views

In the quest to combat the COVID-19 pandemic, accurate and accessible information about ICMR-approved test centers is crucial. This can be achieved using Python's folium package to create interactive maps showing test center locations. By combining geospatial data with interactive mapping capabilities, we can help individuals easily locate nearby testing facilities. This article demonstrates how to use the folium package to create dynamic maps, customize markers, and provide informative pop-ups for ICMR-approved test centers. What is Folium? The folium package is a Python library that creates interactive maps using the Leaflet.js JavaScript library. It provides a user-friendly ...

Read More

Python program to print words from a sentence with highest and lowest ASCII value of characters

Divya Sahni
Divya Sahni
Updated on 27-Mar-2026 437 Views

ASCII (American Standard Code for Information Interchange) is a character encoding system that represents every character as a unique 7-bit binary code. ASCII values range from 0 to 127, where each character has a specific numerical representation. For example, the ASCII code for a space character is 32, and for digit '1' it is 49. In Python, you can find the ASCII code of a character using the ord() function, which takes a character as input and returns its ASCII value. For example, ord('A') returns 65. Problem Statement Given a string, find and print the words that ...

Read More

How to Create a Basic Project using MVT in Django?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 630 Views

Django, a popular web framework written in Python, follows the Model−View−Template (MVT) architectural pattern. MVT is a variation of the well−known Model−View−Controller (MVC) pattern and provides a structured approach to building web applications. Understanding how to create a basic project using MVT in Django is a fundamental step toward developing robust and scalable web applications. In this article, we will walk you through the essential steps, from setting up the project to defining models, views, templates, and URL patterns. By following this tutorial, you will gain a solid foundation in Django's MVT pattern and be able to build upon ...

Read More

How to Count Unique Values Inside a List in Python?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 16K+ Views

Python lists are fundamental data structures, and counting unique values within them is a common task in data analysis and processing. This article explores four different approaches to count unique values in a Python list, each with its own advantages depending on your specific needs. Using a Set The simplest method leverages Python's set data structure, which automatically removes duplicates. Converting a list to a set eliminates duplicate values, and len() gives us the count of unique elements. Example # Sample list with duplicates numbers = [1, 2, 3, 3, 4, 5, 5, 6, 7, ...

Read More

How to Count the Number of Rows of a Given SQLite Table Using Python?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 7K+ Views

Counting the number of rows in an SQLite table is a common task in database management. Python's built-in sqlite3 module provides seamless tools for this purpose. In this article, we will explore how to efficiently count rows in an SQLite table using Python, enabling effective data analysis and manipulation. Prerequisites Python comes with sqlite3 built-in, so no additional installation is required. Simply import it in your script ? import sqlite3 Creating a Sample Database Let's first create a sample database with some data to work with ? import sqlite3 ...

Read More

How to Count the Number of Lines in a CSV File in Python?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 13K+ Views

Counting lines in a CSV file is a common task in data analysis. Python provides several approaches using Pandas, from simple DataFrame methods to file-level operations. Prerequisites First, ensure you have Pandas installed ? pip install pandas Sample CSV File Let's create a sample CSV file to work with ? import pandas as pd # Create sample data data = { 'Name': ['Alice', 'Bob', 'Charlie', 'Diana', 'Eve'], 'Age': [25, 30, 35, 28, 32], 'City': ['New York', 'London', 'Tokyo', ...

Read More

How to Count the Frequency of Unique Values in NumPy Array?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 11K+ Views

Analyzing the frequency of unique values within a NumPy array is a common task in data analysis. It provides valuable insights into the distribution and occurrence of elements, enabling effective data exploration and preprocessing. In this article, we will explore various methods to count the frequency of unique values in NumPy arrays using built-in NumPy functions and external libraries. Method 1: Using np.unique() Function NumPy provides the np.unique() function, which returns the sorted unique elements of an array. By specifying the return_counts=True parameter, it also returns the count of each unique element ? import numpy as ...

Read More
Showing 891–900 of 25,466 articles
« Prev 1 88 89 90 91 92 2547 Next »
Advertisements