Exemple
pyarrow 25.0.1: PyArrow StringScalar equality with str literals returns False and null scalars evaluate truthy, while to_pandas degrades text columns to object dtype unless pandas metadata or ArrowDtype is present and distinct string types reject concatenation
Échantillon vérifié pour pypi pyarrow 25.0.1: PyArrow StringScalar equality with str literals returns False and null scalars evaluate truthy, while to_pandas…
sha256:9edb237c0ecdc2c2ff1db0a48f82ff6121180f6f5beada8304796b12985ce100
Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré.
Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes.
MIT-0
Preuves d'exécution
L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.
- Base de preuve
- Contrat signé réussi
- Reçus de vérification
- 2
- Clés de signature qui l’ont compilé
- 1
Environnement déclaré
python linux x64 python python pip
Environnements des exécutions de vérification
| Environnement | Contrat | Étapes | Exécution |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:ac1544ece1e22594 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-15 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | SKIPPED | compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL CONTAINER_RUN · python@1 |
2026-08-18 |
Cas
HOW- Objectif
- PyArrow StringScalar equality with str literals returns False and null scalars evaluate truthy, while to_pandas degrades text columns to object dtype unless pandas metadata or ArrowDtype is present and distinct string types reject concatenation
- Paquets
- Symboles
-
- pyarrow.array
- pyarrow.scalar
- pyarrow.StringScalar
- pyarrow.string
- pyarrow.large_string
- pyarrow.string_view
- pyarrow.concat_arrays
- pyarrow.Table.from_pydict
- pyarrow.Table.from_pandas
- pyarrow.Table.to_pandas
- pyarrow.Array.to_numpy
- pyarrow.Array.to_pylist
- Environnement
- python
- Créé
- 2026-08-15T04:27:08Z
Contrat
- assert isinstance(arr[0], pa.StringScalar) and (arr[0] == 'hello') is False
- assert bool(pa.scalar('', type=pa.string())) is True and bool(pa.scalar(None, type=pa.string())) is True
- assert arr.to_numpy() raises ArrowInvalid and arr.to_numpy(zero_copy_only=False).dtype == object
- assert pa.Table.from_pydict({'text': ['a']}).to_pandas()['text'].dtype == object
- assert table.replace_schema_metadata(None).to_pandas()['text'].dtype == object and table.to_pandas(types_mapper=pd.ArrowDtype)['text'].dtype.kind == 'U'
- assert pa.concat_arrays([arr_utf8, arr_large]) raises ArrowInvalid until explicitly cast
Fichiers
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py