It seems like the problem was duplicate header names. I had the exact header name 8 times. So pandas just counted up. The question mark was never the problem. Removing the question mark made the header unique, so a number wasn't added by pandas anymore.