From 4159f9548fa5f95c02366efc324e88f9ba79af09 Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Thu, 1 Aug 2024 21:14:49 +0300 Subject: [PATCH] Remove unneeded wraper method in PlotnineAnimation --- plotnine/animation.py | 7 ------- 1 file changed, 7 deletions(-) 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