Python Code Tutorials


articles/logistic-regression-in-pytorch.jpg
Logistic Regression using PyTorch in Python

Learn how to perform logistic regression algorithm using the PyTorch deep learning framework on a customer churn example dataset in Python.

articles/crud_bookshop.jpg
How to Build a CRUD App with Flask and SQLAlchemy in Python

Learn how to create a CRUD application as a RESTful API using Flask and SQLAlchemy, making a Bookshop web application as a demonstration in Python.

articles/handling-imbalance-dataset-with-customer-churn-data.jpg
Handling Imbalanced Datasets: A Case Study with Customer Churn

Learn how to handle one of the main data science common problems, which are imbalanced datasets, how to deal with them using SMOTE, tweaking class weights, and resampling in Python.

articles/dhcp-listener.jpg
How to Make a DHCP Listener using Scapy in Python

Learn how you can make a DHCP listener by sniffing DHCP packets in the network using the Scapy library in Python.

articles/recommender-systems-using-association-rules-in-python.jpg
Recommender Systems using Association Rules Mining in Python

Build a recommender system for market basket analysis With association rule mining with the Online Retail dataset in Python.

articles/customer-churn-prediction-in-python.jpg
Customer Churn Prediction: A Complete Guide in Python

Learn how to perform data analysis and make predictive models to predict customer churn effectively in Python using sklearn, seaborn and more.

articles/convert-pandas-dataframe-to-html-in-python.jpg
How to Convert Pandas Dataframes to HTML Tables in Python

Learn how you can make interactive HTML tables with pagination, sorting and searching just from a pandas dataframe using pandas and jQuery data tables in Python.

articles/credit-card-fraud-detection-in-python.jpg
Credit Card Fraud Detection in Python

Learn how to build a model that is able to detect fraudulent credit card transactions with high accuracy, recall and F1 score using Scikit-learn in Python.

articles/how-to-inject-code-to-arp-spoofed-targets-in-python.jpg
How to Inject Code into HTTP Responses in the Network in Python

Learn how you can inject Javascript, HTML or CSS to HTTP response packets in a spoofed network using Scapy and NetfilterQueue in Python.

articles/fake-news-detection-using-transformers-in-python.jpg
Fake News Detection in Python

Exploring the fake news dataset, performing data analysis such as word clouds and ngrams, and fine-tuning BERT transformer to build a fake news detector in Python using transformers library.

articles/making-a-mac-address-changer-in-python_compressed.jpg
How to Make a MAC Address Changer in Python

Learn how you to make a MAC address changer in Windows and Linux using the subprocess module in Python.

articles/extracting-pytrends-data-in-python.jpg
How to Extract Google Trends Data in Python

Learn how you can extract Google Trends Data such as interest by region, suggested searches, and more using pytrends unofficial library in Python.

articles/convert-html-to-pdf-in-python.jpg
How to Convert HTML to PDF in Python

Learn how you can convert HTML pages to PDF files from an HTML file, URL or even HTML content string using wkhtmltopdf tool and its pdfkit wrapper in Python.

articles/currency-converter-in-python.jpg
How to Make a Currency Converter in Python

Learn how to make a real-time currency converter using different ways and from various sources such as xe, yahoo finance, xrates and Fixer API in Python.

articles/compress-and-resize-images-in-python.jpg
How to Compress Images in Python

Learn how to reduce image file size by compressing and resizing the image using Pillow library in Python.

articles/paraphrasing-tutorial-with-transformers-in-python.png
How to Paraphrase Text using Transformers in Python

Explore different pre-trained transformer models in transformers library to paraphrase sentences in Python.