IndexError: index 16 is out of bounds for axis 0 with size 14

435 views
Skip to first unread message

Will Du

unread,
Dec 30, 2013, 1:02:40 PM12/30/13
to bambo...@googlegroups.com
Hi folks,
When I perform join on two dataset. it says following error "IndexError: index 16 is out of bounds for axis 0 with size 14". What's the cause of it.
my right table only have one row and the join collomn is unique.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
        <title>500 Internal Server Error</title>
        <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
    </head>
    <body>
        <h2>500 Internal Server Error</h2>
        <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>
        <pre id="traceback">Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/bamboo/controllers/datasets.py", line 357, in join
    dataset_id, action, exceptions=(KeyError, NonUniqueJoinError))
  File "/usr/local/lib/python2.7/dist-packages/bamboo/controllers/abstract_controller.py", line 119, in _safe_get_and_call
    result = action(dataset)
  File "/usr/local/lib/python2.7/dist-packages/bamboo/controllers/datasets.py", line 350, in action
    merged_dataset = dataset.join(other_dataset, on)
  File "/usr/local/lib/python2.7/dist-packages/bamboo/models/dataset.py", line 473, in join
    merged_dframe = merged_dframe.join_dataset(other, on)
  File "/usr/local/lib/python2.7/dist-packages/bamboo/core/frame.py", line 152, in join_dataset
    right_dframe.rename(columns=rename_map[1], inplace=True)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 3802, in rename
    result._rename_columns_inplace(columns_f)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 3812, in _rename_columns_inplace
    self._data = self._data.rename_items(mapper, copydata=False)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/internals.py", line 2169, in rename_items
    newb.set_ref_items(new_items, maybe_rename=True)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/internals.py", line 92, in set_ref_items
    self.items = ref_items.take(self.ref_locs)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/index.py", line 395, in take
    taken = self.view(np.ndarray).take(indexer)
IndexError: index 16 is out of bounds for axis 0 with size 14
</pre>
        <div id="powered_by">
            <span>Powered by 
                <a href="http://www.cherrypy.org">CherryPy 3.2.4</a>
            </span>
        </div>
    </body>
</html>

Reply all
Reply to author
Forward
0 new messages