theme | layout | python | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default |
default |
|
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)