-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
p0-bug-critical ☢Exception rasingException rasingsubmodule ⊂Periphery/subclassesPeriphery/subclasses
Milestone
Description
- I have marked all applicable categories:
- exception-raising bug
- visual output bug
- documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
- new feature request
- I have visited the source website, and in particular
read the known issues - I have searched through the issue tracker for duplicates
- I have mentioned version numbers, operating system and
environment, where applicable:import tqdm, sys print(tqdm.__version__, sys.version, sys.platform)
tqdm: 4.40.1
pandas: 0.25.3
python: 3.7
Code to replicate: https://gist.github.com/matthew-z/1e90517b34ed0ad67a47e9ad5a9b94e0
import pandas
import tqdm
df = pandas.DataFrame({
"title":["abc", "bcd"]
})
l = []
tqdm.tqdm.pandas(desc="Processing")
df["title"].progress_apply(l.extend)
Error Message:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-9d87c7bad499> in <module>
1 l = []
2 tqdm.tqdm.pandas(desc="Processing")
----> 3 df["title"].progress_apply(l.extend)
~/.anaconda3/envs/pytorch/lib/python3.7/site-packages/tqdm/std.py in inner(df, func, *args, **kwargs)
733 fp_write=getattr(t.fp, 'write', sys.stderr.write))
734
--> 735 func = df._is_builtin_func(func)
736
737 # Define bar updating wrapper
~/.anaconda3/envs/pytorch/lib/python3.7/site-packages/pandas/core/base.py in _is_builtin_func(self, arg)
664 otherwise return the arg
665 """
--> 666 return self._builtin_table.get(arg, arg)
667
668
TypeError: unhashable type: 'list'
Metadata
Metadata
Assignees
Labels
p0-bug-critical ☢Exception rasingException rasingsubmodule ⊂Periphery/subclassesPeriphery/subclasses