Skip to content
This repository was archived by the owner on Jul 12, 2021. It is now read-only.
This repository was archived by the owner on Jul 12, 2021. It is now read-only.

the "total" function does not work on a table which generated by filter. #11

Open

Description

@Fatalerr

for example:

t1 = TableFu()
t2 = t1.filter(type='xxx')
t2.total('column_name')    

the last cause will raise an error such like:

D:\tools\WinPython-32bit-2.7.3.3\python-2.7.3\lib\site-packages\table_fu\__init__.pyc in __getitem__(self, column_name)
     343         datum = self.get(column_name)
     344         if datum is None:
--> 345             raise KeyError("%s isn't a column in this table" % column_name)
     346         else:
     347             return datum

     KeyError: "3 isn't a column in this table"   

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions