Skip to content

Warnings when using Pandas 1.4 #560

Closed
@drhagen

Description

@drhagen

In Pandas 1.4.0, the .append method of data frames and series was deprecated. This causes warnings to appear in Jupyter when using lots of plotnine functions which use .append. For example, the fourth example from the README:

from plotnine import *
from plotnine.data import mtcars

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear'))

Screenshot from 2022-02-03 11-18-13

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions