Skip to content

Commit

Permalink
fix pandas wrapper: shallow not deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 16, 2020
1 parent cb60ea9 commit 9c99663
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tqdm/std.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ def pandas(cls, **tqdm_kwargs):
<https://stackoverflow.com/questions/18603270/\
progress-indicator-during-pandas-operations-python>
"""
from copy import deepcopy
from pandas.core.frame import DataFrame
from pandas.core.series import Series
try:
Expand Down Expand Up @@ -699,7 +698,7 @@ def pandas(cls, **tqdm_kwargs):
except ImportError: # pandas>=0.25.0
PanelGroupBy = None

tqdm_kwargs = deepcopy(tqdm_kwargs)
tqdm_kwargs = tqdm_kwargs.copy()
deprecated_t = [tqdm_kwargs.pop('deprecated_t', None)]

def inner_generator(df_function='apply'):
Expand Down

0 comments on commit 9c99663

Please sign in to comment.