liveBook · Manning

PyQt

As explained in Software Engineering for Data Scientists

PyQt is a Python binding for the Qt framework used to build graphical user interfaces and other desktop applications.

PyQt is a Python library for creating graphical user interfaces. It lets users operate machine-learning applications through windows, buttons, file selectors, dropdowns, checkboxes, and message boxes instead of writing code. section 11.3.1 section 11.5

A practical PyQt machine-learning application can:

  • Accept a CSV upload and display the selected file. section 11.3.1
  • Populate a label dropdown and feature checkboxes from the dataset columns. section 11.3.1
  • Train a random forest on selected features, predict a holdout subset, and save predictions to a user-chosen CSV path. section 11.3.1
  • Package the Python script as a shareable executable with PyInstaller. section 11.3.1 section 11.5

Customer-churn modeling app

A window lets a user upload the customer churn CSV, choose its label, check model features, select an output location, and receive saved predictions after training. section 11.3.1

Listing 11.15 PyQt can be installed using pip.
pip install PyQt5 #1

Install PyQt5 with pip before building the application. section 11.3.1

How Software Engineering for Data Scientists covers it

How deep it goes
Demonstrates installation, widgets, file handling, model execution, application launch, and executable packaging through focused Python listings.
Examples
Uses a customer churn dataset and controls for uploading files, selecting labels and features, saving predictions, and displaying completion messages.
What you can do after
Build it from scratch as a Python GUI that trains a model and package it as an executable for users without Python.
How it connects
Connects graphical user interfaces with CSV files, pandas, random forest models, holdout prediction, and executable packaging.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Engineering for Data Scientists. The section links point to the parts of the book it draws on.