<jupyter_start><jupyter_text>Simple Bar Chart================This example shows a basic bar chart created with Altair.<jupyter_code># category: basic charts
import altair as alt
alt.data_transformers.enable('json')
import pandas as pd

data = pd.DataFrame({
    'a': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
    'b': [28, 55, 43, 91, 81, 53, 19, 87, 52]
})

alt.Chart(data).mark_bar().encode(
    x='a',
    y='b'
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2261640798226164, 'fraction_numerical': 0.03991130820399113, 'mean_word_length': 4.87012987012987, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '372354', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 192, 'n_tokens_neox': 174, 'n_words': 50, 'path': 'notebooks/examples/bar.ipynb', 'repo_name': 'rdhyee/altair_notebooks', 'size': '451'}