Q14. Female Ratio Thoughts#
Question#
What do you think about the percentage above?
Choices#
Very Good
Good
Poor
Very Poor
No interest
Prefer no to answer
Responses#
import pandas as pd
import hvplot.pandas
import titanite as ti
print(f"Pandas: {pd.__version__}")
print(f"Titanite: {ti.__version__}")
%opts magic unavailable (pyparsing cannot be imported)
%compositor magic unavailable (pyparsing cannot be imported)
Pandas: 2.2.3
Titanite: 0.6.0
f_cfg = "../../../sandbox/config.toml"
f_csv = "../../../data/test_data/prepared_data.csv"
d = ti.Data(read_from=f_csv, load_from=f_cfg)
config = d.config()
data = d.read()
2025-05-12 10:04:31.526 | INFO | titanite.preprocess:categorical_data:135 - Categorize
names = ["q14"]
counted = data[names].value_counts(sort=False).copy()
left = counted.hvplot.bar(
title="Q14: Thoughts on Female Ratio",
xlabel="Thoughts",
ylabel="Entries",
width=600,
height=600,
rot=90,
grid=True,
)
right = counted.hvplot.table()
(left + right).cols(1)