You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears the warnings import is missing in panel.py
In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: pd.__version__
Out[3]: '0.14.1'
In [4]: p = pd.Panel(np.random.rand(3, 3, 3))
In [5]: p.major_xs(1, copy=False)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-0b8025289379> in <module>()
----> 1 p.major_xs(1, copy=False)
/home/aido/.env/local/lib/python2.7/site-packages/pandas/core/panel.pyc in major_xs(self, key, copy)
715 """
716 if copy is not None:
--> 717 warnings.warn("copy keyword is deprecated, "
718 "default is to return a copy or a view if possible")
719
NameError: global name 'warnings' is not defined
The text was updated successfully, but these errors were encountered:
It appears the
warnings
import is missing inpanel.py
The text was updated successfully, but these errors were encountered: