code: def print_table(self, stream=sys.stdout, filter_function=None):
          
          print(self.to_table(filter_function=filter_function), file=stream)
docs: A pretty ASCII printer for the periodic table, based on some filter_function.
  
          Args:
              stream: file-like object
              filter_function:
                  A filtering function that take a Pseudo as input and returns a boolean.
                  For example, setting filter_function = lambda p: p.Z_val > 2 will print
                  a periodic table containing only pseudos with Z_val > 2.