diff --git a/plotnine/animation.py b/plotnine/animation.py index dfa68ac65..33a6cc2d7 100644 --- a/plotnine/animation.py +++ b/plotnine/animation.py @@ -3,7 +3,6 @@ import typing from copy import deepcopy -import pandas as pd from matplotlib.animation import ArtistAnimation from .exceptions import PlotnineError @@ -71,12 +70,6 @@ def __init__( def _draw_plots( self, plots: Iterable[ggplot] - ) -> tuple[Figure, list[list[Artist]]]: - with pd.option_context("mode.chained_assignment", None): - return self.__draw_plots(plots) - - def __draw_plots( - self, plots: Iterable[ggplot] ) -> tuple[Figure, list[list[Artist]]]: """ Plot and return the figure and artists