I have a Python3.x pandas DataFrame whereby certain columns are strings which as expressed as bytes (like in Python2.x)
import pandas as pd df = pd.DataFrame
df.columns = [x.decode("utf-8") for x in df.columns]
This will make it faster and easier.