Sample Notebook
This is a Markdown section. It contains bold and italic text.
Bullet list:
- Hello
- World
Numbered list:
- First
- Second
- Third
[1]:
def my_function(): print("Hello") print("world") my_function()
Hello world
This is a raw section, without formatting. This is the second line.
Here is an equation:
$$c = \sqrt{a^2 + b^2}$$
[2]:
from io import StringIO import pandas as pd sample_csv = StringIO("""first_name,age,gender Alice,12,f Bob,23,m Charlie,34,m""") df = pd.read_csv(sample_csv) df
[2]:
first_name | age | gender | |
---|---|---|---|
0 | Alice | 12 | f |
1 | Bob | 23 | m |
2 | Charlie | 34 | m |
[3]:
df.plot.bar()
[3]:
<matplotlib.axes._subplots.AxesSubplot at 0x11bf8a490>
[4]:
df.std()
[4]:
age 11.0 dtype: float64
[5]:
raise Exception("This is an error message")
--------------------------------------------------------------------------- Exception Traceback (most recent call last) <ipython-input-5-bf872f0b08d0> in <module> ----> 1 raise Exception("This is an error message") Exception: This is an error message