From fd45ab23ef77c55c80744e440ac17440d0ea631e Mon Sep 17 00:00:00 2001 From: Ehsan Shirvanian Date: Sun, 6 Feb 2022 21:31:06 -0400 Subject: [PATCH 1/4] Fixing documentation format in read_csv add a mising ` in on_bad_lines option description in " New in version 1.3.0: " section , that was causing to make couple of lines red --- pandas/io/parsers/readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 5f93eef4fd977..c5b84dd18ec13 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -374,7 +374,7 @@ - callable, function with signature ``(bad_line: list[str]) -> list[str] | None`` that will process a single bad line. ``bad_line`` is a list of strings split by the ``sep``. - If the function returns ``None`, the bad line will be ignored. + If the function returns ``None``, the bad line will be ignored. If the function returns a new list of strings with more elements than expected, a ``ParserWarning`` will be emitted while dropping extra elements. Only supported when ``engine="python"`` From 66433c182f8e031e0dea4247a456e7ea2841f7fd Mon Sep 17 00:00:00 2001 From: Ehsan Shirvanian Date: Fri, 25 Mar 2022 14:28:27 -0400 Subject: [PATCH 2/4] bring example result of panda.test() up to date --- doc/source/getting_started/install.rst | 29 ++++++++++++++++++-------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index e312889f2eb6a..9eb179b7a9854 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -204,17 +204,28 @@ installed), make sure you have `pytest :: >>> pd.test() - running: pytest --skip-slow --skip-network C:\Users\TP\Anaconda3\envs\py36\lib\site-packages\pandas - ============================= test session starts ============================= - platform win32 -- Python 3.6.2, pytest-3.6.0, py-1.4.34, pluggy-0.4.0 - rootdir: C:\Users\TP\Documents\Python\pandasdev\pandas, inifile: setup.cfg - collected 12145 items / 3 skipped + running: pytest --skip-slow --skip-network --skip-db /home/user/anaconda3/lib/python3.9/site-packages/pandas + hi!!! + ============================= test session starts ============================== + platform linux -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 + rootdir: /home/user + plugins: dash-1.19.0, anyio-3.5.0, hypothesis-6.29.3 + collected 154975 items / 4 skipped / 154971 selected + ........................................................................ [ 0%] + ........................................................................ [ 99%] + ....................................... [100%] - ..................................................................S...... - ........S................................................................ - ......................................................................... + ==================================== ERRORS ==================================== - ==================== 12130 passed, 12 skipped in 368.339 seconds ===================== + =================================== FAILURES =================================== + + =============================== warnings summary =============================== + + =========================== short test summary info ============================ + + = 1 failed, 146194 passed, 7402 skipped, 1367 xfailed, 5 xpassed, 197 warnings, 10 errors in 1090.16s (0:18:10) = + +This is just an example of what information is shown.You might see a slightly different result as what is shown above. .. _install.dependencies: From a4112a53edcd48787cc4ee8491d45f08ad92dd09 Mon Sep 17 00:00:00 2001 From: Ehsan Shirvanian Date: Fri, 25 Mar 2022 22:01:19 -0400 Subject: [PATCH 3/4] remove hi --- doc/source/getting_started/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index 9eb179b7a9854..2b0d054046405 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -205,7 +205,7 @@ installed), make sure you have `pytest >>> pd.test() running: pytest --skip-slow --skip-network --skip-db /home/user/anaconda3/lib/python3.9/site-packages/pandas - hi!!! + ============================= test session starts ============================== platform linux -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 rootdir: /home/user From 72f6ad05d447dfa607b4f5e378eade61af5c5a22 Mon Sep 17 00:00:00 2001 From: Ehsan Shirvanian Date: Sun, 27 Mar 2022 18:29:32 -0400 Subject: [PATCH 4/4] add space --- doc/source/getting_started/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index 2b0d054046405..adc8b3d08d441 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -225,7 +225,7 @@ installed), make sure you have `pytest = 1 failed, 146194 passed, 7402 skipped, 1367 xfailed, 5 xpassed, 197 warnings, 10 errors in 1090.16s (0:18:10) = -This is just an example of what information is shown.You might see a slightly different result as what is shown above. +This is just an example of what information is shown. You might see a slightly different result as what is shown above. .. _install.dependencies: