Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1 KB

slides.md

File metadata and controls

44 lines (34 loc) · 1 KB
theme layout python
default
default
installs prelude loadPackagesFromImports suppressDeprecationWarnings alwaysReload loadPyodideOptions
cowsay
GREETING_FROM_PRELUDE = "Hello, Slidev!"
true
true
false

Python Runner for Slidev

from termcolor import colored
import pandas as pd
import numpy as np

print(colored(GREETING_FROM_PRELUDE, "blue"))

df = pd.DataFrame({
  "A": 1.0,
  "B": pd.Timestamp("20130102"),
  "C": pd.Series(1, index=list(range(4)), dtype="float32"),
  "D": np.array([3] * 4, dtype="int32"),
  "E": pd.Categorical(["test", "train", "test", "train"]),
  "F": "foo"
})

print(df)