Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Tamoghna Das
Page 2 of 3
Create a plot with Multiple Glyphs using Python Bokeh
Bokeh is a powerful data visualization library in Python that helps create interactive visualizations for web browsers. One of Bokeh's key features is the ability to combine multiple glyphs (visual markers like circles, lines, squares) in a single plot to display different data series effectively. What are Glyphs in Bokeh? In Bokeh, glyphs are the visual building blocks used to represent data points. Common glyphs include circles, lines, squares, triangles, and bars. Each glyph type serves different visualization purposes: Circles − Best for scatter plots and point data Lines − Ideal for time series and continuous ...
Read MoreCreating a PySpark DataFrame
PySpark is a powerful Python API for Apache Spark that enables distributed data processing. The DataFrame is a fundamental data structure in PySpark, providing a structured way to work with large datasets across multiple machines. What is PySpark and Its Key Advantages? PySpark combines Python's simplicity with Apache Spark's distributed computing capabilities. Key advantages include − Scalability − Handle large datasets and scale up or down based on processing needs Speed − Fast data processing through in-memory computation and parallel execution Fault tolerance − Automatic recovery from hardware or software failures Flexibility − Support for batch ...
Read MoreCreating a simple Range Slider in Bokeh
Bokeh is a powerful data visualization library in Python that helps create interactive and unique visualizations for the web. A RangeSlider widget allows users to select a range of values interactively, making it useful for filtering data or controlling plot parameters. This tutorial will guide you through creating a simple range slider in Bokeh. Key Benefits of Range Slider Interactive − RangeSlider provides an interactive way for users to adjust the range of a plot, which can be particularly useful for exploring data and identifying trends. Range control − The RangeSlider allows users to control the range ...
Read MoreCreate a Pandas DataFrame from lists
A Pandas DataFrame is a two-dimensional table-like data structure with labeled rows and columns. Creating DataFrames from lists is one of the most fundamental operations in pandas, allowing you to transform Python lists into structured data for analysis. This article demonstrates various methods to create pandas DataFrames from lists with practical examples. Basic DataFrame Creation from a Single List The simplest way to create a DataFrame is from a single list − import pandas as pd names = ['Alice', 'Bob', 'Charlie', 'Diana'] df = pd.DataFrame(names, columns=['Name']) print(df) ...
Read MoreCreate a GUI to extract information from VIN number Using Python
A Vehicle Identification Number (VIN) is a unique 17-digit code assigned to every vehicle manufactured after 1981. It contains information about the vehicle's make, model, year of manufacture, country of origin, and other relevant details. In this tutorial, we will create a Graphical User Interface (GUI) using Python's Tkinter library to extract and display vehicle information from a VIN number. Prerequisites Before creating the GUI, you should have basic understanding of: Python programming fundamentals Tkinter module for GUI development Making HTTP requests with the requests library Python 3.x installed on your system Required Libraries ...
Read MoreCreate a GUI to Get Sunset and Sunrise Time using Python
In this tutorial, we'll create a GUI application using Python's Tkinter library to display sunrise and sunset times for any location. We'll use the astral library to calculate astronomical data based on geographic coordinates. Prerequisites Before starting, ensure you have: Python 3.x installed − Tkinter comes bundled with Python Astral library − Install using: pip install astral Basic Python knowledge − Functions, classes, and GUI concepts Installing Required Libraries The astral library provides astronomical calculations for sunrise, sunset, and twilight times − pip install astral Importing Required Modules ...
Read MoreCreate a GUI to Get Domain Information using Tkinter
In today's digital world, businesses rely heavily on their online presence. Before setting up a website or purchasing a domain name, it's essential to gather comprehensive information about the domain you plan to use. This includes details like domain owner, server location, IP address, and WHOIS records. In this tutorial, we'll create a GUI application using Python's Tkinter to retrieve domain information. What is GUI? GUI (Graphical User Interface) presents data to users through interactive windows, buttons, and menus instead of traditional command-line interfaces. It allows users to interact with computers more comfortably and intuitively using visual elements ...
Read MoreCreate a GUI to Extract Lyrics from a song using Python
Lyrics are the words that are sung in a song that conveys the meaning and emotions of a song. Python offers several libraries to extract lyrics from a song. In this tutorial, we will create a Graphical User Interface (GUI) using Python's tkinter library that extracts lyrics from a song. Prerequisites Before we dive into the details of creating a GUI, you should have a basic understanding of Python programming, object-oriented programming (OOP) concepts, and how to work with the Tkinter module. Required installations and setup − Install required libraries: pip install lyricsgenius (tkinter comes ...
Read MoreCreate a GUI to convert CSV file to Excel file using Python
As businesses grow and expand, they need to manage a lot of information. This information may come in different formats, and being able to convert them to the right format is important for the smooth running of business operations. One of the ways to handle this is by converting CSV files to Excel format. In this tutorial, we will build a Graphical User Interface (GUI) in Python to convert CSV files to Excel files. What is a CSV File? A CSV (Comma Separated Values) file is a plain text file that stores tabular data in a structured format. ...
Read MoreCreate a GUI to check domain availability using Tkinter
Building a domain availability checker with a GUI helps businesses quickly verify if their desired domain names are available. We'll create this tool using Python's Tkinter for the interface and the python-whois library for domain checking. What is a Domain? A domain name is a unique identifier for websites on the internet. It consists of two main parts: the second-level domain (like "google") and the top-level domain or TLD (like ".com"). The Domain Name System (DNS) translates these human-readable names into IP addresses that computers use to locate web servers. Common TLD examples include .com for commercial ...
Read More