Skip to content

Commit 81b9534

Browse files
committed
fix: fix syntax errors and docs
1 parent 5208c8b commit 81b9534

File tree

7 files changed

+23
-15
lines changed

7 files changed

+23
-15
lines changed

data/process_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Delete the rows of the dataset in which all QIs are set to *."""
2+
23
import pandas as pd
34

45

data/raw/sav_to_csv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
""""Convert the file StudentsMath_Score.sav into csv."""
1+
""" "Convert the file StudentsMath_Score.sav into csv."""
2+
23
import pandas as pd
34

45
FILE_NAME = "StudentsMath_Score.sav"

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = "pycanon"
21-
copyright = "2022, Spanish National Research Council (CSIC)"
21+
copyright = "2025, Spanish National Research Council (CSIC)"
2222
author = "Spanish National Research Council (CSIC)"
2323

2424
# The full version, including alpha/beta/rc tags
@@ -56,4 +56,4 @@
5656
# Add any paths that contain custom static files (such as style sheets) here,
5757
# relative to this directory. They are copied after the builtin static files,
5858
# so a file named "default.css" will overwrite the builtin "default.css".
59-
html_static_path = ["_static"]
59+
# html_static_path = ["_static"]

doc/source/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
pyCANON: A Python library to check the level of anonymity of a dataset
2-
======================================================================
1+
.. image:: https://raw.githubusercontent.com/IFCA-Advanced-Computing/pycanon/main/images/pycanon_logo.png
2+
:align: center
3+
:width: 400px
4+
5+
A Python library to check the level of anonymity of a dataset
6+
================================================================================================
37

48
pyCANON is a `Python`_ library which allows the user to know the anonymity
59
level of a dataset based on a set of quasi-identifiers (QI), and a set of
@@ -41,3 +45,4 @@ Indices and tables
4145
* :ref:`genindex`
4246
* :ref:`modindex`
4347
* :ref:`search`
48+

doc/source/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Getting started
22
###############
33

4-
Using pyCANON is quite straighforward.
4+
Start using pyCANON:
55

66
Install
77
***********************

doc/source/pycanon.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Subpackages
1010
pycanon.anonymity
1111
pycanon.report
1212
pycanon.utility
13+
14+
Module contents
15+
---------------
16+
17+
.. automodule:: pycanon
18+
:members:
19+
:undoc-members:
20+
:show-inheritance:
1321

1422
Submodules
1523
----------
@@ -22,10 +30,3 @@ pycanon.cli module
2230
:undoc-members:
2331
:show-inheritance:
2432

25-
Module contents
26-
---------------
27-
28-
.. automodule:: pycanon
29-
:members:
30-
:undoc-members:
31-
:show-inheritance:

pycanon/utility/_utility_metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def discernability_metric(
9494
:type data_raw: pandas dataframe
9595
9696
:param data_anon: dataframe with the data anonymized. Assuming that all the
97-
equivalence classes have more than k records, and given each suppressed record
98-
a penalty of the size of the input dataset.
97+
equivalence classes have more than k records, and given each suppressed record
98+
a penalty of the size of the input dataset.
9999
:type data_anon: pandas dataframe
100100
101101
:param quasi_ident: list with the name of the columns of the dataframe

0 commit comments

Comments
 (0)