Search code examples
pythonpandaspandas-profiling

keyword rotation is not recognized (Pandas Profiling)


I am trying to use pandas_profiling package for data profiling. For basic usage, i have followed this documentation

https://github.com/pandas-profiling/pandas-profiling

and use the following code from it

import numpy as np
import pandas as pd
import pandas_profiling

df = pd.DataFrame(
np.random.rand(100, 5),
columns=['a', 'b', 'c', 'd', 'e']
)

df.profile_report(style={'full_width':True})

But upon running this code in Anaconda I am getting following error

ValueError: keyword rotation is not recognized; valid keywords are ['size', 'width', 'color', 'tickdir', 'pad', 'labelsize', 'labelcolor', 'zorder', 'gridOn', 'tick1On', 'tick2On', 'label1On', 'label2On', 'length', 'direction', 'left', 'bottom', 'right', 'top', 'labelleft', 'labelbottom', 'labelright', 'labeltop']


Solution

  • For future reference: update your pandas and matplotlib packages. Versions of pandas-profiling later than 2.4.0 will automatically update these packages.