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: QSlider Widget | PyQt6 (For Beginners)
Buy Me a Coffee? Your support is much appreciated! demo.py import sys from PyQt6.QtWidgets import (QApplication, QWidget, QSlider, QLabel , QHBoxLayout, QVBoxLayout) from PyQt6.QtCore import Qt class MyApp(QWidget): def __init__(self): super().__init__()...
Getting Started With Salesforce REST API In Python
Salesforce is a powerful customer relationship management (CRM) platform that allows businesses to manage their customer data, sales, and marketing efforts. One of the ways to interact with the Salesforce platform is through its REST API. The Salesforce REST API...
Source Code: Getting Started With Salesforce REST API In Python
Buy Me a Coffee? Your support is much appreciated! Source Code import requests # pip install requests from consumer_details import CONSUMER_KEY, CONSUMER_SECRET, USERNAME, PASSWORD import pandas as pd # pip install pandas # Generate Access Token def...
Source Code: Automate Microsoft Azure Storage Operations With Python (Azure Storage API)
Buy Me a Coffee? Your support is much appreciated! Source Code import os from azure.storage.blob import BlobServiceClient from azure.core.exceptions import ResourceExistsError storage_connection_string = '<storage connection string>' blob_service_client...
Source Code: google_vision_ai.py
Buy Me a Coffee? Your support is much appreciated! Source Code import io from collections import namedtuple from PIL import Image, ImageDraw, ImageFont from google.cloud import vision def prepare_image_local(image_path): try: # Loads the image into memory with...
Source Code: Python Automation: Send Emails In Outlook Using Python
Buy Me a Coffee? Your support is much appreciated! Source Code import requests from ms_graph import generate_access_token, GRAPH_API_ENDPOINT APP_ID = '<APP ID>' SCOPES = ['Mail.Send'] access_token = generate_access_token(app_id=APP_ID, scopes=SCOPES)...
Source Code: Upload Excel File Data To MS SQL Server Using Python
Buy Me a Coffee? Your support is much appreciated! Source Code from sqlalchemy import create_engine # pip install SQLAlchemy from sqlalchemy.engine import URL import pypyodbc # pip install pypyodbc import pandas as pd # pip install pandas SERVER_NAME =...
Source Code: How To Conditionally Set Bars Color In Matplotlib
Buy Me a Coffee? Your support is much appreciated! demo.py import numpy as np import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv('data.csv', index_col=0) indx_order = np.arange(df.shape[0]) averages = {} averages['Math Score'] = df['Math...
Source Code: Plot A Stacked Bar Graph Using Matplotlib For Beginners
Buy Me a Coffee? Your support is much appreciated! demo.py import numpy as np import matplotlib.pyplot as plt # prepare the data x_data = (20, 35, 30, 25, -28) y_data = (25, 32, 35, 20, -22) n = len(x_data) x_location = np.arange(n) bar_width = 0.35 fig, ax =...
Source Code: How To Use QFileDialog To Select Files In PyQt6
Buy Me a Coffee? Your support is much appreciated! demo.py import sys import os from PyQt6.QtWidgets import (QApplication, QWidget, QPushButton, QTextEdit, QComboBox, QFileDialog, QHBoxLayout, QVBoxLayout) class MyApp(QWidget): def __init__(self):...
