Skip to content

Commit 2f6af2e

Browse files
authored
Merge branch 'main' into issue57049
2 parents 57fa141 + d575eea commit 2f6af2e

File tree

5 files changed

+14
-28
lines changed

5 files changed

+14
-28
lines changed

doc/source/reference/arrays.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ is an :class:`ArrowDtype`.
6161
support as NumPy including first-class nullability support for all data types, immutability and more.
6262

6363
The table below shows the equivalent pyarrow-backed (``pa``), pandas extension, and numpy (``np``) types that are recognized by pandas.
64-
Pyarrow-backed types below need to be passed into :class:`ArrowDtype` to be recognized by pandas e.g. ``pd.ArrowDtype(pa.bool_())``
64+
Pyarrow-backed types below need to be passed into :class:`ArrowDtype` to be recognized by pandas e.g. ``pd.ArrowDtype(pa.bool_())``.
6565

6666
=============================================== ========================== ===================
6767
PyArrow type pandas extension type NumPy type
@@ -114,7 +114,7 @@ values.
114114

115115
ArrowDtype
116116

117-
For more information, please see the :ref:`PyArrow user guide <pyarrow>`
117+
For more information, please see the :ref:`PyArrow user guide <pyarrow>`.
118118

119119
.. _api.arrays.datetime:
120120

@@ -495,7 +495,7 @@ a :class:`CategoricalDtype`.
495495
CategoricalDtype.categories
496496
CategoricalDtype.ordered
497497

498-
Categorical data can be stored in a :class:`pandas.Categorical`
498+
Categorical data can be stored in a :class:`pandas.Categorical`:
499499

500500
.. autosummary::
501501
:toctree: api/

doc/source/user_guide/text.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Text data types
1313

1414
There are two ways to store text data in pandas:
1515

16-
1. ``object`` -dtype NumPy array.
16+
1. ``object`` dtype NumPy array.
1717
2. :class:`StringDtype` extension type.
1818

1919
We recommend using :class:`StringDtype` to store text data.
@@ -40,20 +40,20 @@ to significantly increase the performance and lower the memory overhead of
4040
and parts of the API may change without warning.
4141

4242
For backwards-compatibility, ``object`` dtype remains the default type we
43-
infer a list of strings to
43+
infer a list of strings to:
4444

4545
.. ipython:: python
4646
4747
pd.Series(["a", "b", "c"])
4848
49-
To explicitly request ``string`` dtype, specify the ``dtype``
49+
To explicitly request ``string`` dtype, specify the ``dtype``:
5050

5151
.. ipython:: python
5252
5353
pd.Series(["a", "b", "c"], dtype="string")
5454
pd.Series(["a", "b", "c"], dtype=pd.StringDtype())
5555
56-
Or ``astype`` after the ``Series`` or ``DataFrame`` is created
56+
Or ``astype`` after the ``Series`` or ``DataFrame`` is created:
5757

5858
.. ipython:: python
5959
@@ -88,7 +88,7 @@ Behavior differences
8888
^^^^^^^^^^^^^^^^^^^^
8989

9090
These are places where the behavior of ``StringDtype`` objects differ from
91-
``object`` dtype
91+
``object`` dtype:
9292

9393
l. For ``StringDtype``, :ref:`string accessor methods<api.series.str>`
9494
that return **numeric** output will always return a nullable integer dtype,
@@ -102,7 +102,7 @@ l. For ``StringDtype``, :ref:`string accessor methods<api.series.str>`
102102
s.str.count("a")
103103
s.dropna().str.count("a")
104104
105-
Both outputs are ``Int64`` dtype. Compare that with object-dtype
105+
Both outputs are ``Int64`` dtype. Compare that with object-dtype:
106106

107107
.. ipython:: python
108108

pandas/tests/io/test_sql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,11 +4282,11 @@ def test_xsqlite_execute_fail(sqlite_buildin):
42824282
cur.execute(create_sql)
42834283

42844284
with sql.pandasSQL_builder(sqlite_buildin) as pandas_sql:
4285-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4286-
pandas_sql.execute('INSERT INTO test VALUES("foo", "baz", 2.567)')
4285+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
4286+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'baz', 2.567)")
42874287

42884288
with pytest.raises(sql.DatabaseError, match="Execution failed on sql"):
4289-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 7)')
4289+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 7)")
42904290

42914291

42924292
def test_xsqlite_execute_closed_connection():
@@ -4304,7 +4304,7 @@ def test_xsqlite_execute_closed_connection():
43044304
cur.execute(create_sql)
43054305

43064306
with sql.pandasSQL_builder(conn) as pandas_sql:
4307-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4307+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
43084308

43094309
msg = "Cannot operate on a closed database."
43104310
with pytest.raises(sqlite3.ProgrammingError, match=msg):

web/pandas/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ and about current sponsors in the [sponsors page]({{ base_url }}about/sponsors.h
4848
infrastructure, travel expenses for our volunteer contributors to attend
4949
the in-person sprints, or to give small grants to develop features.
5050
</p>
51-
<p>Make your donation in the <a href="{{ base_url }}donate.html">donate page</a></p>
51+
<p>Make your donation in the <a href="https://opencollective.com/pandas">donate page</a></p>
5252
</div>
5353
</div>
5454
</div>

web/pandas/donate.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)