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

What's the difference between sortvalued gapminder and original gapminder while ploting a line plot? #5280

Closed
@kenkang99

Description

@kenkang99
importplotly.expressaspxgapminder=px.data.gapminder()gapAsia=gapminder[gapminder['continent']=='Asia']px.line(gapAsia,x='year',y='lifeExp')
Image
gapAsia=gapminder[gapminder['continent']=='Asia']gapAsia_sort=gapAsia.sort_values(by='year')px.line(gapAsia_sort,x='year',y='lifeExp')
Image

gapAsia might be the correct line plot i guess.

But I wonder why the line plot from gapAsia_sort look like above this.

Can anyone figure out it and explain this issue to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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