<jupyter_start><jupyter_text>Example Bar Chart This is the same example as for D3, but using Vegalite, thus no need for separate js, specifications are given inline<jupyter_code>mtgear = pd.read_csv('https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/datasets/mtcars.csv')
cntpergear = mtgear.groupby(["gear"]).agg({'mpg': 'count'}).reset_index().rename(columns={'gear': 'x', 'mpg': 'y'})
cntpergear.head()
p3d3.vegalite(cntpergear, {
    "mark": "bar",
    "encoding": {
    "x": {"field": "x", "type": "ordinal"},
    "y": {"field": "y", "type": "quantitative"}
  }})<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19967266775777415, 'fraction_numerical': 0.004909983633387889, 'mean_word_length': 6.0344827586206895, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '99039', 'license': 'Apache-2.0', 'n_tokens_mistral': 237, 'n_tokens_neox': 235, 'n_words': 47, 'path': 'examples/Vegalite examples.ipynb', 'repo_name': 'CedricFR/p3d3', 'size': '611'}