Python Tutorial
Python is a verstile programming language that has gained a lot of attention and popularity. Using Python, you do things like develop web applications, desktop applications, task automation, artificial intelligence (AI), big data, data analytics, machine learning (ML), and many other things.
Python is really becoming as the leader in data science and data analytics. With so many open source libraries to choose from (Pandas, scikit-learn, NumPy, Matplotlib), learning data analysis in Python just got so much easier.
Source Code: Python Data Visualization: Create A Stacked Bar Chart In Matplotlib (For Beginners)
Download Data File: Download import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.ticker as ticker def millions_and_thousands_formatter(x, pos): if x >= 1_000_000: return f'{x/1_000_000:.1f} MM' elif x >= 1_000: return...
Source Code: Python Data Visualization: Embedding Multiple Charts In A Single Figure Using Matplotlib.
data_file_download.py from datetime import datetime import time import pandas as pd tickers = ['TSLA', 'AAPL', 'AMZN', 'UAL'] datasets = {} # year to day today_timestamp = int(datetime.now().timestamp()) for ticker in tickers: url =...
Getting Started With OpenAI ChatGPT (GPT-4) API In Python
In this tutorial, we will learn how to use OpenAI ChatGPT (GPT4) API in Python. If you have never heard of OpenAI before, OpenAI is the company that developed ChatGPT, and OpenAI API is the service that allows developers to access the AI models that creates...
Getting Started With OpenAI Whisper API In Python | Beginner Tutorial
In this lesson, we are going to learn how to use OpenAI Whisper API to transcribe and translate audio files in Python. OpenAI Whisper is an automatic speech recognition model, and with the OpenAI Whisper API, we can now integrate speech-to-text transcription...
Getting Started With OpenAI GPT (GPT 3.5 Model) API In Python
In this tutorial, we will learn how to use OpenAI ChatGPT (GPT 3.5) API in Python. If you have never heard of OpenAI before, OpenAI is the company that developed ChatGPT, and OpenAI API is the service that allows developers to access the AI models that creates...
Getting Started With OpenAI GPT API In Python | Tutorial For Beginners
In this tutorial, we will learn how to use OpenAI API in Python. If you have never heard of OpenAI before, OpenAI is the company that developed chatGPT, and OpenAI API is the service that allows developers to access the AI models that creates chatGPT through REST...
Source Code: Automate The Boring Stuff With Python: Organize Folders By Timestamp
Buy Me a Coffee? Your support is much appreciated! import os import datetime from pathlib import Path import shutil current_dir = Path('.') item_list = os.listdir(current_dir) for item in item_list: if (current_dir / item).is_dir(): print('source folder:...
Source Code: Create A Professional Grammar Check Desktop App With OpenAI GPT API and Python
Buy Me a Coffee? Your support is much appreciated! demo.py import openai GPT3_MODELS = { 'davinci': 'text-davinci-003', 'curie': 'text-curie-001', 'babbage': 'text-babbage-001', 'ada': 'text-ada-001' } CODEX_MODELS = { 'davinci': 'code-davinci-002', 'cushman':...
Source Code: Delete Azure Folders With Azure Storage API Using Python
Buy Me a Coffee? Your support is much appreciated! demo.py import os from azure.storage.blob import BlobServiceClient # pip install azure-storage-blob azure-identity def delete_blob_folder(blob_directory: str) -> None: try: blobs =...
Source Code: Upload Folder To Azure Storage With Azure Storage API Using Python
Buy Me a Coffee? Your support is much appreciated! demo.py import os from azure.storage.blob import BlobServiceClient # pip install azure-storage-blob from azure.core.exceptions import ResourceExistsError storage_connection_string = '<connection string>'...