Skip to content

docs: fix DataArray.pad constant_values default documentation#11447

Open
driphtyio wants to merge 3 commits into
pydata:mainfrom
driphtyio:main
Open

docs: fix DataArray.pad constant_values default documentation#11447
driphtyio wants to merge 3 commits into
pydata:mainfrom
driphtyio:main

Conversation

@driphtyio

Copy link
Copy Markdown

The docstring for DataArray.pad claimed constant_values defaults to 0, but the actual default is None (pads with np.nan). This aligns the documentation with the actual behavior, matching the already-correct Dataset.pad docs.

Closes #11373

driphtyio added 2 commits July 10, 2026 14:24
The docstring claimed constant_values default is 0, but actually
defaults to None (which pads with np.nan). Fix to match Dataset.pad.

Closes pydata#11373
Add guard for module=None in module_available() to avoid
TypeError from find_spec(None). Returns False instead.

Closes pydata#11344
@github-actions github-actions Bot added the topic-NamedArray Lightweight version of Variable label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-NamedArray Lightweight version of Variable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation error for DataArray.pad

1 participant