Skip to content

TypeError: _plot_histogram() got an unexpected keyword argument 'title' #528

Closed
@kseniiailchenko

Description

@kseniiailchenko

Hello, I am trying to use pandas_profiling but I got an isssue with _plot histogram() it seems.
I have pandas version 1.0.5 and pandas_profiling 2.7.1
Please see the code and error description below.

import pandas as pd
import pandas_profiling as pp

from pandas_profiling import ProfileReport
df = pd.DataFrame(
np.random.rand(100, 5),
columns=["a", "b", "c", "d", "e"]
)
profile = ProfileReport(df, title="Pandas Profiling Report")
RemoteTraceback:
"""
Traceback (most recent call last):
File "Z:\Documents\anaconda\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "Z:\Documents\anaconda\lib\multiprocessing\pool.py", line 44, in mapstar
return list(map(*args))
File "C:\Users\ILCHENKO\pandas_profiling\describe.py", line 282, in multiprocess_func
return x[0], describe_1d(x[1], **kwargs)
File "C:\Users\ILCHENKO\pandas_profiling\describe.py", line 270, in describe_1d
result = result.append(describe_numeric_1d(data, **kwargs))
File "C:\Users\ILCHENKO\pandas_profiling\describe.py", line 54, in describe_numeric_1d
stats['histogram'] = histogram(series, **kwargs)
File "C:\Users\ILCHENKO\pandas_profiling\plot.py", line 73, in histogram
plot = _plot_histogram(series, **kwargs)
TypeError: _plot_histogram() got an unexpected keyword argument 'title'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "", line 12, in
profile = ProfileReport(df, title="Pandas Profiling Report")

File "C:\Users\ILCHENKO\pandas_profiling_init_.py", line 66, in init
description_set = describe(df, **kwargs)

File "C:\Users\ILCHENKO\pandas_profiling\describe.py", line 351, in describe
ldesc = {col: s for col, s in pool.map(local_multiprocess_func, df.iteritems())}

File "Z:\Documents\anaconda\lib\multiprocessing\pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()

File "Z:\Documents\anaconda\lib\multiprocessing\pool.py", line 657, in get
raise self._value

TypeError: _plot_histogram() got an unexpected keyword argument 'title'

Could you please advise me something?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions