(self, row, col)
return func_text, global_vars
Example of generated implementation:
        def _df_getitem_tuple_at_impl(self, idx):
          row, _ = idx
          data = self._dataframe._data[2][0]
          res_data = pandas.Series(data, index=self._dataframe.index)
          return res_data.at[row]
Example of generated implementation:
        def _df_getitem_tuple_at_impl(self, idx):
          row, _ = idx
          data = self._dataframe._data[2][0]
          res_data = pandas.Series(data, index=self._dataframe.index)
          return res_data.at[row]
Example of generated implementation : def _df_getitem_tuple_at_impl ( self idx ) : row _ = idx data = self . _dataframe . _data [ 2 ] [ 0 ] res_data = pandas . Series ( data index = self . _dataframe . index ) return res_data . at [ row ]
def df_getitem_tuple_at_codegen(self, row, col):
    """
    Example of generated implementation:
        def _df_getitem_tuple_at_impl(self, idx):
          row, _ = idx
          data = self._dataframe._data[2][0]
          res_data = pandas.Series(data, index=self._dataframe.index)
          return res_data.at[row]
    """
    func_lines = ['def _df_getitem_tuple_at_impl(self, idx):',
                  '  row, _ = idx']
    check = False
    for i in range(len(self.columns)):
        if self.columns[i] == col:
            col_loc = self.column_loc[col]
            type_id, col_id = col_loc.type_id, col_loc.col_id
            check = True
            func_lines += [
                f'  data = self._dataframe._data[{type_id}][{col_id}]',
                f'  res_data = pandas.Series(data, index=self._dataframe.index)',
                '  return res_data.at[row]',
            ]
    if check == False:  # noqa
        raise KeyError('Column is not in the DataFrame')

    func_text = '\n'.join(func_lines)
    global_vars = {'pandas': pandas}

    return func_text, global_vars
def df_getitem_tuple_at_codegen ( self , row , col ) : func_lines = [ 'def _df_getitem_tuple_at_impl(self, idx):' , '  row, _ = idx' ] check = False for i in range ( len ( self . columns ) ) : if self . columns [ i ] == col : col_loc = self . column_loc [ col ] type_id , col_id = col_loc . type_id , col_loc . col_id check = True func_lines += [ f'  data = self._dataframe._data[{type_id}][{col_id}]' , f'  res_data = pandas.Series(data, index=self._dataframe.index)' , '  return res_data.at[row]' , ] if check == False : # noqa raise KeyError ( 'Column is not in the DataFrame' ) func_text = '\n' . join ( func_lines ) global_vars = { 'pandas' : pandas } return func_text , global_vars