[{"data":1,"prerenderedAt":93},["ShallowReactive",2],{"topic:protection-and-sharing":3},[4,13,19,24,30,36,42,47,52,57,62,68,73,78,83,88],{"path":5,"title":6,"description":7,"type":8,"topics":9,"kind":12},"\u002Fadvanced-data-transformation-and-cleaning\u002Fvalidating-excel-data-with-python\u002Fanonymise-personal-data-in-an-excel-file-with-python","Anonymise Personal Data in an Excel File with Python","Prepare a workbook of customer or employee records for sharing: drop direct identifiers, replace IDs with keyed pseudonyms that stay consistent across files, generalise ages and postcodes, scrub emails and phone numbers out of free text, check how many people share each combination of details, and scan the output for anything left behind.","how-to",[10,11],"data-validation","protection-and-sharing",null,{"path":14,"title":15,"description":16,"type":8,"topics":17,"kind":12},"\u002Fautomating-reporting-workflows\u002Fexporting-excel-reports-to-pdf\u002Fpassword-protect-a-pdf-exported-from-excel","Password-Protect a PDF Exported from Excel","Encrypt the PDF your Excel report becomes: AES-256 with pypdf after conversion, or encryption set directly in the LibreOffice export filter (and why it is weaker), the difference between open and permissions passwords, one password per recipient, verifying the file really is locked, and what PDF permissions can and cannot stop.",[18,11],"pdf-export",{"path":20,"title":21,"description":22,"type":8,"topics":23,"kind":12},"\u002Fautomating-reporting-workflows\u002Fexporting-excel-reports-to-pdf\u002Fsign-a-pdf-report-digitally-with-python","Sign a PDF Report Digitally with Python","Add a cryptographic signature to a PDF exported from an Excel report with pyHanko, so readers can prove who issued it and that nobody changed it afterwards: load a certificate from a PKCS#12 file, sign with a reason and location, add a visible signature box, validate the result in Python and with pdfsig, and see exactly what a one-byte change does to it.",[18,11],{"path":25,"title":26,"description":27,"type":8,"topics":28,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fbuilding-excel-reports-with-xlsxwriter\u002Fdefine-names-and-protect-sheets-with-xlsxwriter","Define Names and Protect Sheets with XlsxWriter","Build an input template with XlsxWriter in which formulas use defined names instead of cell addresses and only the input cells can be edited: workbook and sheet-scoped names for ranges and constants, a dropdown fed by a named list on a hidden sheet, unlocked input cells, hidden formulas, protect() options that still allow sorting and filtering, and a check of the result with openpyxl and LibreOffice.",[29,11],"xlsxwriter",{"path":31,"title":32,"description":33,"type":34,"topics":35,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks","Protecting and Sharing Excel Workbooks","Control what readers can change in a generated Excel report: sheet and workbook protection, locked cells, hidden sheets, file encryption, comments and document properties.","guide",[11],{"path":37,"title":38,"description":39,"type":8,"topics":40,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fadd-comments-and-notes-to-excel-cells-with-python","Add Comments and Notes to Excel Cells with Python","Annotate generated Excel reports from Python: attach openpyxl comments, size them, read existing notes back, and use document properties to record where the numbers came from.",[11,41],"openpyxl",{"path":43,"title":44,"description":45,"type":8,"topics":46,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fhide-sheets-rows-and-columns-with-openpyxl","Hide Sheets, Rows and Columns with openpyxl","Tidy a generated Excel report from Python: hide working sheets, use veryHidden, collapse rows and columns, add outline grouping, and avoid the last-visible-sheet corruption.",[11,41],{"path":48,"title":49,"description":50,"type":8,"topics":51,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Flet-different-people-edit-different-ranges","Let Different People Edit Different Ranges","Build a shared budget workbook in which each team can edit only its own column: Excel's Allow Edit Ranges written with XlsxWriter's unprotect_range, one range and password per team on a protected sheet, what users see when they type in someone else's range, why openpyxl silently deletes these ranges when it saves the file, and a small function that puts them back.",[11,41],{"path":53,"title":54,"description":55,"type":8,"topics":56,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Flock-cells-and-protect-a-sheet-with-openpyxl","Lock Cells and Protect a Sheet with openpyxl","Stop readers overwriting formulas in a generated report: unlock the input cells, enable sheet protection, choose which operations stay allowed, and verify it on the way out.",[11,41],{"path":58,"title":59,"description":60,"type":8,"topics":61,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fmake-an-excel-file-open-read-only-recommended","Make an Excel File Open Read-Only Recommended","Stop colleagues from accidentally editing a published report: set the read-only recommended flag with xlsxwriter, add it to openpyxl workbooks with a small post-save patch, mark a workbook as final, keep the flag from being dropped when the file is re-saved, and understand what these settings do and do not protect.",[11,41],{"path":63,"title":64,"description":65,"type":8,"topics":66,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fmake-an-excel-report-accessible","Make an Excel Report Accessible with Python","Generate workbooks that screen-reader users and people with low vision can use: meaningful sheet names and a title, data in real tables with header rows, alternative text on charts and images, no merged cells, meaning that does not rely on colour alone, colours that pass contrast checks, and an automated audit that flags the problems in any workbook.",[11,67],"report-layouts",{"path":69,"title":70,"description":71,"type":8,"topics":72,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fopen-a-password-protected-excel-file-with-python","Open a Password-Protected Excel File with Python","Decrypt an encrypted workbook in memory with msoffcrypto-tool, read it with pandas or openpyxl, handle wrong passwords, and tell encryption from sheet protection.",[11],{"path":74,"title":75,"description":76,"type":8,"topics":77,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fpassword-protect-an-excel-file-with-python","Password Protect an Excel File with Python","Encrypt an .xlsx so it cannot be opened without a password, using msoffcrypto-tool — write, read back, handle wrong passwords, and keep the secret out of your source code.",[11],{"path":79,"title":80,"description":81,"type":8,"topics":82,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fprotect-workbook-structure-with-openpyxl","Protect Workbook Structure with openpyxl","Stop readers adding, deleting, renaming, moving, hiding or unhiding sheets in a generated report by locking the workbook structure with openpyxl — combined with very hidden lookup sheets and sheet protection — and understand how weak the stored password is and what the lock does not cover.",[11,41],{"path":84,"title":85,"description":86,"type":8,"topics":87,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fremove-hidden-data-before-sharing-an-excel-file","Remove Hidden Data Before Sharing an Excel File","A workbook sent outside the team often carries more than the visible numbers: hidden and very hidden sheets, hidden rows and columns, comments with names in them, formulas that point at a salary sheet, named ranges and author details. Audit a workbook for all of it with openpyxl, then build a clean copy with values only, and check the copy before it goes out.",[11,41],{"path":89,"title":90,"description":91,"type":8,"topics":92,"kind":12},"\u002Fformatting-and-charting-excel-reports-with-python\u002Fprotecting-and-sharing-excel-workbooks\u002Fremove-sheet-protection-with-openpyxl","Remove Sheet Protection from a Workbook You Own with openpyxl","Update your own protected report templates from Python — turn off sheet and workbook structure protection, make changes, and put the original protection back exactly as it was, including Excel's SHA-512 password hashes. Covers what openpyxl keeps, what \"unprotecting\" does and does not change, and batch maintenance of many files.",[11,41],1790972052271]