Skip to main content

PyPI - Version PyPI - Python Version Tests Docs

gurobipy-pandas: Convenience wrapper for building optimization models from pandas data

gurobipy-pandas is a convenient (optional) wrapper to connect pandas with gurobipy. It enables users to more easily and efficiently build mathematical optimization models from data stored in DataFrames and Series, and to read solutions back directly as pandas objects.

gurobipy-pandas is aimed at experienced pandas users who are familiar with methods to transform, group, and aggregate data stored in dataframes. It expects some familiarity with optimization modelling, but does not require deep experience with gurobipy.

Features

gurobipy-pandas allows users to:

  • create gurobipy variables tied to the index of a series or dataframe
  • construct constraints row-wise using algebraic expressions
  • read model solutions and constraint slacks natively as pandas series

Installation

pip install gurobipy-pandas

Dependencies

Documentation

Full documentation for gurobipy-pandas is hosted on readthedocs.

License

gurobipy-pandas is distributed under the terms of the Apache License 2.0.

Contact Us

For questions related to using gurobipy-pandas please use the Gurobi Community Forum.

For reporting bugs, issues and feature requests, specific to gurobipy-pandas, please open an issue.

If you encounter issues with Gurobi or gurobipy please contact Gurobi Support.

Contributors

Webinar

Slides for the 2023 webinars presenting this package can be found at webinar/webinar.ipynb. The notebook will be presented as RISE slides, but can also be executed in Jupyter.

Metadata

Release files for gurobipy-pandas 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gurobipy-pandas 1.2.2
File Size Uploaded
gurobipy_pandas-1.2.2.tar.gz 213.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gurobipy-pandas 1.2.2
File Interpreter ABI Platform
gurobipy_pandas-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 232.9 kB

Release files / gurobipy_pandas-1.2.2.tar.gz

Download URL gurobipy_pandas-1.2.2.tar.gz
Size 213.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b3c47c1176a7efb6429c3023057bcbb5666da1916e8e8a14156c69307769847
BLAKE2b-256 checksum
How to use checksums
4bb40a75faccbd99e3db7d8452e6c63ea84864d8f4fad1357f2401e13e8751fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / gurobipy_pandas-1.2.2-py3-none-any.whl

Download URL gurobipy_pandas-1.2.2-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3e533959d38a955cbbd2ed2dfb7e4fe5bd240999d45a5a1afad39428d1bc597
BLAKE2b-256 checksum
How to use checksums
fb0985f5f84aaba21eaa5b97ca1e6de89ab5471617389a3382160d0a4fbbf39f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.0b3

1 release file

0.1.0b2

1 release file

0.1.0b1

1 release file

0.1.0b0

1 release file

0.0.1a0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page