import pandas as pd
import numpy as np
from string import letters
media_frame = pd.DataFrame(pd.DataFrame(np.random.choice(list(letters), 
    9500 * 800 * 3).reshape(3, -1)).sum().values.reshape(9500, -1))
Pandas slow on data frame replace