packages/vaex-core/vaex/dataframe.py
def add_column(self, name, data):
        """Add a column to the DataFrame

        :param str name: name of column
        :param data: numpy array with the data
        """
        # assert _is_array_type_ok(data), "dtype not supported: %r, %r" % (data.dtype, data.dtype.type)
        # self._length = len(data)
        # if self._length_unfiltered is None:
        #     self._length_unfiltered = len(data)
        #     self._length_original = len(data)
        #     self._index_end = self._length_unfiltered
        super(DataFrameArrays, self).add_column(name, data)
        self._length_unfiltered = int(round(self._length_original * self._active_fraction))
def add_column(self, name, data):
        # assert _is_array_type_ok(data), "dtype not supported: %r, %r" % (data.dtype, data.dtype.type)
        # self._length = len(data)
        # if self._length_unfiltered is None:
        #     self._length_unfiltered = len(data)
        #     self._length_original = len(data)
        #     self._index_end = self._length_unfiltered
        super(DataFrameArrays, self).add_column(name, data)
        self._length_unfiltered = int(round(self._length_original * self._active_fraction))
def add_column ( self , name , data ) : # assert _is_array_type_ok(data), "dtype not supported: %r, %r" % (data.dtype, data.dtype.type) # self._length = len(data) # if self._length_unfiltered is None: #     self._length_unfiltered = len(data) #     self._length_original = len(data) #     self._index_end = self._length_unfiltered super ( DataFrameArrays , self ) . add_column ( name , data ) self . _length_unfiltered = int ( round ( self . _length_original * self . _active_fraction ) )
Add a column to the DataFrame

        :param str name: name of column
        :param data: numpy array with the data
Add a column to the DataFrame