# -*- coding: utf-8 -*-

import pandas


class Frame(object):
    def __init__(self):
        self._data = pandas.DataFrame(
            columns=[
                'commit_id',
                'commit_message',
                'commit_author'])

    def add_column(self, name, values):
        self._data[name] = values

    @property
    def data(self):
        return self._data

    @property
    def number_of_rows(self):
        return self._data.shape[0]

    @property
    def number_of_columns(self):
        return self._data.shape[1]

# -*- coding: utf-8 -*-

import pandas


class Frame(object):
    def __init__(self):
        self._data = pandas.DataFrame()

    def add_column(self, name, values):
        self._data[name] = values

    @property
    def data(self):
        return self._data

    @property
    def number_of_rows(self):
        return self._data.shape[0]

    @property
    def number_of_columns(self):
        return self._data.shape[1]

remove explicit definition of columns in a frame