<commit_before># from vincent import AxisProperties, PropertySet, ValueRef
import pandas as pd

data = pd.read_excel("bin/input/data.xls", sheet="Detail")
ethnic = data.groupby(["Description", "Gender"])
<commit_msg>Adding some of the basic visualizations I have from the iPython notebook.<commit_after>import vincent
from vincent import AxisProperties, PropertySet, ValueRef
import pandas as pd

DATA = pd.read_excel("bin/input/data.xls", sheet="Detail")

# Description is the ethnicity according to this dataset
ETHNICITY = data.groupby(["Description"])

ETHNICITY_BY_SALARY = vincent\
    .Bar(
        ETHNICITY
        .mean()
        .sort(
            "Annual Salary",
            ascending=False
        )['Annual Salary'])

ETHNICITY_BY_SALARY\
    .axes[0]\
    .properties = AxisProperties(
         labels=PropertySet(
             angle=ValueRef(value=45),
             align=ValueRef(value="left")
                )
        )
{'fraction_non_alphanumeric': 0.10649627263045794, 'fraction_numerical': 0.003194888178913738, 'mean_word_length': 3.069264069264069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6665499', 'n_tokens_mistral': 294, 'n_tokens_neox': 283, 'n_words': 71}