Step-by-Step Guide to Creating an AI Chatbot like ChatGPT
Building an AI like ChatGPT is a complex process that requires a lot of expertise in various fields like natural language processing, deep learning, and machine learning. While this tutorial cannot…
How to Use ChatGPT and Python for Question Answering Chatbots
Question-answering chatbots are a powerful tool for a wide range of applications, from customer service to educational resources. They allow users to quickly find answers to their questions without…
Jarvis GPT: Create your own version of Jarvis from Iron Man using Python and OpenAI API
Chat GPT is a hot topic right now and it’s taking the world by storm. It’s possibility to respond in a human-like way is highly appreciated and causes many discussions about the future use of this…
How to Mock FastAPI Dependencies in pytest
This post explains how to mock your API dependencies while testing. While creating routes in fastapi, we usually add dependencies for various reasons. To name a few, decoding a jwt token or parsing a…
Best Tool for Web Scraping: BeautifulSoup vs. Regex vs. Advanced Web Scrapers
BeautifulSoup, Regular Expressions, or an advanced web scraper - which is the best tool for web scraping? A deep dive into web scraping using each.
Perform Sentiment Analysis on Tweets Using Python
How to perform sentiment analysis on tweets using pandas, NumPy and seaborn — and how to best obtain tweet data.
Pandas Read_Sql With Variable Parameters — Alternative Way
Call MS SQL Stored Procedure with Parameters in Python
Logarithmic vs. Linear Scales: When Should You Use Them?
How to Integrate Proxy with Python Requests
Learn how to use the Python Requests module behind a proxy server.
Knowledge Distillation, aka Teacher-Student Model
With the release of large models in the last few years, from GPT-3 to Megatron, I keep pondering how to experiment and use these models for a specific use case. These models are trained on massive…
How to Implement Pagination Using FastAPI in Python
Use fastapi-pagination library to paginate API responses
5 Python Concepts That Will Advance Your Career
Using these concepts in your code will make you a seasoned Python programmer!
10 Powerful Python One-Liners
Python one-liners can be just as powerful as a long and tedious program written in another language designed to do the same thing."
How to Build Your Own Login and Registration System in Django
Django comes with the necessary features to set up a complete user authentication system. In this tutorial, we’ll cover the most critical components of a user authentication system in Django, namely…
Extracting Specific Keys/Values From A Messed-Up JSON File (Python)
What to do when a messy JSON file gives you a massive headache
Python Simple HTTP Server With SSL Certificate (Encrypted Traffic)
The easy way to make a temporary HTTP server with TLS encryption.
How to Filter Outlook Emails With a Subject Using Python
Use MSGraph search API query to filter email messages.
Solve Maze Using Breadth-First Search (BFS) Algorithm in Python
Learn how to use and implement the Breadth-First Search (BFS) algorithm to solve real-world problems.
How to Replace Python 'for' Loops with NumPy Operations
Web Scraping Images with Python and Selenium
How to scrape and capture images on websites.
Plot Stock Chart Using mplfinance in Python
An introductory guide to plot a candlestick chart along with volume, MACD & stochastic using mplfinance.
Python String Data Types: An Introduction
Exploring the basics of Python string data type along with code examples.
Excel Style Conditional Formatting in Pandas
How to make your pandas tables more colorful and your data more intuitively readable
Interactive Visualizations with Pandas, Seaborn and Ipywidgets
Create dynamic charts, save a ton of time.
Create a Network Graph in Python
Implementation of Network Graphs in Python
Install Python on a Locked-Down PC Without Local Admin
Even if you don't have local admin or if you are not able to run installers to install software on your PC, you can still use Python.
Create a Sankey Diagram in Python
Visualize Your Process Data with Sankey Diagram
How to Properly Lint Your SQL Code Using sqlfluff
Meet sqlfluff — a simple tool to automate and harmonize the SQL formatting and styling.
List & Download Files from SharePoint Using Python
Download files from MS SharePoint using Office365 Python SDK
Build Your First Guessing Game with Python
A step-by-step guide on building the Hangman game using Python.
Python Traceroute with a Visualization like in the ‘Hacker Movie Scene’
Traceroute is a tool for checking where is your packet/traffic is routed on the internet. This thing is a wonderful for troubleshooting the network. Honestly this article and python program made by…
How to Make Your Loop Way Faster in Python
Python slow? Heres how to make your loops way faster
Use Python to Find the InterQuartile Range of a Dataset
A tutorial on finding the interquartile range of a dataset using Python.
How to Find Minimum and Maximum Values in a List Using Python
A tutorial on finding minimum and maximum values in a list using Python.
How to Find the Mode in a List Using Python
A guide on how to find the mode in a list using Python.
Send HTTP Requests As Fast As Possible in Python
Use Python's synchronous, multi-threading, queue, and asyncio event loop to make 100 HTTP requests and see which solution performs the best.
How to Use Proxies When Web Scraping in Python
A guide on how to use proxies when scraping websites.
Best Python Libraries for Algorithmic Trading
In this article we help you to define which Python libraries work best if you are actively engaged with algorithmic trading with Python
How to Generate Automated Word Documents with Python
Automating the repetitive tasks that you shouldn’t be wasting time over
How to Remove Image Background Using Python
Remove images’ backgrounds using the Python library Rembg.
How to Use the Match Statement in Python
A guide on Python 3.10 switch command
Django Social Authentication: Login With Google
How to sign in and sign out using Google and Django framework.
Remove Silence from Your Audio in Python with ‘pydub'
Shorten the pauses in your audio with ‘pydub'!
How Can We Upload Data to Google Colab?
The most popular ways of uploading CSV files on the Google Colab notebook.
Build Your Own Search Engine Using Python
Part 2: Build a front-end visualization for your search engine
How to Upload Files to SharePoint Using Python
Upload files to MS SharePoint using Office365 Python SDK
Plot Multiple Graphs Per Row in Matplotlib (Python)
A tutorial on plotting multiple graphs per row in Python.
Introducing GPT-Neo: An Open Source AI Content Generator Alternative to GPT-3
An overview of GPT-Neo, the open-source AI content generator alternative to GPT-3, and how it can be used to generate text with Python.
How to Create One-Page Reports With Python
A tutorial on creating one-page reports with Python.
How to Solve the Knapsack Problem Using Genetic Algorithm in Python
A guide on solving the Knapsack problem
Pass By Object Reference in Python
Understanding “pass by object reference” in Python.
10 Python Automation Scripts for Everyday Problems
Collection of Handy Tools for your Daily Python Projects
How to Create a Progress Bar in Python
How to use the tqdm library to easily add progress bars to your command line
Password Authentication With Python: A Step-by-Step Guide
How to do password authentication with Python. Full Code included!
3 Ways to Print List Elements on Separate Lines in Python
A guide on printing Python list elements on new lines
An Introduction to Prim's Algorithm in Python
Use Prim's Algorithm to find the Minimum Spanning Tree of an undirected graph.
How to Download Attachments From Outlook Using Python and MSAL
Automate your Outlook attachment downloads using Python
Python Datetime Vs. NumPy Datetime: 8 Differences You Should Know
How Python datetime and NumPy datetime modules handle the datetime values.
Logistic Regression from Scratch
Explained and Implemented
“for i in range(len(list))” VS “for element in list” — When to Use Which
A beginner's guide on the two ways of iterating through a string or list.
How to Convert Scanned Files to Searchable PDF Using Python and Pytesseract
An efficient way to OCR scanned images
A Beginner’s Guide on Using MQTT— Python IoT
Subscribe and publish message over mqtt using Python
How to Sort Lists by Certain Conditions in Python
A guide on sorting lists by a certain condition in Python.
Calculate Annualized Expected Stock Returns Using Python
How I calculated the average annual expected returns of stocks using Python
An Introduction to A* Algorithm in Python
Using A* Algorithm to find the BEST solution in a graph modeled problem
How to Read from Multiple Sheets in an Excel File with Python
A guide on reading from multiple sheets in an Excel file using Python.
How to Import a CSV into a Jupyter Notebook with Python and Pandas
Documentation for importing a CSV into a Jupyter Notebook with Python and Pandas
How to Manage Exceptions When Waiting On Multiple Asyncio Tasks
Handling exceptions in asyncio requires careful management to ensure that code does not become unstable.
114 Data Science Projects You Can Try with Python
110+ Data Science Projects solved & explained with Python
How to Analyse PowerBall Numbers with Python
Pandas can't Predict the Future. Can You?
A Quick Trick to Make DataFrames with Uneven Array Lengths
A combination of two simple techniques I learned in the past two weeks.
A Beginner's Guide to Formatting CSV Data in Python
A pandas-free solution for those unfamiliar with the module.
10 Best Python Books for Beginner and Advanced Level Programmers in 2022
These books are guaranteed to level you up as a Python programmer.
Simulate the Famous Monty Hall Problem with Python
What is the Monty Hall problem? The Monty Hall problem is a famous probability puzzle.
Fibonacci Series in Python | 5 Best Programs
5 Python programs to print the Fibonacci series.
Why and How to Write Frozen Dataclasses in Python
The difference between frozen and non-frozen dataclasses.
Greedy Algorithm in Python
Using the Greedy Algorithm to find a solution to a graph-modeled problem
How to Make a Beautiful Donut Chart and Nested Donut Chart in Matplotlib
Donut charts are used to show the proportions of categorical data, with the size of each piece representing the proportion of each category.
Revisiting Flask vs FastAPI in 2022
Taking a deeper look at Python's micro web frameworks
Private Attributes In Python OOP are Not Very Private
Private attributes are attributes of a class that can only be accessed within the class itself.
Network Traffic Analysis with Python
How you can use Python to analyze network traffic activity.
How to Use Python with Notion API
A guide on how to integrate the Notion API to an app using Python.
Generate Python Code with OpenAI Codex API
A tutorial to explore the OpenAI codex API by generating Python code from natural language.
MapReduce with Python
An introduction to the MapReduce programming model and understanding how data flows via the different stages of the model.
How to Create a Basic Form in Python Flask
A simple guide on how we can create a form in Python Flask asking for a name and an email, and pass this form data back to our Python code.
A Few Ways to Count Words in a Sentence Using Python
4 ways that a programmer can use to count the number of words in a sentence.
Unit Conversion in Python
Dimensional analysis and unit conversion of physical quantities with SymPy
Store Passwords Safely in Python
How to hash passwords using the bcrypt library
How I Made an Automatic Birthday Wisher Using Python
A guide on making an automatic bday wisher using Python.
Python FastAPI — Serving Images, MP3 Files, etc. from Your Backend for Beginners
A beginners’ guide on how to serve images, MP3 files, PDF files, DOC files, etc. to frontend from backend using Python FastAPI.
Understand collate_fn in PyTorch
A beginner-friendly tutorial on how to create batches in PyTorch and how to modify default behavior for our needs.
Covariance Calculation Using Python
A guide on how to calculate covariance without using NumPy.
Create AI Content Generator with Python Flask and OpenAI GPT-3
A tutorial on how to use the OpenAI API to generate AI content.
Solve Graph Coloring Problem with Greedy Algorithm and Python
How to color the connected nodes with a different color for each adjacent node
Poetry, A Better Version of Python Pipenv
Python dependency management and packaging made easy.
How to Send Desktop Notifications with Python
No experience required!
Clustering Textual Data with Word2Vec
End-to-end guide to semantic cluster analysis with Word2Vec
Build a Django Application to Perform CRUD Operations
Add CRUD (Create, Read, Update, and Delete) functionality to your Django application
A Guide To Data Fitting In Python
Modeling Data with NumPy and SciPy
Best Python Libraries to Write Reports to PDF
Create tables in PDF using Python Libraries
A Python Example of the Flood Fill Algorithm
A brief tutorial on the Flood Fill algorithm
How to Send Mail Using Python
Introduction to Simple Mail Transfer Protocol in Python
How to Generate Text on Image with Python
A tutorial on how to generate images with text on them using Python.
13 Advanced Python Scripts For Everyday Programming
Handy scripts for your Python projects
How to Store Your Secrets Using Vault and Python
Manage your secrets using Vault and Python — Dock2Learn
Numerical Integration in Python
How to perform numerical integration using the Trapezoidal, Midpoint or Simpsons Rule in Python
How to Schedule Recurring Jobs or Tasks Using Celery
Schedule Jobs 2: Schedule recurring jobs/tasks using Celery.
How to Generate Requirements.txt for Your Python Project
A guide to generating Requirements.txt for Python project.
How to Replace Missing Dataframe Values with a Machine Learning Algorithm
A step-by-step guide to predicting missing data using an ML Algorithm.
How to Create a Console UI in Python Using the Rich Library
Trading websocket ticker using EOD Historical Data (EODHD APIs)
How to Validate Your DataFrames with Pytest
A guide to validating DataFrames with Pytest.
25 Interesting Python Codes to Solve Complex Tasks
Part 1: A list of Python codes for solving complex tasks.
How to Implement a Maximum Likelihood Estimation Code for Any Distribution
A guide for writing MLE code for any distribution under 5 minutes in case SciPy fails.
How to Create a Simple Webform Using Streamlit
A guide to creating a simple form using Streamlit.
6 Amazing Algorithms to Get the Square Root (and Any Root) of any Number in Python
How to Use Glob and Pandas to Read Multiple Filenames
Sometimes we need to work with multiple files. Glob is a handy Python package to read in multiple file names without having to manually write out the names of files. Of course, you could perform the…
How to Split a Large CSV File with Python
A guide to splitting a large CSV file based on input parameters.
How to Make Your Color Palette with Matplotlib in Python
How to Structure Your Django Project
Understanding the file structure and project layout of a Django web application.
How to Upgrade Python to 3.10
Python 3.10 Has been Released (October 4, 2021)! Give it a try!
How to Speed Up Pandas Data Operations Using Vectorized Operations
How To Make A Digital Clock in Python
Python project for beginners and intermediates
Search for Text in a PDF with Python
Nobody likes working with PDFs, but we have to
How to Build an Internet Speed Tester Using Python
A tutorial on building an Internet Performance and Network Speed Tester.
Make a Calculator using Python and Tkinter
Python projects for Beginners and Intermediates
How to Securely Deploy Flask With Apache in a Linux Server Environment
Decision Tree Parameter Explanations
Sklearn's Decision Tree Parameter Explanations
Real Estate House Price Prediction Using Data Science
How to Scrape Everything From Instagram Using Python
A guide on scraping from Instagram using Python.
How to Upload Any Type of Binary File to S3 via API Gateway
Upload any type of file to the S3 bucket using Lambda proxy integration with API Gateway in Python
Capture Video Footage from a Webcam using OpenCV Python
Python projects for beginners. Webcam access using python.
Build a Complete Invoicing Web Application with Django
How to build a complete invoicing web application with Django — Final Tutorial
A Simple Guide to Plotly for Plotting Financial Chart
A tutorial on plotting stock price chart along with volume, MACD & stochastic.
How to Convert a Dash app into an Executable GUI
Convert Dash apps into GUIs with Pyinstaller, Selenium and Dash
How to Use the _eq_() Method to Compare Objects in Python
Learn how to compare objects in Python
How to Run a Python Script using Node.js
Full code is provided at the end of the article
Ridge Plots with Python's Seaborn
A fascinating way of visualizing multiple distributions.
The Best High Contrast Themes in Visual Studio Code
Most high contrast themes can be hideous, but ones that aren't have improved my coding experience.
Hungarian Algorithm Introduction & Python Implementation
How to use Hungarian Method to resolve the linear assignment problem.
GraphQL Queries in Python
Taking a script from rough sketch to maintainable production code.
How to Store Date and Time in Python
Using the datetime Python library to store date and time efficiently
12 Python Programming Jokes That All Devs Can Relate To
Best Python Memes Compilations
Run Python Code in React with Pyodide
How to Run Python Code in the Browser with Web Assembly, React, and Pyodide
Python and Django: Create a Dependent Chained Dropdown Select List
Image Stitching Using OpenCV
A step-by-step guide on how to make panorama and image stitching using Python and OpenCV.
How to Take Multiple Inputs From Users In Python
All the ways in which we can take multiple inputs from users in Python
Difference Between Python List and NumPy Array
Python List vs NumPy Array - What's the difference?
Upload a File to Amazon S3 With Python
Boto3 aids you to navigate through the Amazon ecosystem
Using Python Scripts in the Robot Framework
Calling Python in the Robot framework.
How to Customize an HTML Report in Pytest
Make the report you want to make.
Data Extraction: Parse a 3-Nested JSON Object and Convert it to a pandas dataframe
Create Reusable Models with Django and Mixins
Using mixins to create powerful, flexible Django models
Scrape Google Scholar with Python
How to scrape Google Scholar with Python and Beautiful Soup
Deploy Docker Containers In AWS Lambda In 5 Easy Steps
Lambda can now run your containers as a function with base runtimes provided by AWS or even with custom runtimes. With time, containerized apps became a hit and now the problem was how to deploy…
Set Up Python on Windows Subsystem for Linux (WSL)
How to set up your Python development environment on Windows Subsystem for Linux (WSL)
Convert a Python Project to an Executable (.exe) File
Using Auto PY to EXE we can convert .py files to .exe files very easily. This way our Python project will act as a desktop application. And we will be able to run the application on other windows…
Using K-Fold Cross-Validation to Evaluate the Performance of Logistic Regression
A step-by-step Python recipe.
How to Read and Write Excel Files in Python
Reading and Writing Excel Files in Python using the Openpyxl module.
Package Data Files to pyinstaller Binaries
Resolve file not found errors in pyinstaller
User Registration and Login Authentication in Django
How to handle signup, login, and log out in Django using the “UserCreationForm”
How Netflix uses Data Analytics: A Case Study
The contribution of big data and analytics in the success of Netflix.
Build a Fast Food Order Taker in Python
Learn Python while making a program that takes your order!
How to Set Default Python Interpreter in VS Code
A guide on how to set up your Visual Studio Code for Python operations.
Create your own Python Layer in AWS Lambda Environment
Build a Flask CRUD Application with MVC Architecture
How to implement a CRUD App with Flask Blueprint
Python for Interviewing: An Overview of the Core Data Structures
Must-know data structures to kill your interview!
Measure Stock Volatility Using Betas in Python
Learn how investors monitor stock volatility and risk with betas & how to calculate your own in Python.
Uniform Cost Search (UCS) Algorithm in Python
Using the Uniform Search Algorithm to find the best solution in a graph modeled problem
Arithmetic Operations in Pandas
A guide on how to use arithmetic operations in Pandas.
10 Best Python IDEs and Code Editors to use in 2021
How To Get Live Forex Data With 2 Lines Of Python Code
The latest release from Yahoo Finance API for Python provides the possibility of getting live data with less than a second lag for free
Build a Sorting Algorithm Visualizer in Python
Create a simple GUI application using Python & Tkinter that visualizes various sorting algorithms
Let's Build a Random Character Generator in Python
Explore advanced features of Python by making a tool for playing tabletop RPG's.
Iris Flower Classification Step-by-Step Tutorial
Do you want to learn machine learning, but having trouble getting started?
Build Your Own Alexa With Just 20 Lines of Python
Programmers can get anything for free
How to Deal with Time-Series Stock Data Using pandas
A guide to help implement various pandas functions on stock data.
Python Discord Bots: Formatting Text
How to add rich formatting to Python Discord bots
Autoflake — Remove Unused Imports & Unused Variables from Python Code
Decluttering doesn't happen overnight. It's a process — and often, one that requires equal parts motivation and inspiration
Python Football Betting Model for Six Leagues
Using statistics, Pandas, BeautifulSoup and AWS to identify value bets
How to find all possible combinations in a list (and their sum) with Python
Mini-learns with Python 3
9 Seaborn Datasets for Data Science + ML Beginners
Like the picture above, the journey to becoming a data scientist and reach the highest peak begins with learning to walk. You can’t start with a complicated neural network if you’ve never mastered…
Importing Bulk CSV Data Into MySQL Using Python
Find the Fastest Way to Import CSV Data Into MySQL Database Using Python
How To Read Parquet Files In Python Without a Distributed Cluster
Access files from AWS S3 using pre-signed URLs in Python
Generate pre-signed URLs for S3 objects in Python
Bayes' Theorem: Concepts and Code
Building on our understanding of conditional probability we'll get into Bayes' Theorem
Send an Embed with a Discord Bot in Python
Upgrade your bot's messages and make them a little more custom using embeds!
How To Efficiently Concatenate Strings In Python
And how not to concatenate strings
Create a Dashboard with Flask, Plotly, Altair, Chart.js, and AdminLTE
Import a CSV file into an Oracle database with Python
Using iris data, we will learn how to import a CSV file into an Oracle database using Python
Image Filtering and Editing in Python — With Code
A few ways to alter images in Python, with code.
How to import a CSV file into a MySQL database using Python
Using iris data, we will learn how to import a CSV file into a MySQL database using Python
How to convert list to string in Python
In this post, we will go over how to convert a list to a string in Python.
How to Update Discord bot status with Discord.py
Personalizing your bot's displayed activity for your discord server with Python
Caveats of using return with try/except in Python
Behaviour of return with try/except in Python
How to use Pandas-Profiling on Google Colab
Automated exploratory data analysis using Pandas Profiling in Jupyter on Google Colab
Structuring Unit Tests in Python
Where to put tests, how to write fixtures and the awesomeness of test parametrization
Use Web Scraping to Download All PDFs With Python
A guide on using web scraping to download all PDFs with Python.
Create your Browser Automation Robot with Python and Selenium
Pandas and Multiprocessing: How to create dataframes in a parallel way
Scenario: Read a large number of XLS files with pandas convert them to dataframes and concat them to a single dataframe.
From API to Pandas—Getting JSON Data With Python
A working example of getting JSON data from an API to a Pandas DataFrame in Python with Google Colab and Open Data DC.
Bypassing CAPTCHAs Using Python
Bypassing Google's v2 reCAPTCHA using Python requests library and Selenium
Making Plots with Pandas groupby
A series of example code and plots using Pandas groupby method.
Fischer's Linear Discriminant Analysis in Python From Scratch
Learn about Fisher's LDA and implement it from scratch in Python.
Pi Diary: Making My Own “RC Car” using Raspberry Pi
Turns out buying one is cheaper. But hey it's the satisfaction!
Implementing Flask login with hash password
A concise post that helps improve your authentication system
Scraping Tweets with Tweepy Python
This is a step by step guide to scrape Twitter tweets using a Python library called Tweepy.
Why you should start using Python dataclasses
Use Dataclasses in Python to store attributes
Turning your Python Script into a 'Real' Program
Level up your Python skills by making your programs system services a.k.a well behaved daemon processes— your future self will thank you.
Turn your Python Script into a 'Real' Program with Docker
No one cares if you can reverse a linked list — they want a one-click way to use your software on their machine. Docker makes that possible.
Three Moving Average Trading Strategy with Python
Triple EMA Trading Strategy using Python
These Python Data Structures Will Be Your New Best Friend
An overview of the collections library in Python
TextBlob — A Package Every Python Programmer Should Know
No need to call in the Data Scientist to perform NLP
Statistical Tests with Python
A way to evaluate the evidence the data provides against a hypothesis
Pyinstaller EXE False-Positive Trojan Virus [RESOLVED]
Part 1. Manually Compile your Pyinstaller Bootloader
How to Create an AI Blog Writing Tool with OpenAI API, GPT-3, and Python
Build an AI blog writing tool to create unique blog articles using GPT-3 Artificial Intelligence (AI) API.
I Finally Managed to Activate a Conda Environment in My CI Pipeline
Gone are the days of frustration of trying to use conda in CI servers and containers.
Developing a Systematic Indicator to Trade Cryptocurrencies With Python
A Technical Indicator That Works for Cryptocurrencies
A solution to boost Python speed 1000x times
People said Python is slow, how slow it can be
A basic Named entity recognition (NER) with SpaCy in 10 lines of code in Python
Have you ever come to a situation that you find a bunch of old articles in your hard drive and you believe they were precious, however, you couldn’t remember what the articles are about. Or a situation that you remembered you read something in your archive and was trying to find out which document that was, however, you just could not find it. Well, it happened to me quite often. I hoped I could have an index to all the articles I stored so that I can locate them quickly. And now, I am trying to create a small piece of Python code to do that for me.
9 Easy Ways To Earn Money While Learning Python
Don't stay in bed unless you can make money in bed
7 Levels of Using F-Strings in Python
Dive into the string formatting technique in Python
6 PyCharm Plugins That Will Boost Your Python Programming
Plugins I could not code without
4 Python Libraries to Help you Make Money from Webscraping
3 Ways To Connect Django With MongoDB
Django — MongoDB — Djongo — MongoEngine — PyMongo
16 Intermediate-Level Python Dictionary Tips Tricks and Shortcuts
Dictionaries are the heart and soul of Python. Here are the most essential tips and tricks for you to use with dictionaries.