Backport PR #25556 on branch 0.24.x (BUG: Handle readonly arrays in period_array)
State: closed

Backport PR #25556: BUG: Handle readonly arrays in period_array

Labels:

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=h1) Report
> Merging [#25591](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/f99f44aa06b97fbbe0ac624475afe64b03c5d317?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25591/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25591      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52419    52419              
==========================================
+ Hits        48432    48433       +1     
+ Misses       3987     3986       -1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <ø> (ø)` | :arrow_up: |
| #single | `42.9% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25591/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `88.13% <0%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=footer). Last update [f99f44a...082f47e](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=h1) Report
> Merging [#25591](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/f99f44aa06b97fbbe0ac624475afe64b03c5d317?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25591/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25591      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52419    52419              
==========================================
+ Hits        48432    48433       +1     
+ Misses       3987     3986       -1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <ø> (ø)` | :arrow_up: |
| #single | `42.9% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25591/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `88.13% <0%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=footer). Last update [f99f44a...082f47e](https://codecov.io/gh/pandas-dev/pandas/pull/25591?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).