Skip to content

Commit 2890f77

Browse files
committed
Merge remote-tracking branch 'upstream/main' into cow_fillna_fix
2 parents 73db7c2 + fe0cc48 commit 2890f77

28 files changed

+347
-100
lines changed

.github/actions/setup-conda/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
- name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }}
1919
run: |
2020
grep -q ' - pyarrow' ${{ inputs.environment-file }}
21-
sed -i"" -e "s/ - pyarrow<11/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
21+
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
2222
cat ${{ inputs.environment-file }}
2323
shell: bash
2424
if: ${{ inputs.pyarrow-version }}

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies:
4242
- psycopg2
4343
- pymysql
4444
- pytables
45-
- pyarrow<11
45+
- pyarrow
4646
- pyreadstat
4747
- python-snappy
4848
- pyxlsb

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies:
4242
- psycopg2
4343
- pymysql
4444
# - pytables>=3.8.0 # first version that supports 3.11
45-
- pyarrow<11
45+
- pyarrow
4646
- pyreadstat
4747
- python-snappy
4848
- pyxlsb

ci/deps/actions-38-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- openpyxl
4141
- odfpy
4242
- psycopg2
43-
- pyarrow<11
43+
- pyarrow
4444
- pymysql
4545
- pyreadstat
4646
- pytables

ci/deps/actions-38.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- odfpy
4141
- pandas-gbq
4242
- psycopg2
43-
- pyarrow<11
43+
- pyarrow
4444
- pymysql
4545
- pyreadstat
4646
- pytables

ci/deps/actions-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- pandas-gbq
4242
- psycopg2
4343
- pymysql
44-
- pyarrow<11
44+
- pyarrow
4545
- pyreadstat
4646
- pytables
4747
- python-snappy

ci/deps/circle-38-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- odfpy
4141
- pandas-gbq
4242
- psycopg2
43-
- pyarrow<11
43+
- pyarrow
4444
- pymysql
4545
# Not provided on ARM
4646
#- pyreadstat

doc/source/user_guide/io.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5498,11 +5498,8 @@ included in Python's standard library by default.
54985498
You can find an overview of supported drivers for each SQL dialect in the
54995499
`SQLAlchemy docs <https://docs.sqlalchemy.org/en/latest/dialects/index.html>`__.
55005500

5501-
If SQLAlchemy is not installed, a fallback is only provided for sqlite (and
5502-
for mysql for backwards compatibility, but this is deprecated and will be
5503-
removed in a future version).
5504-
This mode requires a Python database adapter which respect the `Python
5505-
DB-API <https://www.python.org/dev/peps/pep-0249/>`__.
5501+
If SQLAlchemy is not installed, you can use a :class:`sqlite3.Connection` in place of
5502+
a SQLAlchemy engine, connection, or URI string.
55065503

55075504
See also some :ref:`cookbook examples <cookbook.sql>` for some advanced strategies.
55085505

doc/source/whatsnew/v2.0.0.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ Copy-on-Write improvements
244244
a modification to the data happens) when constructing a Series from an existing
245245
Series with the default of ``copy=False`` (:issue:`50471`)
246246

247+
- The :class:`DataFrame` constructor, when constructing a DataFrame from a dictionary
248+
of Series objects and specifying ``copy=False``, will now use a lazy copy
249+
of those Series objects for the columns of the DataFrame (:issue:`50777`)
250+
247251
- Trying to set values using chained assignment (for example, ``df["a"][1:3] = 0``)
248252
will now always raise an exception when Copy-on-Write is enabled. In this mode,
249253
chained assignment can never work because we are always setting into a temporary
@@ -787,7 +791,9 @@ Other API changes
787791
- The levels of the index of the :class:`Series` returned from ``Series.sparse.from_coo`` now always have dtype ``int32``. Previously they had dtype ``int64`` (:issue:`50926`)
788792
- :func:`to_datetime` with ``unit`` of either "Y" or "M" will now raise if a sequence contains a non-round ``float`` value, matching the ``Timestamp`` behavior (:issue:`50301`)
789793
- The methods :meth:`Series.round`, :meth:`DataFrame.__invert__`, :meth:`Series.__invert__`, :meth:`DataFrame.swapaxes`, :meth:`DataFrame.first`, :meth:`DataFrame.last`, :meth:`Series.first`, :meth:`Series.last` and :meth:`DataFrame.align` will now always return new objects (:issue:`51032`)
794+
- :class:`DataFrameGroupBy` aggregations (e.g. "sum") with object-dtype columns no longer infer non-object dtypes for their results, explicitly call ``result.infer_objects(copy=False)`` on the result to obtain the old behavior (:issue:`51205`)
790795
- Added :func:`pandas.api.types.is_any_real_numeric_dtype` to check for real numeric dtypes (:issue:`51152`)
796+
-
791797

792798
.. ---------------------------------------------------------------------------
793799
.. _whatsnew_200.deprecations:

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies:
4343
- odfpy
4444
- py
4545
- psycopg2
46-
- pyarrow<11
46+
- pyarrow
4747
- pymysql
4848
- pyreadstat
4949
- pytables

0 commit comments

Comments
 (0)