This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


Symbolic math for pandas.


Links symbolic expressions created using sympy to columns of data in pandas DataFrames. Any expression created with sympy, which can be “lambdified”, will/should/might work.


The API design for sympa is subject to change, depending on feedback, if any.


from pandas import DataFrame
from sympy import symbols
from sympa import domath

df = pd.DataFrame({'x' : [1,2,3,4] * 2, 'y' : [0.1, 0.2] * 4)

# Notice x_-1 and x_-2 are used to reference x @ t=-1, and x @ t=-2.
x, xn1, xn2, y = symbols('x x_-1 x_-2 y')

f = 3.0 * x ** 3 + 2.0 * xn1 ** 2 + xn2 + (y * 2) / 2

df['f'] = domath(df,f)


For now, there isn’t much documentation. I think it’s pretty straightforward. Check out the /doc folder of the repo on github for more examples.


  • Sympy >= 0.7.6 but should work with much older versions (untested).
  • Pandas >= 0.15 but should work with much older versions (untested).


Works on 2.7, untested on all other versions. It is expected to be ported to 3.4 soon, and likely 2.6 as well.


pip install sympa
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (5.4 kB) Copy SHA256 Checksum SHA256 Source Mar 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting