def file_chart(slogdf, sample=5, **plotkw):
    df = slogdf[['name', 'st_size', 'lines']].copy()
    df['b64'] = (df.st_size / 64)
    df.drop('st_size', axis=1, inplace=True)
    df.set_index('name')[::sample].plot.barh(**plotkw)
def file_chart(slogdf, sample=5, **plotkw):
    df = slogdf[['name', 'st_size', 'lines']].copy()
    df['b64'] = (df.st_size / 64)
    df.drop('st_size', axis=1, inplace=True)
    df.set_index('name')[::sample].plot.barh(**plotkw)