Advertisement
Guest User

error trace

a guest
May 7th, 2015
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.34 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. AttributeError                            Traceback (most recent call last)
  3. //anaconda/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
  4.     693                 type_pprinters=self.type_printers,
  5.     694                 deferred_pprinters=self.deferred_printers)
  6. --> 695             printer.pretty(obj)
  7.     696             printer.flush()
  8.     697             return stream.getvalue()
  9.  
  10. //anaconda/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
  11.     399                             if callable(meth):
  12.     400                                 return meth(obj, self, cycle)
  13. --> 401             return _default_pprint(obj, self, cycle)
  14.     402         finally:
  15.     403             self.end_group()
  16.  
  17. //anaconda/lib/python2.7/site-packages/IPython/lib/pretty.pyc in _default_pprint(obj, p, cycle)
  18.     519     if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs:
  19.     520         # A user-provided repr. Find newlines and replace them with p.break_()
  20. --> 521         _repr_pprint(obj, p, cycle)
  21.     522         return
  22.     523     p.begin_group(1, '<')
  23.  
  24. //anaconda/lib/python2.7/site-packages/IPython/lib/pretty.pyc in _repr_pprint(obj, p, cycle)
  25.     701     """A pprint that just redirects to the normal repr function."""
  26.     702     # Find newlines and replace them with p.break_()
  27. --> 703     output = repr(obj)
  28.     704     for idx,output_line in enumerate(output.splitlines()):
  29.     705         if idx:
  30.  
  31. //anaconda/lib/python2.7/site-packages/pandas/core/base.pyc in __repr__(self)
  32.      63         Yields Bytestring in Py2, Unicode String in py3.
  33.      64         """
  34. ---> 65         return str(self)
  35.     66
  36.     67
  37.  
  38. //anaconda/lib/python2.7/site-packages/pandas/core/base.pyc in __str__(self)
  39.     43         if compat.PY3:
  40.     44             return self.__unicode__()
  41. ---> 45         return self.__bytes__()
  42.     46
  43.     47     def __bytes__(self):
  44.  
  45. //anaconda/lib/python2.7/site-packages/pandas/core/base.pyc in __bytes__(self)
  46.     55
  47.     56         encoding = get_option("display.encoding")
  48. ---> 57         return self.__unicode__().encode(encoding, 'replace')
  49.     58
  50.     59     def __repr__(self):
  51.  
  52. //anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in __unicode__(self)
  53.    494             width = None
  54.    495         self.to_string(buf=buf, max_rows=max_rows, max_cols=max_cols,
  55. --> 496                        line_width=width, show_dimensions=show_dimensions)
  56.    497
  57.    498         return buf.getvalue()
  58.  
  59. //anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in to_string(self, buf, columns, col_space, colSpace, header, index, na_rep, formatters, float_format, sparsify, index_names, justify, line_width, max_rows, max_cols, show_dimensions)
  60.   1327                                            max_cols=max_cols,
  61.   1328                                            show_dimensions=show_dimensions)
  62. -> 1329         formatter.to_string()
  63.   1330
  64.   1331         if buf is None:
  65.  
  66. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in to_string(self)
  67.    482             text = info_line
  68.    483         else:
  69. --> 484             strcols = self._to_str_columns()
  70.    485             if self.line_width is None:  # no need to wrap around just print the whole frame
  71.    486                 text = adjoin(1, *strcols)
  72.  
  73. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in _to_str_columns(self)
  74.    410                                    *(_strlen(x) for x in cheader))
  75.    411
  76. --> 412                 fmt_values = self._format_col(i)
  77.    413
  78.    414                 fmt_values = _make_fixed_width(fmt_values, self.justify,
  79.  
  80. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in _format_col(self, i)
  81.    658         formatter = self._get_formatter(i)
  82.    659         return format_array(
  83. --> 660             (frame.iloc[:, i]).get_values(),
  84.    661             formatter, float_format=self.float_format, na_rep=self.na_rep,
  85.    662             space=self.col_space
  86.  
  87. //anaconda/lib/python2.7/site-packages/pandas/sparse/series.pyc in get_values(self)
  88.    220     def get_values(self):
  89.    221         """ same as values """
  90. --> 222         return self._data._values.to_dense().view()
  91.    223
  92.    224     @property
  93.  
  94. AttributeError: 'SingleBlockManager' object has no attribute 'to_dense'
  95.  
  96. ---------------------------------------------------------------------------
  97. AttributeError                            Traceback (most recent call last)
  98. //anaconda/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
  99.    337             method = _safe_get_formatter_method(obj, self.print_method)
  100.    338             if method is not None:
  101. --> 339                 return method()
  102.    340             return None
  103.    341         else:
  104.  
  105. //anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _repr_html_(self)
  106.    529                     'max-width:1500px;overflow:auto;">\n' +
  107.    530                     self.to_html(max_rows=max_rows, max_cols=max_cols,
  108. --> 531                                  show_dimensions=show_dimensions) + '\n</div>')
  109.    532         else:
  110.    533             return None
  111.  
  112. //anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in to_html(self, buf, columns, col_space, colSpace, header, index, na_rep, formatters, float_format, sparsify, index_names, justify, bold_rows, classes, escape, max_rows, max_cols, show_dimensions)
  113.   1377                                            max_cols=max_cols,
  114.   1378                                            show_dimensions=show_dimensions)
  115. -> 1379         formatter.to_html(classes=classes)
  116.   1380
  117.   1381         if buf is None:
  118.  
  119. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in to_html(self, classes)
  120.    671                                       max_cols=self.max_cols)
  121.    672         if hasattr(self.buf, 'write'):
  122. --> 673             html_renderer.write_result(self.buf)
  123.    674         elif isinstance(self.buf, compat.string_types):
  124.    675             with open(self.buf, 'w') as f:
  125.  
  126. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in write_result(self, buf)
  127.    863         indent += self.indent_delta
  128.    864         indent = self._write_header(indent)
  129. --> 865         indent = self._write_body(indent)
  130.    866
  131.    867         self.write('</table>', indent)
  132.  
  133. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in _write_body(self, indent)
  134.   1007         fmt_values = {}
  135.   1008         for i in range(min(len(self.columns), self.max_cols)):
  136. -> 1009             fmt_values[i] = self.fmt._format_col(i)
  137.   1010
  138.   1011         # write values
  139.  
  140. //anaconda/lib/python2.7/site-packages/pandas/core/format.pyc in _format_col(self, i)
  141.    658         formatter = self._get_formatter(i)
  142.    659         return format_array(
  143. --> 660             (frame.iloc[:, i]).get_values(),
  144.    661             formatter, float_format=self.float_format, na_rep=self.na_rep,
  145.    662             space=self.col_space
  146.  
  147. //anaconda/lib/python2.7/site-packages/pandas/sparse/series.pyc in get_values(self)
  148.    220     def get_values(self):
  149.    221         """ same as values """
  150. --> 222         return self._data._values.to_dense().view()
  151.    223
  152.    224     @property
  153.  
  154. AttributeError: 'SingleBlockManager' object has no attribute 'to_dense'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement