Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install dependencies
run: |
pip install -r tests/requirements.txt

- name: Run tests
run: |
python tests/test_basic.py --inplace
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Welcome to PySumaries documentation!

PySummaries is a Python package to easily produce table summarizations
from pandas dataframes.
from pandas, polars or PyArrow dataframes.

Other dataframe libraries supported by [narwhals](https://narwhals-dev.github.io/narwhals/) (e.g. Modin, cuDF) may also work but are untested.

For more detailed information, please look at the [documentation](https://genentech.github.io/pysummaries/)

Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.0.2
* Introduced narwhals as dependency, adds support for pandas 3, polars,
pyarrow
* Improved tests, improved code

# 0.0.1
* Added support for pyarrow pandas dtypes

Expand Down
3 changes: 2 additions & 1 deletion docs/_sources/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
# # Welcome to PySumaries documentation!
#
# PySummaries is a Python package to easily produce table summarizations
# from pandas dataframes.
# from pandas, polars or PyArrow dataframes.
# Other dataframe libraries supported by [narwhals](https://narwhals-dev.github.io/narwhals/) (e.g. Modin, cuDF) may also work but are untested.
#
# ## Installation
#
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/reportable_basic_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

# %%
import pandas as pd
from IPython.core.display import display
from IPython.display import display

from pysummaries import pandas_to_report_html

Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/reportable_css1.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# %% tags=["hide-input"]
import pandas as pd
from IPython.core.display import display, HTML
from IPython.display import display, HTML

from pysummaries import pandas_to_report_html, get_styles
# a couple of symbols with html codes or html tags
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/reportable_css2.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# %% tags=["hide-input"]
import pandas as pd
from IPython.core.display import display, HTML
from IPython.display import display, HTML

from pysummaries import pandas_to_report_html, get_styles
# a couple of symbols with html codes or html tags
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/reportable_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ df = pd.DataFrame(nums, columns=pd.MultiIndex.from_tuples(cols), index=pd.MultiI
```

```{code-cell}
from IPython.core.display import display
from IPython.display import display

display(df)
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ div.sphinxsidebarwrapper {

div.sphinxsidebar {
float: left;
width: 270px;
width: 230px;
margin-left: -100%;
font-size: 90%;
word-wrap: break-word;
Expand Down
17 changes: 17 additions & 0 deletions docs/_static/images/logo_jupyterlite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 37 additions & 37 deletions docs/_static/locales/ar/LC_MESSAGES/booktheme.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,68 +8,68 @@ msgstr ""
"Language: ar\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Print to PDF"
msgstr "طباعة إلى PDF"

msgid "Theme by the"
msgstr "موضوع بواسطة"

msgid "Download source file"
msgstr "تنزيل ملف المصدر"
msgid "By the"
msgstr "بواسطة"

msgid "open issue"
msgstr "قضية مفتوحة"
msgid "By"
msgstr "بواسطة"

msgid "Contents"
msgstr "محتويات"

msgid "previous page"
msgstr "الصفحة السابقة"
msgid "Copyright"
msgstr "حقوق النشر"

msgid "Download notebook file"
msgstr "تنزيل ملف دفتر الملاحظات"

msgid "Copyright"
msgstr "حقوق النشر"
msgid "Download source file"
msgstr "تنزيل ملف المصدر"

msgid "Download this page"
msgstr "قم بتنزيل هذه الصفحة"

msgid "Source repository"
msgstr "مستودع المصدر"

msgid "By"
msgstr "بواسطة"
msgid "Edit this page"
msgstr "قم بتحرير هذه الصفحة"

msgid "repository"
msgstr "مخزن"
msgid "Fullscreen mode"
msgstr "وضع ملء الشاشة"

msgid "Last updated on"
msgstr "آخر تحديث في"

msgid "Toggle navigation"
msgstr "تبديل التنقل"

msgid "Sphinx Book Theme"
msgstr "موضوع كتاب أبو الهول"

msgid "suggest edit"
msgstr "أقترح تحرير"
msgid "Launch"
msgstr "إطلاق"

msgid "Open an issue"
msgstr "افتح قضية"

msgid "Launch"
msgstr "إطلاق"
msgid "Print to PDF"
msgstr "طباعة إلى PDF"

msgid "Fullscreen mode"
msgstr "وضع ملء الشاشة"
msgid "Source repository"
msgstr "مستودع المصدر"

msgid "Edit this page"
msgstr "قم بتحرير هذه الصفحة"
msgid "Sphinx Book Theme"
msgstr "موضوع كتاب أبو الهول"

msgid "By the"
msgstr "بواسطة"
msgid "Theme by the"
msgstr "موضوع بواسطة"

msgid "Toggle navigation"
msgstr "تبديل التنقل"

msgid "next page"
msgstr "الصفحة التالية"

msgid "open issue"
msgstr "قضية مفتوحة"

msgid "previous page"
msgstr "الصفحة السابقة"

msgid "repository"
msgstr "مخزن"

msgid "suggest edit"
msgstr "أقترح تحرير"
74 changes: 37 additions & 37 deletions docs/_static/locales/bg/LC_MESSAGES/booktheme.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,68 +8,68 @@ msgstr ""
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Print to PDF"
msgstr "Печат в PDF"

msgid "Theme by the"
msgstr "Тема от"

msgid "Download source file"
msgstr "Изтеглете изходния файл"
msgid "By the"
msgstr "По"

msgid "open issue"
msgstr "отворен брой"
msgid "By"
msgstr "От"

msgid "Contents"
msgstr "Съдържание"

msgid "previous page"
msgstr "предишна страница"
msgid "Copyright"
msgstr "Авторско право"

msgid "Download notebook file"
msgstr "Изтеглете файла на бележника"

msgid "Copyright"
msgstr "Авторско право"
msgid "Download source file"
msgstr "Изтеглете изходния файл"

msgid "Download this page"
msgstr "Изтеглете тази страница"

msgid "Source repository"
msgstr "Хранилище на източника"

msgid "By"
msgstr "От"
msgid "Edit this page"
msgstr "Редактирайте тази страница"

msgid "repository"
msgstr "хранилище"
msgid "Fullscreen mode"
msgstr "Режим на цял екран"

msgid "Last updated on"
msgstr "Последна актуализация на"

msgid "Toggle navigation"
msgstr "Превключване на навигацията"

msgid "Sphinx Book Theme"
msgstr "Тема на книгата Sphinx"

msgid "suggest edit"
msgstr "предложи редактиране"
msgid "Launch"
msgstr "Стартиране"

msgid "Open an issue"
msgstr "Отворете проблем"

msgid "Launch"
msgstr "Стартиране"
msgid "Print to PDF"
msgstr "Печат в PDF"

msgid "Fullscreen mode"
msgstr "Режим на цял екран"
msgid "Source repository"
msgstr "Хранилище на източника"

msgid "Edit this page"
msgstr "Редактирайте тази страница"
msgid "Sphinx Book Theme"
msgstr "Тема на книгата Sphinx"

msgid "By the"
msgstr "По"
msgid "Theme by the"
msgstr "Тема от"

msgid "Toggle navigation"
msgstr "Превключване на навигацията"

msgid "next page"
msgstr "Следваща страница"

msgid "open issue"
msgstr "отворен брой"

msgid "previous page"
msgstr "предишна страница"

msgid "repository"
msgstr "хранилище"

msgid "suggest edit"
msgstr "предложи редактиране"
Loading
Loading