Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ee686f1
TST: added test_empty_frame for test_to_markdown.py (#31771)
ylin00 Sep 8, 2020
fa52751
DOC: fixed #31771. Required tabulate >= 0.8.7
ylin00 Sep 8, 2020
e35eb31
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Sep 8, 2020
f12abbb
passed `black pandas`
ylin00 Sep 8, 2020
e37db1b
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Sep 9, 2020
bdac666
Merge branch 'master' into yl-tests
ylin00 Sep 9, 2020
688bc12
Merge branch 'master' into yl-tests
ylin00 Sep 11, 2020
62665ef
Merge branch 'master' into yl-tests
ylin00 Sep 11, 2020
38cec9c
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Sep 11, 2020
a2292f5
DOC: update increase dependency of tabulate in 1.2 what's new (#36233)
ylin00 Sep 11, 2020
b7f9623
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Sep 13, 2020
57ee404
updated _optional.py for change of independence
ylin00 Sep 13, 2020
18e86ab
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Sep 19, 2020
2d0271a
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Oct 7, 2020
a333c39
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Oct 12, 2020
cd8309a
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Oct 17, 2020
27a0316
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Oct 23, 2020
09d98d2
Merge branch 'master' of https://github.com/pandas-dev/pandas into yl…
ylin00 Dec 3, 2020
97e9121
merge master
arw2019 Dec 11, 2020
8348946
whatsnew
arw2019 Dec 11, 2020
94047d3
bump tabulate version in azure-38
arw2019 Dec 11, 2020
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
2 changes: 1 addition & 1 deletion ci/deps/azure-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
- python-dateutil
- nomkl
- pytz
- tabulate==0.8.3
- tabulate==0.8.7
2 changes: 1 addition & 1 deletion doc/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pyreadstat SPSS files (.sav) reading
pyxlsb 1.0.6 Reading for xlsb files
qtpy Clipboard I/O
s3fs 0.4.0 Amazon S3 access
tabulate 0.8.3 Printing in Markdown-friendly format (see `tabulate`_)
tabulate 0.8.7 Printing in Markdown-friendly format (see `tabulate`_)
xarray 0.12.3 pandas-like API for N-dimensional data
xclip Clipboard I/O on linux
xlrd 1.2.0 Excel reading
Expand Down
71 changes: 70 additions & 1 deletion doc/source/whatsnew/v1.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,76 @@ These are bug fixes that might have notable behavior changes.

Increased minimum versions for dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some minimum supported versions of dependencies were updated.
If installed, we now require:

+-----------------+-----------------+----------+---------+
| Package | Minimum Version | Required | Changed |
+=================+=================+==========+=========+
| numpy | 1.16.5 | X | |
+-----------------+-----------------+----------+---------+
| pytz | 2017.3 | X | |
+-----------------+-----------------+----------+---------+
| python-dateutil | 2.7.3 | X | |
+-----------------+-----------------+----------+---------+
| bottleneck | 1.2.1 | | |
+-----------------+-----------------+----------+---------+
| numexpr | 2.6.8 | | |
+-----------------+-----------------+----------+---------+
| pytest (dev) | 5.0.1 | | |
+-----------------+-----------------+----------+---------+
| mypy (dev) | 0.782 | | |
+-----------------+-----------------+----------+---------+

For `optional libraries <https://dev.pandas.io/docs/install.html#dependencies>`_ the general recommendation is to use the latest version.
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
Optional libraries below the lowest tested version may still work, but are not considered supported.

+-----------------+-----------------+---------+
| Package | Minimum Version | Changed |
+=================+=================+=========+
| beautifulsoup4 | 4.6.0 | |
+-----------------+-----------------+---------+
| fastparquet | 0.3.2 | |
+-----------------+-----------------+---------+
| fsspec | 0.7.4 | |
+-----------------+-----------------+---------+
| gcsfs | 0.6.0 | |
+-----------------+-----------------+---------+
| lxml | 4.3.0 | |
+-----------------+-----------------+---------+
| matplotlib | 2.2.3 | |
+-----------------+-----------------+---------+
| numba | 0.46.0 | |
+-----------------+-----------------+---------+
| openpyxl | 2.6.0 | |
+-----------------+-----------------+---------+
| pyarrow | 0.15.0 | |
+-----------------+-----------------+---------+
| pymysql | 0.7.11 | |
+-----------------+-----------------+---------+
| pytables | 3.5.1 | |
+-----------------+-----------------+---------+
| s3fs | 0.4.0 | |
+-----------------+-----------------+---------+
| scipy | 1.2.0 | |
+-----------------+-----------------+---------+
| sqlalchemy | 1.2.8 | |
+-----------------+-----------------+---------+
| tabulate | 0.8.7 | X |
+-----------------+-----------------+---------+
| xarray | 0.12.0 | |
+-----------------+-----------------+---------+
| xlrd | 1.2.0 | |
+-----------------+-----------------+---------+
| xlsxwriter | 1.0.2 | |
+-----------------+-----------------+---------+
| xlwt | 1.3.0 | |
+-----------------+-----------------+---------+
| pandas-gbq | 0.12.0 | |
+-----------------+-----------------+---------+

See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.

.. _whatsnew_130.api.other:

Expand Down
2 changes: 1 addition & 1 deletion pandas/compat/_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scipy": "1.2.0",
"sqlalchemy": "1.2.8",
"tables": "3.5.1",
"tabulate": "0.8.3",
"tabulate": "0.8.7",
"xarray": "0.12.3",
"xlrd": "1.2.0",
"xlwt": "1.3.0",
Expand Down
11 changes: 11 additions & 0 deletions pandas/tests/io/formats/test_to_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ def test_simple():
)


def test_empty_frame():
buf = StringIO()
df = pd.DataFrame({"id": [], "first_name": [], "last_name": []}).set_index("id")
df.to_markdown(buf=buf)
result = buf.getvalue()
assert result == (
"| id | first_name | last_name |\n"
"|------|--------------|-------------|"
)


def test_other_tablefmt():
buf = StringIO()
df = pd.DataFrame([1, 2, 3])
Expand Down