def _prep_panel_data(data):
 if isinstance(data, Panel):
  return data
 return Panel.fromDict(data)

def _prep_panel_data ( data ) : if isinstance ( data , Panel ) : return data return Panel . fromDict ( data )
converts the given data into a panel .