{"id":41685589,"url":"https://github.com/jnmclarty/sympa","last_synced_at":"2026-01-24T19:27:40.750Z","repository":{"id":27675065,"uuid":"31161211","full_name":"jnmclarty/sympa","owner":"jnmclarty","description":"Symbolic math for Pandas","archived":false,"fork":false,"pushed_at":"2018-04-21T16:07:39.000Z","size":57,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-28T01:56:51.782Z","etag":null,"topics":["equation","formula","math","pandas"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnmclarty.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-22T11:40:16.000Z","updated_at":"2024-05-22T18:51:00.000Z","dependencies_parsed_at":"2022-09-26T17:40:45.074Z","dependency_job_id":null,"html_url":"https://github.com/jnmclarty/sympa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jnmclarty/sympa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnmclarty%2Fsympa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnmclarty%2Fsympa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnmclarty%2Fsympa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnmclarty%2Fsympa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnmclarty","download_url":"https://codeload.github.com/jnmclarty/sympa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnmclarty%2Fsympa/sbom","scorecard":{"id":525148,"data":{"date":"2025-08-11","repo":{"name":"github.com/jnmclarty/sympa","commit":"1fb39175bd11864eca525b46fdc7717660df70d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 2/10 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T04:09:14.313Z","repository_id":27675065,"created_at":"2025-08-20T04:09:14.314Z","updated_at":"2025-08-20T04:09:14.314Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28735235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["equation","formula","math","pandas"],"created_at":"2026-01-24T19:27:40.078Z","updated_at":"2026-01-24T19:27:40.745Z","avatar_url":"https://github.com/jnmclarty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sympa\r\n=====\r\n\r\n*Symbolic math for pandas.*\r\n\r\nDescription\r\n===========\r\n\r\nLinks symbolic expressions created using sympy to columns of data in pandas DataFrames.\r\nAny expression created with sympy, which can be \"lambdified\", will/should/might work. \r\n\r\nWarning\r\n=======\r\n\r\nThe API design for sympa is subject to change, depending on feedback, if any.\r\n\r\nUsage\r\n=====\r\n\r\n.. code:: python\r\n\r\n   from pandas import DataFrame\r\n   from sympy import symbols\r\n   from sympa import domath\r\n   \r\n   #DataFrame expression:\r\n   \r\n   df = pd.DataFrame({'x' : [1,2,3,4] * 2, 'y' : [0.1, 0.2] * 4})\r\n   \r\n   #Series expression (Not recommended, but @kiaderouiche must have found it useful)\r\n   \r\n   s = pd.Series({'x' : [1,2,3,4] * 2, 'y' : [0.1, 0.2] * 4})\r\n   \r\n   # Notice x_-1 and x_-2 are used to reference x @ t=-1, and x @ t=-2.\r\n   x, xn1, xn2, y = symbols('x x_-1 x_-2 y')\r\n   \r\n   f = 3.0 * x ** 3 + 2.0 * xn1 ** 2 + xn2 + (y * 2) / 2\r\n   \r\n   df['f'] = domath(df,f)\r\n\r\nDocs\r\n====\r\n\r\nFor now, there isn't much documentation.  I think it's pretty straightforward.\r\nCheck out the /doc folder of the repo on github for more examples.\r\n\r\nRequirements\r\n============\r\n\r\n* Sympy \u003e= 0.7.6 but should work with much older versions (untested).\r\n* Pandas \u003e= 0.15 but should work with much older versions (untested).\r\n\r\nPython\r\n------\r\nWorks on 2.7, untested on all other versions.\r\nIt is expected to be ported to 3.4 soon, and likely 2.6 as well.\r\n\r\nInstall\r\n=======\r\n\r\n    pip install sympa\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnmclarty%2Fsympa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnmclarty%2Fsympa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnmclarty%2Fsympa/lists"}