The Data Science Package for Python is an EDB-provided package that bundles a curated collection of Python machine learning, statistical modeling, and data science modules for use with the WarehousePG PL/Python (PL/Python) procedural language.
The package requires WarehousePG (WHPG) 7.5.0 or later, which includes PL/Python 3.11. For information about PL/Python, see WarehousePG PL/Python Language Extension.
Available modules
The Data Science Package includes the following Python modules. Deep learning modules (TensorFlow, PyTorch) are CPU-only. Transitive dependencies are installed automatically. See Module reference for the full list with descriptions.
| Category | Modules |
|---|---|
| Core scientific | numpy, scipy, pandas, scikit-learn, statsmodels, patsy, joblib |
| Plotting | matplotlib, seaborn, plotly |
| Acceleration and I/O | numexpr, bottleneck, pyarrow, h5py, openpyxl, netCDF4 |
| Gradient boosting | xgboost, lightgbm, catboost |
| Deep learning (CPU) | tensorflow-cpu, keras, torch, torchvision, torchaudio |
| NLP and HuggingFace | nltk, gensim, spacy, transformers, sentence-transformers, InstructorEmbedding, accelerate, datasets, sacrebleu, rouge |
| Computer vision | pillow, scikit-image, opencv-python-headless |
| Probabilistic and time series | pymc, prophet, lifelines, pmdarima, tslearn, gluonts |
| Math and graph | networkx, sympy |
| Out-of-core and JIT | xarray, dask, numba |
| Explainability | shap, lime, pyLDAvis, imbalanced-learn |
| Data, database, and parsing | SQLAlchemy, psycopg2-binary, python-docx, pdfminer.six, feedparser, graphviz, holidays, formulaic, xmltodict, orjson, cryptography |
| Utilities | requests, beautifulsoup4, lxml, PyYAML, tqdm, regex, Jinja2, Cython, pydantic, typer |
| Web and XML schema | CherryPy, PyXB-X |
Prerequisites
Before installing the Data Science Package for Python, ensure that:
- Your WHPG cluster is running WHPG 7.5.0 or later.
- PL/Python is enabled on your cluster. See WarehousePG PL/Python Language Extension.
- You have sourced
/usr/edb/whpg7/greenplum_path.shand the$COORDINATOR_DATA_DIRECTORYand$GPHOMEenvironment variables are set. - On air-gapped clusters,
python3.11is installed on all nodes. See Performing a minor upgrade for details.
Note
The pymc and prophet modules require tk at runtime. If you plan to use either module, install the tk OS package on every node in your cluster before installing the Data Science Package:
sudo yum install tk
Downloading and installing the Data Science Package
The Data Science Package is a large download (approximately 1.2 GB). Install it on each host in your WarehousePG cluster.
From the coordinator, download the package from the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo dnf download edb-whpg7-data-science-python311
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo yumdownloader edb-whpg7-data-science-python311
Where
<your-token>is your EDB subscription token.Create a file
all_hostson the coordinator that lists all hosts in the cluster:cdw scdw sdw1 sdw2 sdw3
Use
gpsyncto transfer the package to all hosts, then usegpsshto install it:gpsync -f all_hosts <package-name> =:/tmp gpssh -f all_hosts -e 'sudo dnf install -y /tmp/<package-name>'
gpsync -f all_hosts <package-name> =:/tmp gpssh -f all_hosts -e 'sudo yum install -y /tmp/<package-name>'
Where
<package-name>is the name of the package file you downloaded.Restart WarehousePG: