Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC: DataFrame.unstack should accept fill_value with more types than just int/str/dict #61445

Closed
Assignees
KevsterAmp
Labels
DocsReshapingConcat, Merge/Join, Stack/Unstack, Explode
@loicdiridollou

Description

@loicdiridollou

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs onmainhere

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.unstack.html#pandas.DataFrame.unstack

Documentation problem

Currently the docs stipulate that onlyint,str anddict are allowed for thefill_value, yet it seems like all the types that could be used when creating aDataFrame seem to pass at runtime. I have not tried them all yet but int, float, complex, timestamp are working fine.

Suggested fix for documentation

Add all allowed types for dataframe elements for thefill_value field.
Happy to create the PR if this is agreed by the maintainers. I will raise the issue in the pandas-stubs repo.

Metadata

Metadata

Assignees

Labels

DocsReshapingConcat, Merge/Join, Stack/Unstack, Explode

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp