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 titanite as ti
print(f"Pandas: {pd.__version__}")
print(f"Titanite: {ti.__version__}")
Pandas: 3.0.2
Titanite: 0.7.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()
2026-05-11 20:43:41.257 | ERROR | titanite.config:load_toml:87 - File not found: ../../../sandbox/config.toml
---------------------------------------------------------------------------
Exit Traceback (most recent call last)
Cell In[2], line 4
1 f_cfg = "../../../sandbox/config.toml"
2 f_csv = "../../../data/test_data/prepared_data.csv"
3 d = ti.Data(read_from=f_csv, load_from=f_cfg)
----> 4 config = d.config()
5 data = d.read()
File ~/work/surveys/surveys/titanite/config.py:261, in Data.config(self)
259 def config(self):
260 c = Config(load_from=self.load_from)
--> 261 return c.load_config()
File ~/work/surveys/surveys/titanite/config.py:95, in Config.load_config(self)
94 def load_config(self) -> dict:
---> 95 config = self.load_toml()
96 return config
File ~/work/surveys/surveys/titanite/config.py:88, in Config.load_toml(self)
86 if not fname.exists():
87 logger.error(f"File not found: {fname}")
---> 88 raise typer.Exit(code=1)
90 with fname.open("rb") as f:
91 config = tomllib.load(f)
Exit:
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)