Bind a new column to the data map

        Parameters
        ----------
        column: str, default None
            Pandas DataFrame column name
        brew: str, default None
            Color brewer abbreviation. See colors.py
338038
def rebind(self, column=None, brew='GnBu'):
        
        self.data['table'] = Data.keypairs(
            self.raw_data, columns=[self.data_key, column])
        domain = [Data.serialize(self.raw_data[column].min()),
                  Data.serialize(self.raw_data[column].quantile(0.95))]
        scale = Scale(name='color', type='quantize', domain=domain,
                      range=brews[brew])
        self.scales['color'] = scale
751384
def column(label)
      pos = @labels.index(label)
      raise "There is no column named " + label if pos.nil?
      Mikon::Series.new(label, @data[pos], index: @index)
    end
188087
def append_column(self, header, column):
        
        self.insert_column(self._column_count, header, column)
369610
def bind(self, name):
        
        return _BoundColumnDescr(
            dtype=self.dtype,
            missing_value=self.missing_value,
            name=name,
            doc=self.doc,
            metadata=self.metadata,
        )
362649
public void addColumn(FastTrackColumn column)
   {
      FastTrackField type = column.getType();
      Object[] data = column.getData();
      for (int index = 0; index < data.length; index++)
      {
         MapRow row = getRow(index);
         row.getMap().put(type, data[index]);
      }
   }
467532
def _construct_columns(self, column_map):
        
        '''  '''
        
        from sqlalchemy import Column, String, Boolean, Integer, Float, Binary 
    
        column_args = []
        for key, value in column_map.items():
            record_key = value[0]
            datatype = value[1]
            max_length = value[2]
            if record_key == 'id':
                if datatype in ('string', 'float', 'integer'):
                    if datatype == 'string':
                        if max_length:
                            column_args.insert(0, Column(record_key, String(max_length), primary_key=True))
                        else:
                            column_args.insert(0, Column(record_key, String, primary_key=True))
                    elif datatype == 'float':
                        column_args.insert(0, Column(record_key, Float, primary_key=True))
                    elif datatype == 'integer':
                        column_args.insert(0, Column(record_key, Integer, primary_key=True))
                else:
                    raise ValueError('Field "id" in record_schema must be a string, float or integer.')
            else:
                if datatype == 'boolean':
                    column_args.append(Column(record_key, Boolean))
                elif datatype == 'string':
                    if max_length:
                        column_args.append(Column(record_key, String(max_length)))
                    else:
                        column_args.append(Column(record_key, String))
                elif datatype == 'float':
                    column_args.append(Column(record_key, Float))
                elif datatype == 'integer':
                    column_args.append(Column(record_key, Integer))
                elif datatype == 'list':
                    column_args.append(Column(record_key, Binary))
        
        return column_args
1327220
public TableModel addColumn(ColumnModel column) {
		checkReadOnly();
		DialectException.assureNotNull(column);
		DialectException.assureNotEmpty(column.getColumnName(), "Column's columnName can not be empty");
		column.setTableModel(this);
		columns.add(column);
		return this;
	}
1251859
void addColumn(final WTableColumn column, final int columnIndex) {
		WComponent renderer = column.getRenderer();

		if (renderer == null) {
			Class<? extends WComponent> rendererClass = column.getRendererClass();

			if (!(BeanProviderBound.class.isAssignableFrom(rendererClass))
					&& !(BeanBound.class.isAssignableFrom(rendererClass))
					&& !(DataBound.class.isAssignableFrom(rendererClass))) {
				throw new IllegalArgumentException(
						"Column renderers must be BeanProvider-, Bean- or Data-Bound");
			}

			add(new RendererWrapper(this, rendererClass, columnIndex));
		} else {
			if (!(renderer instanceof BeanProviderBound) && !(renderer instanceof BeanBound)
					&& !(renderer instanceof DataBound)) {
				throw new IllegalArgumentException(
						"Column renderers must be BeanProvider-, Bean- or Data-Bound");
			}

			add(new RendererWrapper(this, renderer, columnIndex));
		}
	}
318477
def updateColumnValue(self, column, value, index=None):
        
        if index is None:
            index = self.treeWidget().column(column.name())
        
        if type(value) == datetime.date:
            self.setData(index, Qt.EditRole, wrapVariant(value))
        elif type(value) == datetime.time:
            self.setData(index, Qt.EditRole, wrapVariant(value))
        elif type(value) == datetime.datetime:
            self.setData(index, Qt.EditRole, wrapVariant(value))
        elif type(value) in (float, int):
            if column.enum():
                self.setText(index, column.enum().displayText(value))
            else:
                self.setData(index, Qt.EditRole, wrapVariant(value))
        elif value is not None:
            self.setText(index, nativestring(value))
        else:
            self.setText(index, '')
        
        self.setSortData(index, value)
        
        # map default value information
        try:
            mapper = self.treeWidget().columnMappers().get(column.columnName())
        except AttributeError:
            mapper = None
        
        if mapper is None:
            form = column.stringFormat()
            if form:
                mapper = form.format
        
        if mapper:
            self.setText(index, mapper(value))
921006
def bind_to(self, table, name):
        
        if self.bound_to is not None:
            raise AttributeError(
                "Column is already bound to '%s' as '%s'" %\
                    self.bound_to)

        self.bound_to = (table, name)
1341950
private AttributeValue mapColumnValue(String storeName, DColumn col) {
        AttributeValue attrValue = new AttributeValue();
        if (!DBService.isSystemTable(storeName)) {
            if (col.getRawValue().length == 0) {
                attrValue.setS(DynamoDBService.NULL_COLUMN_MARKER);
            } else {
                attrValue.setB(ByteBuffer.wrap(col.getRawValue()));
            }
        } else {
            String strValue = col.getValue();
            if (strValue.length() == 0) {
                strValue = DynamoDBService.NULL_COLUMN_MARKER;
            }
            attrValue.setS(strValue);
        }
        return attrValue;
    }
845643
def load_rho(name, column):
    '''
    '''
    try:
        content = np.loadtxt(name, skiprows=1, usecols=([column]))
    except:
        raise ValueError('Given column to open does not exist.')

    return content
1105463
def clean(self, data):
        
        try:
            value = data[self.column_name]
        except KeyError:
            raise KeyError("Column '%s' not found in dataset. Available "
                           "columns are: %s" % (self.column_name, list(data)))

        # If ValueError is raised here, import_obj() will handle it
        value = self.widget.clean(value, row=data)

        if value in self.empty_values and self.default != NOT_PROVIDED:
            if callable(self.default):
                return self.default()
            return self.default

        return value
642435
def column(name, definition)
      @column ||= if definition.is_a?(Symbol)
                    ColumnWithType.new(name, definition)
                  else
                    ColumnWithSql.new(name, definition)
                  end
    end
304956
public <T> DiscriminatorJdbcBuilder<T> newDiscriminator(String column) {
        ignorePropertyNotFound();
        addColumnDefinition(column, FieldMapperColumnDefinition.<JdbcColumnKey>ignoreDefinition());
        return new DiscriminatorJdbcBuilder<T>(column, this);
    }
786413
public DJXYBarChartBuilder addSerie(AbstractColumn column, String label) {
		getDataset().addSerie(column, label);
		return this;
	}
604841
public void addColumn(String column) {

        m_columns.add(new CmsSimpleQueryFragment(column, Collections.<Object> emptyList()));
    }