import six


def row_to_dict(row):
  """Convert a `pymssql` row object into a normal dictionary (removing integer keys).

  >>> returned = row_to_dict({1: 'foo', 'one': 'foo', 2: 'bar', 'two': 'bar'})
  >>> returned == {'one': 'foo', 'two': 'bar'}
  True

  """
  retval = dict()
  for key, value in six.iteritems(row):
    if not isinstance(key, int):
      retval[key] = value
  return retval