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 Project For Beginners | Making $20 With This Freelance Project
Buy Me a Coffee? Your support is much appreciated! Source Code from collections import namedtuple import requests import pandas as pd # pip install pandas url =...
Source Code: Python Project For Beginners | Web Image Downloader
Buy Me a Coffee? Your support is much appreciated! Source Code import requests # pip install requests from bs4 import BeautifulSoup # pip install beautifulsoup4 session = requests.Session() session.headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64;...
Source Code: Python Project For Beginners | Stock Historical Data Downloader Command Line Tool (Full Tutorial)
Buy Me a Coffee? Your support is much appreciated! Source Code import os import time from datetime import datetime import argparse import pandas as pd # pip install pandas def download_stock_historical_price(ticker, period1, period2, interval): try:...
Source Code: Browser Automation & Web Scraping Craigslist (Full-Tutorial)
Buy Me a Coffee? Your support is much appreciated! app.py import os import time import datetime from collections import namedtuple import selenium.webdriver as webdriver from selenium.webdriver.firefox.service import Service from selenium.webdriver.support.ui...
Source Code: How To Use SQLite Database In Python For Beginners
Buy Me a Coffee? Your support is much appreciated! demo.py import sqlite3 import pandas as pd # pip install pandas # Create a database connection = sqlite3.connect('student.db') # connection = sqlite3.connect(':memory:') # Create a table sql_create_table = """...
Source Code: Save Query Output To Google Drive From BigQuery Using Python
Buy Me a Coffee? Your support is much appreciated! demo.py import time from google.cloud import bigquery from gdrive import GDrive # Step 1. Retrieve query results from a SQL Statement client_file = 'client-secret.json' client = bigquery.Client() sql_statement =...
Source Code: Check If A Dataset/Table Exists with Google BigQuery API In Python
Buy Me a Coffee? Your support is much appreciated! Source Code: import os from google.cloud import bigquery from google.cloud.exceptions import NotFound os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'bigquery_service_acct.json' def check_table(project_id,...
Source Code: Automate Video Upload To YouTube With Python (And YouTube API)
Buy Me a Coffee? Your support is much appreciated! demo.py import datetime import time from googleapiclient.http import MediaFileUpload import pandas as pd from google_apis import create_service def video_categories(): video_categories =...
Source Code: Create An Interactive matplotlib GUI Application With Python
Buy Me a Coffee? Your support is much appreciated! demo.py import sys import matplotlib matplotlib.use("Qt5Agg") import numpy as np from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure # pip install...
Source Code: Add Videos To YouTube Playlist With Python
Buy Me a Coffee? Your support is much appreciated! youtube.py from google_apis import create_service class YouTube: API_NAME = 'youtube' API_VERSION = 'v3' SCOPES = ['https://www.googleapis.com/auth/youtube', 'https://www.googleapis.com/auth/youtube.force-ssl'] def...
