Skip to content Skip to sidebar Skip to footer

I"m Getting This Error: TypeError: Object() Takes No Parameters

I'm getting this error: TypeError: object() takes no parameters My code: import numpy as np import pandas as pd data = np.random.rand(2, 4, 5) p = pd.Panel(data) I expect the ou

Solution 1:

If you are using a recent version of pandas, you will find that Panel has been removed.

Panel was removed in 0.25.0. For prior documentation, see the 0.24 documentation

This Stack Overflow post explains the recommended alternative.


Post a Comment for "I"m Getting This Error: TypeError: Object() Takes No Parameters"