Is there a more pythonic way of converting excel-style columns to numbers (starting with 1)?
Working code up to two letters:
Coincise and elegant Ruby version:
def col_num(col_name) col_name.split(//).inject(0) { |n, c| n * 26 + c.upcase.ord - "A".ord + 1 } end