Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1.  
  2. ---------------------------------------------------------------------------
  3. KeyError Traceback (most recent call last)
  4. /anaconda/lib/python3.6/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
  5. 2392 try:
  6. -> 2393 return self._engine.get_loc(key)
  7. 2394 except KeyError:
  8.  
  9. pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc (pandas/_libs/index.c:5239)()
  10.  
  11. pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc (pandas/_libs/index.c:5085)()
  12.  
  13. pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas/_libs/hashtable.c:20405)()
  14.  
  15. pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas/_libs/hashtable.c:20359)()
  16.  
  17. KeyError: 'CDKN2A mRNA Expression (RNA Seq V2 RSEM)'
  18.  
  19. During handling of the above exception, another exception occurred:
  20.  
  21. KeyError Traceback (most recent call last)
  22. <ipython-input-57-9a188e96fe68> in <module>()
  23. ----> 1 me.plot(kind='scatter', x='CDKN2A mRNA Expression (RNA Seq V2 RSEM)', y='CDKN2A Methylation')
  24.  
  25. /anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
  26. 2618 fontsize=fontsize, colormap=colormap, table=table,
  27. 2619 yerr=yerr, xerr=xerr, secondary_y=secondary_y,
  28. -> 2620 sort_columns=sort_columns, **kwds)
  29. 2621 __call__.__doc__ = plot_frame.__doc__
  30. 2622
  31.  
  32. /anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
  33. 1855 yerr=yerr, xerr=xerr,
  34. 1856 secondary_y=secondary_y, sort_columns=sort_columns,
  35. -> 1857 **kwds)
  36. 1858
  37. 1859
  38.  
  39. /anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py in _plot(data, x, y, subplots, ax, kind, **kwds)
  40. 1680 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
  41. 1681
  42. -> 1682 plot_obj.generate()
  43. 1683 plot_obj.draw()
  44. 1684 return plot_obj.result
  45.  
  46. /anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py in generate(self)
  47. 236 self._compute_plot_data()
  48. 237 self._setup_subplots()
  49. --> 238 self._make_plot()
  50. 239 self._add_table()
  51. 240 self._make_legend()
  52.  
  53. /anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py in _make_plot(self)
  54. 829 else:
  55. 830 label = None
  56. --> 831 scatter = ax.scatter(data[x].values, data[y].values, c=c_values,
  57. 832 label=label, cmap=cmap, **self.kwds)
  58. 833 if cb:
  59.  
  60. /anaconda/lib/python3.6/site-packages/pandas/core/frame.py in __getitem__(self, key)
  61. 2060 return self._getitem_multilevel(key)
  62. 2061 else:
  63. -> 2062 return self._getitem_column(key)
  64. 2063
  65. 2064 def _getitem_column(self, key):
  66.  
  67. /anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _getitem_column(self, key)
  68. 2067 # get column
  69. 2068 if self.columns.is_unique:
  70. -> 2069 return self._get_item_cache(key)
  71. 2070
  72. 2071 # duplicate columns & possible reduce dimensionality
  73.  
  74. /anaconda/lib/python3.6/site-packages/pandas/core/generic.py in _get_item_cache(self, item)
  75. 1532 res = cache.get(item)
  76. 1533 if res is None:
  77. -> 1534 values = self._data.get(item)
  78. 1535 res = self._box_item_values(item, values)
  79. 1536 cache[item] = res
  80.  
  81. /anaconda/lib/python3.6/site-packages/pandas/core/internals.py in get(self, item, fastpath)
  82. 3588
  83. 3589 if not isnull(item):
  84. -> 3590 loc = self.items.get_loc(item)
  85. 3591 else:
  86. 3592 indexer = np.arange(len(self.items))[isnull(self.items)]
  87.  
  88. /anaconda/lib/python3.6/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
  89. 2393 return self._engine.get_loc(key)
  90. 2394 except KeyError:
  91. -> 2395 return self._engine.get_loc(self._maybe_cast_indexer(key))
  92. 2396
  93. 2397 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
  94.  
  95. pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc (pandas/_libs/index.c:5239)()
  96.  
  97. pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc (pandas/_libs/index.c:5085)()
  98.  
  99. pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas/_libs/hashtable.c:20405)()
  100.  
  101. pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas/_libs/hashtable.c:20359)()
  102.  
  103. KeyError: 'CDKN2A mRNA Expression (RNA Seq V2 RSEM)'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement