title: What is the alternative for the deprecated Pandas.Panel
body: <p>FutureWarning: 
  Panel is deprecated and will be removed in a future version.
  The recommended way to represent these types of 3-dimensional data are with a MultiIndex on a DataFrame, via the Panel.to_frame() method.</p>
  
  <p>I am getting the above error whenever i ran this code!
  <code>difference = pd.Panel(dict(df1=df1,df2=df2))</code>
  Can anyone please tell me the alternative way for usage of Panel with the above line of code.</p>
  
  <p>Edit-1:-</p>
  
  <pre><code>def report_diff(x):
     return x[0] if x[0] == x[1] else '{} ---&gt; {}'.format(*x)
  
  difference = pd.Panel(dict(df1=df1,df2=df2))
  res = difference.apply(report_diff, axis=0)
  </code></pre>
  
  <p>Here df1 and df2 contains both categorical and numerical data.
  Just comparing the two dataframes here to get the differences between the two.</p>