[{"data":1,"prerenderedAt":9287},["ShallowReactive",2],{"tutorials-pandas":3,"category-items-pandas":387,"content-/pandas/string-cleaning-operations":388},[4,21,31,40,49,58,67,78,87,96,105,116,125,134,143,154,163,172,181,192,201,210,219,228,239,248,257,266,276,285,294,303,313,322,331,341,350,359,369,378],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":6,"title":8,"description":9,"slug":10,"order":11,"isParent":12,"icon":13,"_type":14,"_id":15,"_source":16,"_file":17,"_stem":18,"_extension":19,"children":20,"expanded":12},"/pandas","",false,"Getting Started","Learn the basics of Pandas, Python's powerful data analysis library for working with spreadsheet-like data","getting-started",1,true,"pi pi-play","markdown","content:pandas:1.index.md","content","pandas/1.index.md","pandas/1.index","md",[21,31,40,49,58],{"_path":22,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":14,"_id":28,"_source":16,"_file":29,"_stem":30,"_extension":19},"/pandas/what-is-pandas","pandas","What is Pandas","Understand what Pandas is, why it's essential for data analysis, and how it makes working with data simple and powerful","what-is-pandas",2,"content:pandas:2.what-is-pandas.md","pandas/2.what-is-pandas.md","pandas/2.what-is-pandas",{"_path":32,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":14,"_id":37,"_source":16,"_file":38,"_stem":39,"_extension":19},"/pandas/installing-pandas","Installing Pandas","Learn how to install Pandas on your computer and verify it's working properly","installing-pandas",3,"content:pandas:3.installing-pandas.md","pandas/3.installing-pandas.md","pandas/3.installing-pandas",{"_path":41,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":14,"_id":46,"_source":16,"_file":47,"_stem":48,"_extension":19},"/pandas/your-first-dataframe","Your First DataFrame","Create your first Pandas DataFrame and learn the basics of working with tabular data","your-first-dataframe",4,"content:pandas:4.your-first-dataframe.md","pandas/4.your-first-dataframe.md","pandas/4.your-first-dataframe",{"_path":50,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":14,"_id":55,"_source":16,"_file":56,"_stem":57,"_extension":19},"/pandas/series-vs-dataframe","Series vs DataFrame","Understand the difference between Pandas Series and DataFrames, and learn when to use each one","series-vs-dataframe",5,"content:pandas:5.series-vs-dataframe.md","pandas/5.series-vs-dataframe.md","pandas/5.series-vs-dataframe",{"_path":59,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":14,"_id":64,"_source":16,"_file":65,"_stem":66,"_extension":19},"/pandas/basic-dataframe-info","Basic DataFrame Info","Learn how to explore and get basic information about your DataFrames to understand your data","basic-dataframe-info",6,"content:pandas:6.basic-dataframe-info.md","pandas/6.basic-dataframe-info.md","pandas/6.basic-dataframe-info",{"_path":68,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":69,"description":70,"slug":71,"order":72,"isParent":12,"icon":73,"_type":14,"_id":74,"_source":16,"_file":75,"_stem":76,"_extension":19,"children":77,"expanded":12},"/pandas/loading-data","Loading Data","Learn how to load data from various sources into Pandas DataFrames","loading-data",7,"pi pi-download","content:pandas:7.loading-data.md","pandas/7.loading-data.md","pandas/7.loading-data",[78,87,96],{"_path":79,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":80,"description":81,"slug":82,"parentId":68,"order":83,"_type":14,"_id":84,"_source":16,"_file":85,"_stem":86,"_extension":19},"/pandas/reading-files","Reading Files (CSV, Excel, JSON)","Learn how to load data from CSV, Excel, and JSON files into Pandas DataFrames","reading-files",8,"content:pandas:8.reading-files.md","pandas/8.reading-files.md","pandas/8.reading-files",{"_path":88,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":89,"description":90,"slug":91,"parentId":68,"order":92,"_type":14,"_id":93,"_source":16,"_file":94,"_stem":95,"_extension":19},"/pandas/loading-from-databases","Loading from Databases","Learn how to connect to databases and load data directly into Pandas DataFrames","loading-from-databases",9,"content:pandas:9.loading-from-databases.md","pandas/9.loading-from-databases.md","pandas/9.loading-from-databases",{"_path":97,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":98,"description":99,"slug":100,"parentId":68,"order":101,"_type":14,"_id":102,"_source":16,"_file":103,"_stem":104,"_extension":19},"/pandas/handling-file-errors","Handling File Errors","Learn how to handle common errors when loading data files and how to troubleshoot loading problems","handling-file-errors",10,"content:pandas:10.handling-file-errors.md","pandas/10.handling-file-errors.md","pandas/10.handling-file-errors",{"_path":106,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":107,"description":108,"slug":109,"order":110,"isParent":12,"icon":111,"_type":14,"_id":112,"_source":16,"_file":113,"_stem":114,"_extension":19,"children":115,"expanded":12},"/pandas/data-exploration","Data Exploration","Learn how to explore and understand your data using Pandas methods and techniques","data-exploration",11,"pi pi-search","content:pandas:11.data-exploration.md","pandas/11.data-exploration.md","pandas/11.data-exploration",[116,125,134],{"_path":117,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":118,"description":119,"slug":120,"parentId":106,"order":121,"_type":14,"_id":122,"_source":16,"_file":123,"_stem":124,"_extension":19},"/pandas/viewing-your-data","Viewing Your Data","Learn different ways to look at and sample your DataFrame data for exploration and understanding","viewing-your-data",12,"content:pandas:12.viewing-your-data.md","pandas/12.viewing-your-data.md","pandas/12.viewing-your-data",{"_path":126,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":127,"description":128,"slug":129,"parentId":106,"order":130,"_type":14,"_id":131,"_source":16,"_file":132,"_stem":133,"_extension":19},"/pandas/data-shape-and-statistics","Data Shape and Statistics","Learn how to understand your DataFrame's size, structure, and get basic statistical summaries","data-shape-and-statistics",13,"content:pandas:13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics",{"_path":135,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":136,"description":137,"slug":138,"parentId":106,"order":139,"_type":14,"_id":140,"_source":16,"_file":141,"_stem":142,"_extension":19},"/pandas/column-information-and-data-types","Column Information and Data Types","Learn how to explore individual columns and understand different data types in your DataFrames","column-information-and-data-types",14,"content:pandas:14.column-information-and-data-types.md","pandas/14.column-information-and-data-types.md","pandas/14.column-information-and-data-types",{"_path":144,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":145,"description":146,"slug":147,"order":148,"isParent":12,"icon":149,"_type":14,"_id":150,"_source":16,"_file":151,"_stem":152,"_extension":19,"children":153,"expanded":12},"/pandas/selecting-data","Selecting Data","Learn how to select specific columns, rows, and subsets of data from your DataFrames","selecting-data",15,"pi pi-filter","content:pandas:15.selecting-data.md","pandas/15.selecting-data.md","pandas/15.selecting-data",[154,163,172],{"_path":155,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":156,"description":157,"slug":158,"parentId":144,"order":159,"_type":14,"_id":160,"_source":16,"_file":161,"_stem":162,"_extension":19},"/pandas/selecting-columns-and-rows","Selecting Columns and Rows","Learn how to select specific columns and rows from your DataFrames using basic selection techniques","selecting-columns-and-rows",16,"content:pandas:16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows",{"_path":164,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":165,"description":166,"slug":167,"parentId":144,"order":168,"_type":14,"_id":169,"_source":16,"_file":170,"_stem":171,"_extension":19},"/pandas/using-loc-and-iloc","Using loc and iloc","Master precise data selection with label-based (loc) and position-based (iloc) indexing in pandas","using-loc-and-iloc",17,"content:pandas:17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc",{"_path":173,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":174,"description":175,"slug":176,"parentId":144,"order":177,"_type":14,"_id":178,"_source":16,"_file":179,"_stem":180,"_extension":19},"/pandas/boolean-and-conditional-selection","Boolean and Conditional Selection","Learn to filter DataFrames using conditions, boolean logic, and multiple criteria for precise data selection","boolean-and-conditional-selection",18,"content:pandas:18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection",{"_path":182,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":183,"description":184,"slug":185,"order":186,"isParent":12,"icon":187,"_type":14,"_id":188,"_source":16,"_file":189,"_stem":190,"_extension":19,"children":191,"expanded":12},"/pandas/data-cleaning","Data Cleaning","Learn essential data cleaning techniques to prepare messy data for analysis","data-cleaning",19,"pi pi-wrench","content:pandas:19.data-cleaning.md","pandas/19.data-cleaning.md","pandas/19.data-cleaning",[192,201,210,219],{"_path":193,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":194,"description":195,"slug":196,"parentId":182,"order":197,"_type":14,"_id":198,"_source":16,"_file":199,"_stem":200,"_extension":19},"/pandas/handling-missing-data","Handling Missing Data","Learn to identify, fill, and remove missing values in your DataFrames effectively","handling-missing-data",20,"content:pandas:20.handling-missing-data.md","pandas/20.handling-missing-data.md","pandas/20.handling-missing-data",{"_path":202,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":203,"description":204,"slug":205,"parentId":182,"order":206,"_type":14,"_id":207,"_source":16,"_file":208,"_stem":209,"_extension":19},"/pandas/removing-duplicates","Removing Duplicates","Learn to find and eliminate duplicate rows from your DataFrames to ensure data quality","removing-duplicates",21,"content:pandas:21.removing-duplicates.md","pandas/21.removing-duplicates.md","pandas/21.removing-duplicates",{"_path":211,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":212,"description":213,"slug":214,"parentId":182,"order":215,"_type":14,"_id":216,"_source":16,"_file":217,"_stem":218,"_extension":19},"/pandas/data-type-conversion","Data Type Conversion","Learn to convert data to the right types for proper analysis and calculations","data-type-conversion",22,"content:pandas:22.data-type-conversion.md","pandas/22.data-type-conversion.md","pandas/22.data-type-conversion",{"_path":220,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":221,"description":222,"slug":223,"parentId":182,"order":224,"_type":14,"_id":225,"_source":16,"_file":226,"_stem":227,"_extension":19},"/pandas/string-cleaning-operations","String Cleaning Operations","Learn to clean and standardize text data for consistent analysis using pandas string methods","string-cleaning-operations",23,"content:pandas:23.string-cleaning-operations.md","pandas/23.string-cleaning-operations.md","pandas/23.string-cleaning-operations",{"_path":229,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":230,"description":231,"slug":232,"order":233,"isParent":12,"icon":234,"_type":14,"_id":235,"_source":16,"_file":236,"_stem":237,"_extension":19,"children":238},"/pandas/data-transformation","Data Transformation","Learn how to modify, add, and transform data in your DataFrames for analysis","data-transformation",24,"pi pi-folder","content:pandas:24.data-transformation.md","pandas/24.data-transformation.md","pandas/24.data-transformation",[239,248,257],{"_path":240,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":241,"description":242,"slug":243,"parentId":229,"order":244,"_type":14,"_id":245,"_source":16,"_file":246,"_stem":247,"_extension":19},"/pandas/adding-and-modifying-columns","Adding and Modifying Columns","Learn how to create new columns and update existing ones with calculations and conditional logic","adding-and-modifying-columns",25,"content:pandas:25.adding-and-modifying-columns.md","pandas/25.adding-and-modifying-columns.md","pandas/25.adding-and-modifying-columns",{"_path":249,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":250,"description":251,"slug":252,"parentId":229,"order":253,"_type":14,"_id":254,"_source":16,"_file":255,"_stem":256,"_extension":19},"/pandas/applying-functions","Applying Functions","Use built-in and custom functions to transform your data efficiently","applying-functions",26,"content:pandas:26.applying-functions.md","pandas/26.applying-functions.md","pandas/26.applying-functions",{"_path":258,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":259,"description":260,"slug":261,"parentId":229,"order":262,"_type":14,"_id":263,"_source":16,"_file":264,"_stem":265,"_extension":19},"/pandas/renaming-and-sorting-data","Renaming and Sorting Data","Organize your DataFrame with better column names and logical data ordering","renaming-and-sorting-data",27,"content:pandas:27.renaming-and-sorting-data.md","pandas/27.renaming-and-sorting-data.md","pandas/27.renaming-and-sorting-data",{"_path":267,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":268,"description":269,"slug":270,"order":271,"isParent":12,"icon":234,"_type":14,"_id":272,"_source":16,"_file":273,"_stem":274,"_extension":19,"children":275},"/pandas/grouping-and-aggregation","Grouping and Aggregation","Learn to group data and calculate summary statistics for powerful data analysis","grouping-and-aggregation",28,"content:pandas:28.grouping-and-aggregation.md","pandas/28.grouping-and-aggregation.md","pandas/28.grouping-and-aggregation",[276,285,294],{"_path":277,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":278,"description":279,"slug":280,"parentId":267,"order":281,"_type":14,"_id":282,"_source":16,"_file":283,"_stem":284,"_extension":19},"/pandas/groupby-operations","GroupBy Operations","Learn the fundamentals of splitting data into groups and basic aggregations","groupby-operations",29,"content:pandas:29.groupby-operations.md","pandas/29.groupby-operations.md","pandas/29.groupby-operations",{"_path":286,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":287,"description":288,"slug":289,"parentId":267,"order":290,"_type":14,"_id":291,"_source":16,"_file":292,"_stem":293,"_extension":19},"/pandas/aggregation-functions","Aggregation Functions","Explore different ways to summarize your grouped data with built-in and custom functions","aggregation-functions",30,"content:pandas:30.aggregation-functions.md","pandas/30.aggregation-functions.md","pandas/30.aggregation-functions",{"_path":295,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":296,"description":297,"slug":298,"parentId":267,"order":299,"_type":14,"_id":300,"_source":16,"_file":301,"_stem":302,"_extension":19},"/pandas/pivot-tables-and-cross-tabulation","Pivot Tables and Cross Tabulation","Create powerful summary tables and cross-tabulations for analysis","pivot-tables-and-cross-tabulation",31,"content:pandas:31.pivot-tables-and-cross-tabulation.md","pandas/31.pivot-tables-and-cross-tabulation.md","pandas/31.pivot-tables-and-cross-tabulation",{"_path":304,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":305,"description":306,"slug":307,"order":308,"isParent":12,"icon":234,"_type":14,"_id":309,"_source":16,"_file":310,"_stem":311,"_extension":19,"children":312},"/pandas/combining-data","Combining Data","Learn to combine data from multiple DataFrames for comprehensive analysis","combining-data",32,"content:pandas:32.combining-data.md","pandas/32.combining-data.md","pandas/32.combining-data",[313,322],{"_path":314,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":315,"description":316,"slug":317,"parentId":304,"order":318,"_type":14,"_id":319,"_source":16,"_file":320,"_stem":321,"_extension":19},"/pandas/concatenating-dataframes","Concatenating DataFrames","Learn to stack DataFrames vertically and horizontally for simple data combination","concatenating-dataframes",33,"content:pandas:33.concatenating-dataframes.md","pandas/33.concatenating-dataframes.md","pandas/33.concatenating-dataframes",{"_path":323,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":324,"description":325,"slug":326,"parentId":304,"order":327,"_type":14,"_id":328,"_source":16,"_file":329,"_stem":330,"_extension":19},"/pandas/merging-and-join-operations","Merging and Join Operations","Master different types of joins to combine related data from multiple sources","merging-and-join-operations",34,"content:pandas:34.merging-and-join-operations.md","pandas/34.merging-and-join-operations.md","pandas/34.merging-and-join-operations",{"_path":332,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":333,"description":334,"slug":335,"order":336,"isParent":12,"icon":234,"_type":14,"_id":337,"_source":16,"_file":338,"_stem":339,"_extension":19,"children":340},"/pandas/working-with-dates","Working with Dates","Master date and time operations for time-based analysis and reporting","working-with-dates",35,"content:pandas:35.working-with-dates.md","pandas/35.working-with-dates.md","pandas/35.working-with-dates",[341,350],{"_path":342,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":343,"description":344,"slug":345,"parentId":332,"order":346,"_type":14,"_id":347,"_source":16,"_file":348,"_stem":349,"_extension":19},"/pandas/datetime-operations","DateTime Operations","Learn to convert, manipulate, and extract information from dates and times","datetime-operations",36,"content:pandas:36.datetime-operations.md","pandas/36.datetime-operations.md","pandas/36.datetime-operations",{"_path":351,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":352,"description":353,"slug":354,"parentId":332,"order":355,"_type":14,"_id":356,"_source":16,"_file":357,"_stem":358,"_extension":19},"/pandas/time-series-and-resampling","Time Series and Resampling","Discover how to analyze data over time periods and aggregate by different time intervals","time-series-and-resampling",37,"content:pandas:37.time-series-and-resampling.md","pandas/37.time-series-and-resampling.md","pandas/37.time-series-and-resampling",{"_path":360,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":361,"description":362,"slug":363,"order":364,"isParent":12,"icon":234,"_type":14,"_id":365,"_source":16,"_file":366,"_stem":367,"_extension":19,"children":368},"/pandas/saving-your-work","Saving Your Work","Learn to export your analyzed data to different formats for sharing and reporting","saving-your-work",38,"content:pandas:38.saving-your-work.md","pandas/38.saving-your-work.md","pandas/38.saving-your-work",[369,378],{"_path":370,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":371,"description":372,"slug":373,"parentId":360,"order":374,"_type":14,"_id":375,"_source":16,"_file":376,"_stem":377,"_extension":19},"/pandas/exporting-data","Exporting Data (CSV, Excel, JSON)","Learn to save your DataFrames to common file formats for sharing and reporting","exporting-data",39,"content:pandas:39.exporting-data.md","pandas/39.exporting-data.md","pandas/39.exporting-data",{"_path":379,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":380,"description":381,"slug":382,"parentId":360,"order":383,"_type":14,"_id":384,"_source":16,"_file":385,"_stem":386,"_extension":19},"/pandas/database-export","Database Export","Discover how to save data back to databases for integration with other systems","database-export",40,"content:pandas:40.database-export.md","pandas/40.database-export.md","pandas/40.database-export",[219],{"_path":220,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":221,"description":222,"slug":223,"parentId":182,"order":224,"body":389,"_type":14,"_id":225,"_source":16,"_file":226,"_stem":227,"_extension":19},{"type":390,"children":391,"toc":9276},"root",[392,400,406,586,593,598,1463,1469,1474,2680,2686,2691,3556,3562,3567,4716,4722,4727,5919,5925,5930,6090,7404,7410,7750,7756,7761,9240,9246,9251,9265,9270],{"type":393,"tag":394,"props":395,"children":396},"element","h1",{"id":223},[397],{"type":398,"value":399},"text","📝 String Cleaning Operations",{"type":393,"tag":401,"props":402,"children":403},"p",{},[404],{"type":398,"value":405},"String cleaning is like editing a document - you fix typos, standardize formatting, and remove unnecessary content to make text data consistent and analysis-ready. Clean text data is crucial for accurate searches, grouping, and reporting.",{"type":393,"tag":407,"props":408,"children":412},"info-box",{"emoji":409,"title":410,"type":411},"📝","What Is String Cleaning?","info",[413,422,430,535,543,566,576],{"type":393,"tag":401,"props":414,"children":415},{},[416],{"type":393,"tag":417,"props":418,"children":419},"strong",{},[420],{"type":398,"value":421},"String Cleaning = Making Text Data Consistent and Usable",{"type":393,"tag":401,"props":423,"children":424},{},[425],{"type":393,"tag":417,"props":426,"children":427},{},[428],{"type":398,"value":429},"Common Text Problems:",{"type":393,"tag":431,"props":432,"children":433},"ul",{},[434,455,487,505,510],{"type":393,"tag":435,"props":436,"children":437},"li",{},[438,440,447,449],{"type":398,"value":439},"Extra whitespace: ",{"type":393,"tag":441,"props":442,"children":444},"code",{"className":443},[],[445],{"type":398,"value":446},"\"  Alice  \"",{"type":398,"value":448}," should be ",{"type":393,"tag":441,"props":450,"children":452},{"className":451},[],[453],{"type":398,"value":454},"\"Alice\"",{"type":393,"tag":435,"props":456,"children":457},{},[458,460,466,468,474,475,480,482],{"type":398,"value":459},"Inconsistent case: ",{"type":393,"tag":441,"props":461,"children":463},{"className":462},[],[464],{"type":398,"value":465},"\"ALICE\"",{"type":398,"value":467},", ",{"type":393,"tag":441,"props":469,"children":471},{"className":470},[],[472],{"type":398,"value":473},"\"alice\"",{"type":398,"value":467},{"type":393,"tag":441,"props":476,"children":478},{"className":477},[],[479],{"type":398,"value":454},{"type":398,"value":481}," should all be ",{"type":393,"tag":441,"props":483,"children":485},{"className":484},[],[486],{"type":398,"value":454},{"type":393,"tag":435,"props":488,"children":489},{},[490,492,498,500],{"type":398,"value":491},"Special characters: ",{"type":393,"tag":441,"props":493,"children":495},{"className":494},[],[496],{"type":398,"value":497},"\"Alice@123\"",{"type":398,"value":499}," might need to be ",{"type":393,"tag":441,"props":501,"children":503},{"className":502},[],[504],{"type":398,"value":454},{"type":393,"tag":435,"props":506,"children":507},{},[508],{"type":398,"value":509},"Inconsistent formats: Phone numbers, emails, addresses",{"type":393,"tag":435,"props":511,"children":512},{},[513,515,521,522,528,529],{"type":398,"value":514},"Typos and variations: ",{"type":393,"tag":441,"props":516,"children":518},{"className":517},[],[519],{"type":398,"value":520},"\"New York\"",{"type":398,"value":467},{"type":393,"tag":441,"props":523,"children":525},{"className":524},[],[526],{"type":398,"value":527},"\"NY\"",{"type":398,"value":467},{"type":393,"tag":441,"props":530,"children":532},{"className":531},[],[533],{"type":398,"value":534},"\"new york\"",{"type":393,"tag":401,"props":536,"children":537},{},[538],{"type":393,"tag":417,"props":539,"children":540},{},[541],{"type":398,"value":542},"Why Clean Text:",{"type":393,"tag":431,"props":544,"children":545},{},[546,551,556,561],{"type":393,"tag":435,"props":547,"children":548},{},[549],{"type":398,"value":550},"Accurate grouping and counting",{"type":393,"tag":435,"props":552,"children":553},{},[554],{"type":398,"value":555},"Consistent searches and filters",{"type":393,"tag":435,"props":557,"children":558},{},[559],{"type":398,"value":560},"Professional-looking reports",{"type":393,"tag":435,"props":562,"children":563},{},[564],{"type":398,"value":565},"Reliable data matching",{"type":393,"tag":401,"props":567,"children":568},{},[569,574],{"type":393,"tag":417,"props":570,"children":571},{},[572],{"type":398,"value":573},"Think of it like:",{"type":398,"value":575}," Proofreading a document before publishing - fix inconsistencies to make it professional and clear!",{"type":393,"tag":401,"props":577,"children":578},{},[579,584],{"type":393,"tag":417,"props":580,"children":581},{},[582],{"type":398,"value":583},"Goal:",{"type":398,"value":585}," Transform messy text into clean, standardized, consistent format.",{"type":393,"tag":587,"props":588,"children":590},"h2",{"id":589},"basic-text-cleaning",[591],{"type":398,"value":592},"🧹 Basic Text Cleaning",{"type":393,"tag":401,"props":594,"children":595},{},[596],{"type":398,"value":597},"Start with the most common text cleaning operations:",{"type":393,"tag":599,"props":600,"children":601},"code-try",{},[602],{"type":393,"tag":603,"props":604,"children":608},"pre",{"className":605,"code":606,"language":607,"meta":6,"style":6},"language-python shiki shiki-themes github-light github-dark","import pandas as pd\n\n# Customer data with messy text\ncustomers = pd.DataFrame({\n    'customer_id': [1, 2, 3, 4, 5],\n    'name': ['  Alice Johnson  ', 'bob smith', 'CHARLIE BROWN', '  diana LEE', 'Eve Davis  '],\n    'email': ['ALICE@EMAIL.COM', 'bob@email.com', 'Charlie@Email.Com', 'diana@EMAIL.com', 'eve@email.COM'],\n    'city': ['  New York  ', 'los angeles', 'CHICAGO', 'boston  ', '  Miami']\n})\n\nprint(\"📊 Messy Customer Data:\")\nprint(customers)\nprint()\n\nprint(\"🧹 Basic Cleaning Operations:\")\nprint()\n\nprint(\"1️⃣ Remove extra whitespace:\")\ncustomers['name_clean'] = customers['name'].str.strip()\nprint(\"Names after strip():\")\nprint(customers[['name', 'name_clean']])\nprint()\n\nprint(\"2️⃣ Standardize case:\")\ncustomers['name_clean'] = customers['name_clean'].str.title()\ncustomers['email_clean'] = customers['email'].str.lower()\ncustomers['city_clean'] = customers['city'].str.strip().str.title()\nprint(\"After case standardization:\")\nprint(customers[['name_clean', 'email_clean', 'city_clean']])\nprint()\n\nprint(\"3️⃣ Final clean data:\")\nclean_customers = customers[['customer_id', 'name_clean', 'email_clean', 'city_clean']]\nclean_customers.columns = ['customer_id', 'name', 'email', 'city']\nprint(clean_customers)\n","python",[609],{"type":393,"tag":441,"props":610,"children":611},{"__ignoreMap":6},[612,639,647,656,674,735,792,849,907,915,922,945,957,969,976,996,1007,1014,1034,1071,1091,1120,1131,1138,1158,1190,1224,1258,1278,1313,1324,1331,1351,1402,1451],{"type":393,"tag":613,"props":614,"children":616},"span",{"class":615,"line":11},"line",[617,623,629,634],{"type":393,"tag":613,"props":618,"children":620},{"style":619},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[621],{"type":398,"value":622},"import",{"type":393,"tag":613,"props":624,"children":626},{"style":625},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[627],{"type":398,"value":628}," pandas ",{"type":393,"tag":613,"props":630,"children":631},{"style":619},[632],{"type":398,"value":633},"as",{"type":393,"tag":613,"props":635,"children":636},{"style":625},[637],{"type":398,"value":638}," pd\n",{"type":393,"tag":613,"props":640,"children":641},{"class":615,"line":27},[642],{"type":393,"tag":613,"props":643,"children":644},{"emptyLinePlaceholder":12},[645],{"type":398,"value":646},"\n",{"type":393,"tag":613,"props":648,"children":649},{"class":615,"line":36},[650],{"type":393,"tag":613,"props":651,"children":653},{"style":652},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[654],{"type":398,"value":655},"# Customer data with messy text\n",{"type":393,"tag":613,"props":657,"children":658},{"class":615,"line":45},[659,664,669],{"type":393,"tag":613,"props":660,"children":661},{"style":625},[662],{"type":398,"value":663},"customers ",{"type":393,"tag":613,"props":665,"children":666},{"style":619},[667],{"type":398,"value":668},"=",{"type":393,"tag":613,"props":670,"children":671},{"style":625},[672],{"type":398,"value":673}," pd.DataFrame({\n",{"type":393,"tag":613,"props":675,"children":676},{"class":615,"line":54},[677,683,688,694,698,703,707,712,716,721,725,730],{"type":393,"tag":613,"props":678,"children":680},{"style":679},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[681],{"type":398,"value":682},"    'customer_id'",{"type":393,"tag":613,"props":684,"children":685},{"style":625},[686],{"type":398,"value":687},": [",{"type":393,"tag":613,"props":689,"children":691},{"style":690},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[692],{"type":398,"value":693},"1",{"type":393,"tag":613,"props":695,"children":696},{"style":625},[697],{"type":398,"value":467},{"type":393,"tag":613,"props":699,"children":700},{"style":690},[701],{"type":398,"value":702},"2",{"type":393,"tag":613,"props":704,"children":705},{"style":625},[706],{"type":398,"value":467},{"type":393,"tag":613,"props":708,"children":709},{"style":690},[710],{"type":398,"value":711},"3",{"type":393,"tag":613,"props":713,"children":714},{"style":625},[715],{"type":398,"value":467},{"type":393,"tag":613,"props":717,"children":718},{"style":690},[719],{"type":398,"value":720},"4",{"type":393,"tag":613,"props":722,"children":723},{"style":625},[724],{"type":398,"value":467},{"type":393,"tag":613,"props":726,"children":727},{"style":690},[728],{"type":398,"value":729},"5",{"type":393,"tag":613,"props":731,"children":732},{"style":625},[733],{"type":398,"value":734},"],\n",{"type":393,"tag":613,"props":736,"children":737},{"class":615,"line":63},[738,743,747,752,756,761,765,770,774,779,783,788],{"type":393,"tag":613,"props":739,"children":740},{"style":679},[741],{"type":398,"value":742},"    'name'",{"type":393,"tag":613,"props":744,"children":745},{"style":625},[746],{"type":398,"value":687},{"type":393,"tag":613,"props":748,"children":749},{"style":679},[750],{"type":398,"value":751},"'  Alice Johnson  '",{"type":393,"tag":613,"props":753,"children":754},{"style":625},[755],{"type":398,"value":467},{"type":393,"tag":613,"props":757,"children":758},{"style":679},[759],{"type":398,"value":760},"'bob smith'",{"type":393,"tag":613,"props":762,"children":763},{"style":625},[764],{"type":398,"value":467},{"type":393,"tag":613,"props":766,"children":767},{"style":679},[768],{"type":398,"value":769},"'CHARLIE BROWN'",{"type":393,"tag":613,"props":771,"children":772},{"style":625},[773],{"type":398,"value":467},{"type":393,"tag":613,"props":775,"children":776},{"style":679},[777],{"type":398,"value":778},"'  diana LEE'",{"type":393,"tag":613,"props":780,"children":781},{"style":625},[782],{"type":398,"value":467},{"type":393,"tag":613,"props":784,"children":785},{"style":679},[786],{"type":398,"value":787},"'Eve Davis  '",{"type":393,"tag":613,"props":789,"children":790},{"style":625},[791],{"type":398,"value":734},{"type":393,"tag":613,"props":793,"children":794},{"class":615,"line":72},[795,800,804,809,813,818,822,827,831,836,840,845],{"type":393,"tag":613,"props":796,"children":797},{"style":679},[798],{"type":398,"value":799},"    'email'",{"type":393,"tag":613,"props":801,"children":802},{"style":625},[803],{"type":398,"value":687},{"type":393,"tag":613,"props":805,"children":806},{"style":679},[807],{"type":398,"value":808},"'ALICE@EMAIL.COM'",{"type":393,"tag":613,"props":810,"children":811},{"style":625},[812],{"type":398,"value":467},{"type":393,"tag":613,"props":814,"children":815},{"style":679},[816],{"type":398,"value":817},"'bob@email.com'",{"type":393,"tag":613,"props":819,"children":820},{"style":625},[821],{"type":398,"value":467},{"type":393,"tag":613,"props":823,"children":824},{"style":679},[825],{"type":398,"value":826},"'Charlie@Email.Com'",{"type":393,"tag":613,"props":828,"children":829},{"style":625},[830],{"type":398,"value":467},{"type":393,"tag":613,"props":832,"children":833},{"style":679},[834],{"type":398,"value":835},"'diana@EMAIL.com'",{"type":393,"tag":613,"props":837,"children":838},{"style":625},[839],{"type":398,"value":467},{"type":393,"tag":613,"props":841,"children":842},{"style":679},[843],{"type":398,"value":844},"'eve@email.COM'",{"type":393,"tag":613,"props":846,"children":847},{"style":625},[848],{"type":398,"value":734},{"type":393,"tag":613,"props":850,"children":851},{"class":615,"line":83},[852,857,861,866,870,875,879,884,888,893,897,902],{"type":393,"tag":613,"props":853,"children":854},{"style":679},[855],{"type":398,"value":856},"    'city'",{"type":393,"tag":613,"props":858,"children":859},{"style":625},[860],{"type":398,"value":687},{"type":393,"tag":613,"props":862,"children":863},{"style":679},[864],{"type":398,"value":865},"'  New York  '",{"type":393,"tag":613,"props":867,"children":868},{"style":625},[869],{"type":398,"value":467},{"type":393,"tag":613,"props":871,"children":872},{"style":679},[873],{"type":398,"value":874},"'los angeles'",{"type":393,"tag":613,"props":876,"children":877},{"style":625},[878],{"type":398,"value":467},{"type":393,"tag":613,"props":880,"children":881},{"style":679},[882],{"type":398,"value":883},"'CHICAGO'",{"type":393,"tag":613,"props":885,"children":886},{"style":625},[887],{"type":398,"value":467},{"type":393,"tag":613,"props":889,"children":890},{"style":679},[891],{"type":398,"value":892},"'boston  '",{"type":393,"tag":613,"props":894,"children":895},{"style":625},[896],{"type":398,"value":467},{"type":393,"tag":613,"props":898,"children":899},{"style":679},[900],{"type":398,"value":901},"'  Miami'",{"type":393,"tag":613,"props":903,"children":904},{"style":625},[905],{"type":398,"value":906},"]\n",{"type":393,"tag":613,"props":908,"children":909},{"class":615,"line":92},[910],{"type":393,"tag":613,"props":911,"children":912},{"style":625},[913],{"type":398,"value":914},"})\n",{"type":393,"tag":613,"props":916,"children":917},{"class":615,"line":101},[918],{"type":393,"tag":613,"props":919,"children":920},{"emptyLinePlaceholder":12},[921],{"type":398,"value":646},{"type":393,"tag":613,"props":923,"children":924},{"class":615,"line":110},[925,930,935,940],{"type":393,"tag":613,"props":926,"children":927},{"style":690},[928],{"type":398,"value":929},"print",{"type":393,"tag":613,"props":931,"children":932},{"style":625},[933],{"type":398,"value":934},"(",{"type":393,"tag":613,"props":936,"children":937},{"style":679},[938],{"type":398,"value":939},"\"📊 Messy Customer Data:\"",{"type":393,"tag":613,"props":941,"children":942},{"style":625},[943],{"type":398,"value":944},")\n",{"type":393,"tag":613,"props":946,"children":947},{"class":615,"line":121},[948,952],{"type":393,"tag":613,"props":949,"children":950},{"style":690},[951],{"type":398,"value":929},{"type":393,"tag":613,"props":953,"children":954},{"style":625},[955],{"type":398,"value":956},"(customers)\n",{"type":393,"tag":613,"props":958,"children":959},{"class":615,"line":130},[960,964],{"type":393,"tag":613,"props":961,"children":962},{"style":690},[963],{"type":398,"value":929},{"type":393,"tag":613,"props":965,"children":966},{"style":625},[967],{"type":398,"value":968},"()\n",{"type":393,"tag":613,"props":970,"children":971},{"class":615,"line":139},[972],{"type":393,"tag":613,"props":973,"children":974},{"emptyLinePlaceholder":12},[975],{"type":398,"value":646},{"type":393,"tag":613,"props":977,"children":978},{"class":615,"line":148},[979,983,987,992],{"type":393,"tag":613,"props":980,"children":981},{"style":690},[982],{"type":398,"value":929},{"type":393,"tag":613,"props":984,"children":985},{"style":625},[986],{"type":398,"value":934},{"type":393,"tag":613,"props":988,"children":989},{"style":679},[990],{"type":398,"value":991},"\"🧹 Basic Cleaning Operations:\"",{"type":393,"tag":613,"props":993,"children":994},{"style":625},[995],{"type":398,"value":944},{"type":393,"tag":613,"props":997,"children":998},{"class":615,"line":159},[999,1003],{"type":393,"tag":613,"props":1000,"children":1001},{"style":690},[1002],{"type":398,"value":929},{"type":393,"tag":613,"props":1004,"children":1005},{"style":625},[1006],{"type":398,"value":968},{"type":393,"tag":613,"props":1008,"children":1009},{"class":615,"line":168},[1010],{"type":393,"tag":613,"props":1011,"children":1012},{"emptyLinePlaceholder":12},[1013],{"type":398,"value":646},{"type":393,"tag":613,"props":1015,"children":1016},{"class":615,"line":177},[1017,1021,1025,1030],{"type":393,"tag":613,"props":1018,"children":1019},{"style":690},[1020],{"type":398,"value":929},{"type":393,"tag":613,"props":1022,"children":1023},{"style":625},[1024],{"type":398,"value":934},{"type":393,"tag":613,"props":1026,"children":1027},{"style":679},[1028],{"type":398,"value":1029},"\"1️⃣ Remove extra whitespace:\"",{"type":393,"tag":613,"props":1031,"children":1032},{"style":625},[1033],{"type":398,"value":944},{"type":393,"tag":613,"props":1035,"children":1036},{"class":615,"line":186},[1037,1042,1047,1052,1056,1061,1066],{"type":393,"tag":613,"props":1038,"children":1039},{"style":625},[1040],{"type":398,"value":1041},"customers[",{"type":393,"tag":613,"props":1043,"children":1044},{"style":679},[1045],{"type":398,"value":1046},"'name_clean'",{"type":393,"tag":613,"props":1048,"children":1049},{"style":625},[1050],{"type":398,"value":1051},"] ",{"type":393,"tag":613,"props":1053,"children":1054},{"style":619},[1055],{"type":398,"value":668},{"type":393,"tag":613,"props":1057,"children":1058},{"style":625},[1059],{"type":398,"value":1060}," customers[",{"type":393,"tag":613,"props":1062,"children":1063},{"style":679},[1064],{"type":398,"value":1065},"'name'",{"type":393,"tag":613,"props":1067,"children":1068},{"style":625},[1069],{"type":398,"value":1070},"].str.strip()\n",{"type":393,"tag":613,"props":1072,"children":1073},{"class":615,"line":197},[1074,1078,1082,1087],{"type":393,"tag":613,"props":1075,"children":1076},{"style":690},[1077],{"type":398,"value":929},{"type":393,"tag":613,"props":1079,"children":1080},{"style":625},[1081],{"type":398,"value":934},{"type":393,"tag":613,"props":1083,"children":1084},{"style":679},[1085],{"type":398,"value":1086},"\"Names after strip():\"",{"type":393,"tag":613,"props":1088,"children":1089},{"style":625},[1090],{"type":398,"value":944},{"type":393,"tag":613,"props":1092,"children":1093},{"class":615,"line":206},[1094,1098,1103,1107,1111,1115],{"type":393,"tag":613,"props":1095,"children":1096},{"style":690},[1097],{"type":398,"value":929},{"type":393,"tag":613,"props":1099,"children":1100},{"style":625},[1101],{"type":398,"value":1102},"(customers[[",{"type":393,"tag":613,"props":1104,"children":1105},{"style":679},[1106],{"type":398,"value":1065},{"type":393,"tag":613,"props":1108,"children":1109},{"style":625},[1110],{"type":398,"value":467},{"type":393,"tag":613,"props":1112,"children":1113},{"style":679},[1114],{"type":398,"value":1046},{"type":393,"tag":613,"props":1116,"children":1117},{"style":625},[1118],{"type":398,"value":1119},"]])\n",{"type":393,"tag":613,"props":1121,"children":1122},{"class":615,"line":215},[1123,1127],{"type":393,"tag":613,"props":1124,"children":1125},{"style":690},[1126],{"type":398,"value":929},{"type":393,"tag":613,"props":1128,"children":1129},{"style":625},[1130],{"type":398,"value":968},{"type":393,"tag":613,"props":1132,"children":1133},{"class":615,"line":224},[1134],{"type":393,"tag":613,"props":1135,"children":1136},{"emptyLinePlaceholder":12},[1137],{"type":398,"value":646},{"type":393,"tag":613,"props":1139,"children":1140},{"class":615,"line":233},[1141,1145,1149,1154],{"type":393,"tag":613,"props":1142,"children":1143},{"style":690},[1144],{"type":398,"value":929},{"type":393,"tag":613,"props":1146,"children":1147},{"style":625},[1148],{"type":398,"value":934},{"type":393,"tag":613,"props":1150,"children":1151},{"style":679},[1152],{"type":398,"value":1153},"\"2️⃣ Standardize case:\"",{"type":393,"tag":613,"props":1155,"children":1156},{"style":625},[1157],{"type":398,"value":944},{"type":393,"tag":613,"props":1159,"children":1160},{"class":615,"line":244},[1161,1165,1169,1173,1177,1181,1185],{"type":393,"tag":613,"props":1162,"children":1163},{"style":625},[1164],{"type":398,"value":1041},{"type":393,"tag":613,"props":1166,"children":1167},{"style":679},[1168],{"type":398,"value":1046},{"type":393,"tag":613,"props":1170,"children":1171},{"style":625},[1172],{"type":398,"value":1051},{"type":393,"tag":613,"props":1174,"children":1175},{"style":619},[1176],{"type":398,"value":668},{"type":393,"tag":613,"props":1178,"children":1179},{"style":625},[1180],{"type":398,"value":1060},{"type":393,"tag":613,"props":1182,"children":1183},{"style":679},[1184],{"type":398,"value":1046},{"type":393,"tag":613,"props":1186,"children":1187},{"style":625},[1188],{"type":398,"value":1189},"].str.title()\n",{"type":393,"tag":613,"props":1191,"children":1192},{"class":615,"line":253},[1193,1197,1202,1206,1210,1214,1219],{"type":393,"tag":613,"props":1194,"children":1195},{"style":625},[1196],{"type":398,"value":1041},{"type":393,"tag":613,"props":1198,"children":1199},{"style":679},[1200],{"type":398,"value":1201},"'email_clean'",{"type":393,"tag":613,"props":1203,"children":1204},{"style":625},[1205],{"type":398,"value":1051},{"type":393,"tag":613,"props":1207,"children":1208},{"style":619},[1209],{"type":398,"value":668},{"type":393,"tag":613,"props":1211,"children":1212},{"style":625},[1213],{"type":398,"value":1060},{"type":393,"tag":613,"props":1215,"children":1216},{"style":679},[1217],{"type":398,"value":1218},"'email'",{"type":393,"tag":613,"props":1220,"children":1221},{"style":625},[1222],{"type":398,"value":1223},"].str.lower()\n",{"type":393,"tag":613,"props":1225,"children":1226},{"class":615,"line":262},[1227,1231,1236,1240,1244,1248,1253],{"type":393,"tag":613,"props":1228,"children":1229},{"style":625},[1230],{"type":398,"value":1041},{"type":393,"tag":613,"props":1232,"children":1233},{"style":679},[1234],{"type":398,"value":1235},"'city_clean'",{"type":393,"tag":613,"props":1237,"children":1238},{"style":625},[1239],{"type":398,"value":1051},{"type":393,"tag":613,"props":1241,"children":1242},{"style":619},[1243],{"type":398,"value":668},{"type":393,"tag":613,"props":1245,"children":1246},{"style":625},[1247],{"type":398,"value":1060},{"type":393,"tag":613,"props":1249,"children":1250},{"style":679},[1251],{"type":398,"value":1252},"'city'",{"type":393,"tag":613,"props":1254,"children":1255},{"style":625},[1256],{"type":398,"value":1257},"].str.strip().str.title()\n",{"type":393,"tag":613,"props":1259,"children":1260},{"class":615,"line":271},[1261,1265,1269,1274],{"type":393,"tag":613,"props":1262,"children":1263},{"style":690},[1264],{"type":398,"value":929},{"type":393,"tag":613,"props":1266,"children":1267},{"style":625},[1268],{"type":398,"value":934},{"type":393,"tag":613,"props":1270,"children":1271},{"style":679},[1272],{"type":398,"value":1273},"\"After case standardization:\"",{"type":393,"tag":613,"props":1275,"children":1276},{"style":625},[1277],{"type":398,"value":944},{"type":393,"tag":613,"props":1279,"children":1280},{"class":615,"line":281},[1281,1285,1289,1293,1297,1301,1305,1309],{"type":393,"tag":613,"props":1282,"children":1283},{"style":690},[1284],{"type":398,"value":929},{"type":393,"tag":613,"props":1286,"children":1287},{"style":625},[1288],{"type":398,"value":1102},{"type":393,"tag":613,"props":1290,"children":1291},{"style":679},[1292],{"type":398,"value":1046},{"type":393,"tag":613,"props":1294,"children":1295},{"style":625},[1296],{"type":398,"value":467},{"type":393,"tag":613,"props":1298,"children":1299},{"style":679},[1300],{"type":398,"value":1201},{"type":393,"tag":613,"props":1302,"children":1303},{"style":625},[1304],{"type":398,"value":467},{"type":393,"tag":613,"props":1306,"children":1307},{"style":679},[1308],{"type":398,"value":1235},{"type":393,"tag":613,"props":1310,"children":1311},{"style":625},[1312],{"type":398,"value":1119},{"type":393,"tag":613,"props":1314,"children":1315},{"class":615,"line":290},[1316,1320],{"type":393,"tag":613,"props":1317,"children":1318},{"style":690},[1319],{"type":398,"value":929},{"type":393,"tag":613,"props":1321,"children":1322},{"style":625},[1323],{"type":398,"value":968},{"type":393,"tag":613,"props":1325,"children":1326},{"class":615,"line":299},[1327],{"type":393,"tag":613,"props":1328,"children":1329},{"emptyLinePlaceholder":12},[1330],{"type":398,"value":646},{"type":393,"tag":613,"props":1332,"children":1333},{"class":615,"line":308},[1334,1338,1342,1347],{"type":393,"tag":613,"props":1335,"children":1336},{"style":690},[1337],{"type":398,"value":929},{"type":393,"tag":613,"props":1339,"children":1340},{"style":625},[1341],{"type":398,"value":934},{"type":393,"tag":613,"props":1343,"children":1344},{"style":679},[1345],{"type":398,"value":1346},"\"3️⃣ Final clean data:\"",{"type":393,"tag":613,"props":1348,"children":1349},{"style":625},[1350],{"type":398,"value":944},{"type":393,"tag":613,"props":1352,"children":1353},{"class":615,"line":318},[1354,1359,1363,1368,1373,1377,1381,1385,1389,1393,1397],{"type":393,"tag":613,"props":1355,"children":1356},{"style":625},[1357],{"type":398,"value":1358},"clean_customers ",{"type":393,"tag":613,"props":1360,"children":1361},{"style":619},[1362],{"type":398,"value":668},{"type":393,"tag":613,"props":1364,"children":1365},{"style":625},[1366],{"type":398,"value":1367}," customers[[",{"type":393,"tag":613,"props":1369,"children":1370},{"style":679},[1371],{"type":398,"value":1372},"'customer_id'",{"type":393,"tag":613,"props":1374,"children":1375},{"style":625},[1376],{"type":398,"value":467},{"type":393,"tag":613,"props":1378,"children":1379},{"style":679},[1380],{"type":398,"value":1046},{"type":393,"tag":613,"props":1382,"children":1383},{"style":625},[1384],{"type":398,"value":467},{"type":393,"tag":613,"props":1386,"children":1387},{"style":679},[1388],{"type":398,"value":1201},{"type":393,"tag":613,"props":1390,"children":1391},{"style":625},[1392],{"type":398,"value":467},{"type":393,"tag":613,"props":1394,"children":1395},{"style":679},[1396],{"type":398,"value":1235},{"type":393,"tag":613,"props":1398,"children":1399},{"style":625},[1400],{"type":398,"value":1401},"]]\n",{"type":393,"tag":613,"props":1403,"children":1404},{"class":615,"line":327},[1405,1410,1414,1419,1423,1427,1431,1435,1439,1443,1447],{"type":393,"tag":613,"props":1406,"children":1407},{"style":625},[1408],{"type":398,"value":1409},"clean_customers.columns ",{"type":393,"tag":613,"props":1411,"children":1412},{"style":619},[1413],{"type":398,"value":668},{"type":393,"tag":613,"props":1415,"children":1416},{"style":625},[1417],{"type":398,"value":1418}," [",{"type":393,"tag":613,"props":1420,"children":1421},{"style":679},[1422],{"type":398,"value":1372},{"type":393,"tag":613,"props":1424,"children":1425},{"style":625},[1426],{"type":398,"value":467},{"type":393,"tag":613,"props":1428,"children":1429},{"style":679},[1430],{"type":398,"value":1065},{"type":393,"tag":613,"props":1432,"children":1433},{"style":625},[1434],{"type":398,"value":467},{"type":393,"tag":613,"props":1436,"children":1437},{"style":679},[1438],{"type":398,"value":1218},{"type":393,"tag":613,"props":1440,"children":1441},{"style":625},[1442],{"type":398,"value":467},{"type":393,"tag":613,"props":1444,"children":1445},{"style":679},[1446],{"type":398,"value":1252},{"type":393,"tag":613,"props":1448,"children":1449},{"style":625},[1450],{"type":398,"value":906},{"type":393,"tag":613,"props":1452,"children":1453},{"class":615,"line":336},[1454,1458],{"type":393,"tag":613,"props":1455,"children":1456},{"style":690},[1457],{"type":398,"value":929},{"type":393,"tag":613,"props":1459,"children":1460},{"style":625},[1461],{"type":398,"value":1462},"(clean_customers)\n",{"type":393,"tag":587,"props":1464,"children":1466},{"id":1465},"advanced-text-cleaning",[1467],{"type":398,"value":1468},"🔧 Advanced Text Cleaning",{"type":393,"tag":401,"props":1470,"children":1471},{},[1472],{"type":398,"value":1473},"Handle more complex text cleaning scenarios:",{"type":393,"tag":599,"props":1475,"children":1476},{},[1477],{"type":393,"tag":603,"props":1478,"children":1480},{"className":605,"code":1479,"language":607,"meta":6,"style":6},"import pandas as pd\n\n# Product data with various text issues\nproducts = pd.DataFrame({\n    'product_name': ['  iPhone-14-Pro  ', 'Samsung Galaxy S23!', 'MacBook Air (2023)', \n                     'iPad Pro 12.9\"', 'Dell XPS-13 Laptop'],\n    'category': ['Electronics/Phones', 'Electronics / Phones', 'Computers/Laptops', \n                 'Electronics / Tablets', 'Computers / Laptops'],\n    'brand': ['Apple Inc.', 'SAMSUNG CORP', 'apple inc.', 'Apple Inc.', 'Dell Technologies'],\n    'description': ['Latest iPhone model!!!', 'Amazing phone with great camera.', \n                    'Lightweight laptop for work', 'Professional tablet device.', \n                    'Business laptop with excellent battery life.']\n})\n\nprint(\"📊 Product Data with Text Issues:\")\nprint(products)\nprint()\n\nprint(\"🔧 Advanced Cleaning Operations:\")\nprint()\n\nprint(\"1️⃣ Clean product names (remove special chars):\")\nproducts['product_name_clean'] = (products['product_name']\n                                  .str.strip()\n                                  .str.replace('[^a-zA-Z0-9\\s]', '', regex=True)\n                                  .str.replace('\\s+', ' ', regex=True))\nprint(\"Clean product names:\")\nprint(products[['product_name', 'product_name_clean']])\nprint()\n\nprint(\"2️⃣ Standardize categories:\")\nproducts['category_clean'] = (products['category']\n                              .str.replace('\\s*/\\s*', '/', regex=True)\n                              .str.title())\nprint(\"Clean categories:\")\nprint(products[['category', 'category_clean']])\nprint()\n\nprint(\"3️⃣ Standardize brand names:\")\nproducts['brand_clean'] = (products['brand']\n                           .str.replace('Inc\\.', '', regex=True)\n                           .str.replace('Corp\\.?', '', regex=True)\n                           .str.replace('Technologies', '', regex=True)\n                           .str.strip()\n                           .str.title())\nprint(\"Clean brands:\")\nprint(products[['brand', 'brand_clean']])\nprint()\n\nprint(\"4️⃣ Clean descriptions (remove extra punctuation):\")\nproducts['description_clean'] = (products['description']\n                                 .str.replace('[!]{2,}', '.', regex=True)\n                                 .str.strip())\nprint(\"Clean descriptions:\")\nprint(products[['description', 'description_clean']])\n",[1481],{"type":393,"tag":441,"props":1482,"children":1483},{"__ignoreMap":6},[1484,1503,1510,1518,1534,1574,1595,1634,1655,1711,1741,1762,1774,1781,1788,1808,1820,1831,1838,1858,1869,1876,1896,1931,1939,1984,2026,2046,2074,2085,2092,2112,2145,2187,2195,2215,2242,2253,2260,2280,2313,2355,2396,2437,2446,2455,2476,2504,2516,2524,2545,2579,2622,2631,2652],{"type":393,"tag":613,"props":1485,"children":1486},{"class":615,"line":11},[1487,1491,1495,1499],{"type":393,"tag":613,"props":1488,"children":1489},{"style":619},[1490],{"type":398,"value":622},{"type":393,"tag":613,"props":1492,"children":1493},{"style":625},[1494],{"type":398,"value":628},{"type":393,"tag":613,"props":1496,"children":1497},{"style":619},[1498],{"type":398,"value":633},{"type":393,"tag":613,"props":1500,"children":1501},{"style":625},[1502],{"type":398,"value":638},{"type":393,"tag":613,"props":1504,"children":1505},{"class":615,"line":27},[1506],{"type":393,"tag":613,"props":1507,"children":1508},{"emptyLinePlaceholder":12},[1509],{"type":398,"value":646},{"type":393,"tag":613,"props":1511,"children":1512},{"class":615,"line":36},[1513],{"type":393,"tag":613,"props":1514,"children":1515},{"style":652},[1516],{"type":398,"value":1517},"# Product data with various text issues\n",{"type":393,"tag":613,"props":1519,"children":1520},{"class":615,"line":45},[1521,1526,1530],{"type":393,"tag":613,"props":1522,"children":1523},{"style":625},[1524],{"type":398,"value":1525},"products ",{"type":393,"tag":613,"props":1527,"children":1528},{"style":619},[1529],{"type":398,"value":668},{"type":393,"tag":613,"props":1531,"children":1532},{"style":625},[1533],{"type":398,"value":673},{"type":393,"tag":613,"props":1535,"children":1536},{"class":615,"line":54},[1537,1542,1546,1551,1555,1560,1564,1569],{"type":393,"tag":613,"props":1538,"children":1539},{"style":679},[1540],{"type":398,"value":1541},"    'product_name'",{"type":393,"tag":613,"props":1543,"children":1544},{"style":625},[1545],{"type":398,"value":687},{"type":393,"tag":613,"props":1547,"children":1548},{"style":679},[1549],{"type":398,"value":1550},"'  iPhone-14-Pro  '",{"type":393,"tag":613,"props":1552,"children":1553},{"style":625},[1554],{"type":398,"value":467},{"type":393,"tag":613,"props":1556,"children":1557},{"style":679},[1558],{"type":398,"value":1559},"'Samsung Galaxy S23!'",{"type":393,"tag":613,"props":1561,"children":1562},{"style":625},[1563],{"type":398,"value":467},{"type":393,"tag":613,"props":1565,"children":1566},{"style":679},[1567],{"type":398,"value":1568},"'MacBook Air (2023)'",{"type":393,"tag":613,"props":1570,"children":1571},{"style":625},[1572],{"type":398,"value":1573},", \n",{"type":393,"tag":613,"props":1575,"children":1576},{"class":615,"line":63},[1577,1582,1586,1591],{"type":393,"tag":613,"props":1578,"children":1579},{"style":679},[1580],{"type":398,"value":1581},"                     'iPad Pro 12.9\"'",{"type":393,"tag":613,"props":1583,"children":1584},{"style":625},[1585],{"type":398,"value":467},{"type":393,"tag":613,"props":1587,"children":1588},{"style":679},[1589],{"type":398,"value":1590},"'Dell XPS-13 Laptop'",{"type":393,"tag":613,"props":1592,"children":1593},{"style":625},[1594],{"type":398,"value":734},{"type":393,"tag":613,"props":1596,"children":1597},{"class":615,"line":72},[1598,1603,1607,1612,1616,1621,1625,1630],{"type":393,"tag":613,"props":1599,"children":1600},{"style":679},[1601],{"type":398,"value":1602},"    'category'",{"type":393,"tag":613,"props":1604,"children":1605},{"style":625},[1606],{"type":398,"value":687},{"type":393,"tag":613,"props":1608,"children":1609},{"style":679},[1610],{"type":398,"value":1611},"'Electronics/Phones'",{"type":393,"tag":613,"props":1613,"children":1614},{"style":625},[1615],{"type":398,"value":467},{"type":393,"tag":613,"props":1617,"children":1618},{"style":679},[1619],{"type":398,"value":1620},"'Electronics / Phones'",{"type":393,"tag":613,"props":1622,"children":1623},{"style":625},[1624],{"type":398,"value":467},{"type":393,"tag":613,"props":1626,"children":1627},{"style":679},[1628],{"type":398,"value":1629},"'Computers/Laptops'",{"type":393,"tag":613,"props":1631,"children":1632},{"style":625},[1633],{"type":398,"value":1573},{"type":393,"tag":613,"props":1635,"children":1636},{"class":615,"line":83},[1637,1642,1646,1651],{"type":393,"tag":613,"props":1638,"children":1639},{"style":679},[1640],{"type":398,"value":1641},"                 'Electronics / Tablets'",{"type":393,"tag":613,"props":1643,"children":1644},{"style":625},[1645],{"type":398,"value":467},{"type":393,"tag":613,"props":1647,"children":1648},{"style":679},[1649],{"type":398,"value":1650},"'Computers / Laptops'",{"type":393,"tag":613,"props":1652,"children":1653},{"style":625},[1654],{"type":398,"value":734},{"type":393,"tag":613,"props":1656,"children":1657},{"class":615,"line":92},[1658,1663,1667,1672,1676,1681,1685,1690,1694,1698,1702,1707],{"type":393,"tag":613,"props":1659,"children":1660},{"style":679},[1661],{"type":398,"value":1662},"    'brand'",{"type":393,"tag":613,"props":1664,"children":1665},{"style":625},[1666],{"type":398,"value":687},{"type":393,"tag":613,"props":1668,"children":1669},{"style":679},[1670],{"type":398,"value":1671},"'Apple Inc.'",{"type":393,"tag":613,"props":1673,"children":1674},{"style":625},[1675],{"type":398,"value":467},{"type":393,"tag":613,"props":1677,"children":1678},{"style":679},[1679],{"type":398,"value":1680},"'SAMSUNG CORP'",{"type":393,"tag":613,"props":1682,"children":1683},{"style":625},[1684],{"type":398,"value":467},{"type":393,"tag":613,"props":1686,"children":1687},{"style":679},[1688],{"type":398,"value":1689},"'apple inc.'",{"type":393,"tag":613,"props":1691,"children":1692},{"style":625},[1693],{"type":398,"value":467},{"type":393,"tag":613,"props":1695,"children":1696},{"style":679},[1697],{"type":398,"value":1671},{"type":393,"tag":613,"props":1699,"children":1700},{"style":625},[1701],{"type":398,"value":467},{"type":393,"tag":613,"props":1703,"children":1704},{"style":679},[1705],{"type":398,"value":1706},"'Dell Technologies'",{"type":393,"tag":613,"props":1708,"children":1709},{"style":625},[1710],{"type":398,"value":734},{"type":393,"tag":613,"props":1712,"children":1713},{"class":615,"line":101},[1714,1719,1723,1728,1732,1737],{"type":393,"tag":613,"props":1715,"children":1716},{"style":679},[1717],{"type":398,"value":1718},"    'description'",{"type":393,"tag":613,"props":1720,"children":1721},{"style":625},[1722],{"type":398,"value":687},{"type":393,"tag":613,"props":1724,"children":1725},{"style":679},[1726],{"type":398,"value":1727},"'Latest iPhone model!!!'",{"type":393,"tag":613,"props":1729,"children":1730},{"style":625},[1731],{"type":398,"value":467},{"type":393,"tag":613,"props":1733,"children":1734},{"style":679},[1735],{"type":398,"value":1736},"'Amazing phone with great camera.'",{"type":393,"tag":613,"props":1738,"children":1739},{"style":625},[1740],{"type":398,"value":1573},{"type":393,"tag":613,"props":1742,"children":1743},{"class":615,"line":110},[1744,1749,1753,1758],{"type":393,"tag":613,"props":1745,"children":1746},{"style":679},[1747],{"type":398,"value":1748},"                    'Lightweight laptop for work'",{"type":393,"tag":613,"props":1750,"children":1751},{"style":625},[1752],{"type":398,"value":467},{"type":393,"tag":613,"props":1754,"children":1755},{"style":679},[1756],{"type":398,"value":1757},"'Professional tablet device.'",{"type":393,"tag":613,"props":1759,"children":1760},{"style":625},[1761],{"type":398,"value":1573},{"type":393,"tag":613,"props":1763,"children":1764},{"class":615,"line":121},[1765,1770],{"type":393,"tag":613,"props":1766,"children":1767},{"style":679},[1768],{"type":398,"value":1769},"                    'Business laptop with excellent battery life.'",{"type":393,"tag":613,"props":1771,"children":1772},{"style":625},[1773],{"type":398,"value":906},{"type":393,"tag":613,"props":1775,"children":1776},{"class":615,"line":130},[1777],{"type":393,"tag":613,"props":1778,"children":1779},{"style":625},[1780],{"type":398,"value":914},{"type":393,"tag":613,"props":1782,"children":1783},{"class":615,"line":139},[1784],{"type":393,"tag":613,"props":1785,"children":1786},{"emptyLinePlaceholder":12},[1787],{"type":398,"value":646},{"type":393,"tag":613,"props":1789,"children":1790},{"class":615,"line":148},[1791,1795,1799,1804],{"type":393,"tag":613,"props":1792,"children":1793},{"style":690},[1794],{"type":398,"value":929},{"type":393,"tag":613,"props":1796,"children":1797},{"style":625},[1798],{"type":398,"value":934},{"type":393,"tag":613,"props":1800,"children":1801},{"style":679},[1802],{"type":398,"value":1803},"\"📊 Product Data with Text Issues:\"",{"type":393,"tag":613,"props":1805,"children":1806},{"style":625},[1807],{"type":398,"value":944},{"type":393,"tag":613,"props":1809,"children":1810},{"class":615,"line":159},[1811,1815],{"type":393,"tag":613,"props":1812,"children":1813},{"style":690},[1814],{"type":398,"value":929},{"type":393,"tag":613,"props":1816,"children":1817},{"style":625},[1818],{"type":398,"value":1819},"(products)\n",{"type":393,"tag":613,"props":1821,"children":1822},{"class":615,"line":168},[1823,1827],{"type":393,"tag":613,"props":1824,"children":1825},{"style":690},[1826],{"type":398,"value":929},{"type":393,"tag":613,"props":1828,"children":1829},{"style":625},[1830],{"type":398,"value":968},{"type":393,"tag":613,"props":1832,"children":1833},{"class":615,"line":177},[1834],{"type":393,"tag":613,"props":1835,"children":1836},{"emptyLinePlaceholder":12},[1837],{"type":398,"value":646},{"type":393,"tag":613,"props":1839,"children":1840},{"class":615,"line":186},[1841,1845,1849,1854],{"type":393,"tag":613,"props":1842,"children":1843},{"style":690},[1844],{"type":398,"value":929},{"type":393,"tag":613,"props":1846,"children":1847},{"style":625},[1848],{"type":398,"value":934},{"type":393,"tag":613,"props":1850,"children":1851},{"style":679},[1852],{"type":398,"value":1853},"\"🔧 Advanced Cleaning Operations:\"",{"type":393,"tag":613,"props":1855,"children":1856},{"style":625},[1857],{"type":398,"value":944},{"type":393,"tag":613,"props":1859,"children":1860},{"class":615,"line":197},[1861,1865],{"type":393,"tag":613,"props":1862,"children":1863},{"style":690},[1864],{"type":398,"value":929},{"type":393,"tag":613,"props":1866,"children":1867},{"style":625},[1868],{"type":398,"value":968},{"type":393,"tag":613,"props":1870,"children":1871},{"class":615,"line":206},[1872],{"type":393,"tag":613,"props":1873,"children":1874},{"emptyLinePlaceholder":12},[1875],{"type":398,"value":646},{"type":393,"tag":613,"props":1877,"children":1878},{"class":615,"line":215},[1879,1883,1887,1892],{"type":393,"tag":613,"props":1880,"children":1881},{"style":690},[1882],{"type":398,"value":929},{"type":393,"tag":613,"props":1884,"children":1885},{"style":625},[1886],{"type":398,"value":934},{"type":393,"tag":613,"props":1888,"children":1889},{"style":679},[1890],{"type":398,"value":1891},"\"1️⃣ Clean product names (remove special chars):\"",{"type":393,"tag":613,"props":1893,"children":1894},{"style":625},[1895],{"type":398,"value":944},{"type":393,"tag":613,"props":1897,"children":1898},{"class":615,"line":224},[1899,1904,1909,1913,1917,1922,1927],{"type":393,"tag":613,"props":1900,"children":1901},{"style":625},[1902],{"type":398,"value":1903},"products[",{"type":393,"tag":613,"props":1905,"children":1906},{"style":679},[1907],{"type":398,"value":1908},"'product_name_clean'",{"type":393,"tag":613,"props":1910,"children":1911},{"style":625},[1912],{"type":398,"value":1051},{"type":393,"tag":613,"props":1914,"children":1915},{"style":619},[1916],{"type":398,"value":668},{"type":393,"tag":613,"props":1918,"children":1919},{"style":625},[1920],{"type":398,"value":1921}," (products[",{"type":393,"tag":613,"props":1923,"children":1924},{"style":679},[1925],{"type":398,"value":1926},"'product_name'",{"type":393,"tag":613,"props":1928,"children":1929},{"style":625},[1930],{"type":398,"value":906},{"type":393,"tag":613,"props":1932,"children":1933},{"class":615,"line":233},[1934],{"type":393,"tag":613,"props":1935,"children":1936},{"style":625},[1937],{"type":398,"value":1938},"                                  .str.strip()\n",{"type":393,"tag":613,"props":1940,"children":1941},{"class":615,"line":244},[1942,1947,1952,1956,1961,1965,1971,1975,1980],{"type":393,"tag":613,"props":1943,"children":1944},{"style":625},[1945],{"type":398,"value":1946},"                                  .str.replace(",{"type":393,"tag":613,"props":1948,"children":1949},{"style":679},[1950],{"type":398,"value":1951},"'[^a-zA-Z0-9\\s]'",{"type":393,"tag":613,"props":1953,"children":1954},{"style":625},[1955],{"type":398,"value":467},{"type":393,"tag":613,"props":1957,"children":1958},{"style":679},[1959],{"type":398,"value":1960},"''",{"type":393,"tag":613,"props":1962,"children":1963},{"style":625},[1964],{"type":398,"value":467},{"type":393,"tag":613,"props":1966,"children":1968},{"style":1967},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1969],{"type":398,"value":1970},"regex",{"type":393,"tag":613,"props":1972,"children":1973},{"style":619},[1974],{"type":398,"value":668},{"type":393,"tag":613,"props":1976,"children":1977},{"style":690},[1978],{"type":398,"value":1979},"True",{"type":393,"tag":613,"props":1981,"children":1982},{"style":625},[1983],{"type":398,"value":944},{"type":393,"tag":613,"props":1985,"children":1986},{"class":615,"line":253},[1987,1991,1996,2000,2005,2009,2013,2017,2021],{"type":393,"tag":613,"props":1988,"children":1989},{"style":625},[1990],{"type":398,"value":1946},{"type":393,"tag":613,"props":1992,"children":1993},{"style":679},[1994],{"type":398,"value":1995},"'\\s+'",{"type":393,"tag":613,"props":1997,"children":1998},{"style":625},[1999],{"type":398,"value":467},{"type":393,"tag":613,"props":2001,"children":2002},{"style":679},[2003],{"type":398,"value":2004},"' '",{"type":393,"tag":613,"props":2006,"children":2007},{"style":625},[2008],{"type":398,"value":467},{"type":393,"tag":613,"props":2010,"children":2011},{"style":1967},[2012],{"type":398,"value":1970},{"type":393,"tag":613,"props":2014,"children":2015},{"style":619},[2016],{"type":398,"value":668},{"type":393,"tag":613,"props":2018,"children":2019},{"style":690},[2020],{"type":398,"value":1979},{"type":393,"tag":613,"props":2022,"children":2023},{"style":625},[2024],{"type":398,"value":2025},"))\n",{"type":393,"tag":613,"props":2027,"children":2028},{"class":615,"line":262},[2029,2033,2037,2042],{"type":393,"tag":613,"props":2030,"children":2031},{"style":690},[2032],{"type":398,"value":929},{"type":393,"tag":613,"props":2034,"children":2035},{"style":625},[2036],{"type":398,"value":934},{"type":393,"tag":613,"props":2038,"children":2039},{"style":679},[2040],{"type":398,"value":2041},"\"Clean product names:\"",{"type":393,"tag":613,"props":2043,"children":2044},{"style":625},[2045],{"type":398,"value":944},{"type":393,"tag":613,"props":2047,"children":2048},{"class":615,"line":271},[2049,2053,2058,2062,2066,2070],{"type":393,"tag":613,"props":2050,"children":2051},{"style":690},[2052],{"type":398,"value":929},{"type":393,"tag":613,"props":2054,"children":2055},{"style":625},[2056],{"type":398,"value":2057},"(products[[",{"type":393,"tag":613,"props":2059,"children":2060},{"style":679},[2061],{"type":398,"value":1926},{"type":393,"tag":613,"props":2063,"children":2064},{"style":625},[2065],{"type":398,"value":467},{"type":393,"tag":613,"props":2067,"children":2068},{"style":679},[2069],{"type":398,"value":1908},{"type":393,"tag":613,"props":2071,"children":2072},{"style":625},[2073],{"type":398,"value":1119},{"type":393,"tag":613,"props":2075,"children":2076},{"class":615,"line":281},[2077,2081],{"type":393,"tag":613,"props":2078,"children":2079},{"style":690},[2080],{"type":398,"value":929},{"type":393,"tag":613,"props":2082,"children":2083},{"style":625},[2084],{"type":398,"value":968},{"type":393,"tag":613,"props":2086,"children":2087},{"class":615,"line":290},[2088],{"type":393,"tag":613,"props":2089,"children":2090},{"emptyLinePlaceholder":12},[2091],{"type":398,"value":646},{"type":393,"tag":613,"props":2093,"children":2094},{"class":615,"line":299},[2095,2099,2103,2108],{"type":393,"tag":613,"props":2096,"children":2097},{"style":690},[2098],{"type":398,"value":929},{"type":393,"tag":613,"props":2100,"children":2101},{"style":625},[2102],{"type":398,"value":934},{"type":393,"tag":613,"props":2104,"children":2105},{"style":679},[2106],{"type":398,"value":2107},"\"2️⃣ Standardize categories:\"",{"type":393,"tag":613,"props":2109,"children":2110},{"style":625},[2111],{"type":398,"value":944},{"type":393,"tag":613,"props":2113,"children":2114},{"class":615,"line":308},[2115,2119,2124,2128,2132,2136,2141],{"type":393,"tag":613,"props":2116,"children":2117},{"style":625},[2118],{"type":398,"value":1903},{"type":393,"tag":613,"props":2120,"children":2121},{"style":679},[2122],{"type":398,"value":2123},"'category_clean'",{"type":393,"tag":613,"props":2125,"children":2126},{"style":625},[2127],{"type":398,"value":1051},{"type":393,"tag":613,"props":2129,"children":2130},{"style":619},[2131],{"type":398,"value":668},{"type":393,"tag":613,"props":2133,"children":2134},{"style":625},[2135],{"type":398,"value":1921},{"type":393,"tag":613,"props":2137,"children":2138},{"style":679},[2139],{"type":398,"value":2140},"'category'",{"type":393,"tag":613,"props":2142,"children":2143},{"style":625},[2144],{"type":398,"value":906},{"type":393,"tag":613,"props":2146,"children":2147},{"class":615,"line":318},[2148,2153,2158,2162,2167,2171,2175,2179,2183],{"type":393,"tag":613,"props":2149,"children":2150},{"style":625},[2151],{"type":398,"value":2152},"                              .str.replace(",{"type":393,"tag":613,"props":2154,"children":2155},{"style":679},[2156],{"type":398,"value":2157},"'\\s*/\\s*'",{"type":393,"tag":613,"props":2159,"children":2160},{"style":625},[2161],{"type":398,"value":467},{"type":393,"tag":613,"props":2163,"children":2164},{"style":679},[2165],{"type":398,"value":2166},"'/'",{"type":393,"tag":613,"props":2168,"children":2169},{"style":625},[2170],{"type":398,"value":467},{"type":393,"tag":613,"props":2172,"children":2173},{"style":1967},[2174],{"type":398,"value":1970},{"type":393,"tag":613,"props":2176,"children":2177},{"style":619},[2178],{"type":398,"value":668},{"type":393,"tag":613,"props":2180,"children":2181},{"style":690},[2182],{"type":398,"value":1979},{"type":393,"tag":613,"props":2184,"children":2185},{"style":625},[2186],{"type":398,"value":944},{"type":393,"tag":613,"props":2188,"children":2189},{"class":615,"line":327},[2190],{"type":393,"tag":613,"props":2191,"children":2192},{"style":625},[2193],{"type":398,"value":2194},"                              .str.title())\n",{"type":393,"tag":613,"props":2196,"children":2197},{"class":615,"line":336},[2198,2202,2206,2211],{"type":393,"tag":613,"props":2199,"children":2200},{"style":690},[2201],{"type":398,"value":929},{"type":393,"tag":613,"props":2203,"children":2204},{"style":625},[2205],{"type":398,"value":934},{"type":393,"tag":613,"props":2207,"children":2208},{"style":679},[2209],{"type":398,"value":2210},"\"Clean categories:\"",{"type":393,"tag":613,"props":2212,"children":2213},{"style":625},[2214],{"type":398,"value":944},{"type":393,"tag":613,"props":2216,"children":2217},{"class":615,"line":346},[2218,2222,2226,2230,2234,2238],{"type":393,"tag":613,"props":2219,"children":2220},{"style":690},[2221],{"type":398,"value":929},{"type":393,"tag":613,"props":2223,"children":2224},{"style":625},[2225],{"type":398,"value":2057},{"type":393,"tag":613,"props":2227,"children":2228},{"style":679},[2229],{"type":398,"value":2140},{"type":393,"tag":613,"props":2231,"children":2232},{"style":625},[2233],{"type":398,"value":467},{"type":393,"tag":613,"props":2235,"children":2236},{"style":679},[2237],{"type":398,"value":2123},{"type":393,"tag":613,"props":2239,"children":2240},{"style":625},[2241],{"type":398,"value":1119},{"type":393,"tag":613,"props":2243,"children":2244},{"class":615,"line":355},[2245,2249],{"type":393,"tag":613,"props":2246,"children":2247},{"style":690},[2248],{"type":398,"value":929},{"type":393,"tag":613,"props":2250,"children":2251},{"style":625},[2252],{"type":398,"value":968},{"type":393,"tag":613,"props":2254,"children":2255},{"class":615,"line":364},[2256],{"type":393,"tag":613,"props":2257,"children":2258},{"emptyLinePlaceholder":12},[2259],{"type":398,"value":646},{"type":393,"tag":613,"props":2261,"children":2262},{"class":615,"line":374},[2263,2267,2271,2276],{"type":393,"tag":613,"props":2264,"children":2265},{"style":690},[2266],{"type":398,"value":929},{"type":393,"tag":613,"props":2268,"children":2269},{"style":625},[2270],{"type":398,"value":934},{"type":393,"tag":613,"props":2272,"children":2273},{"style":679},[2274],{"type":398,"value":2275},"\"3️⃣ Standardize brand names:\"",{"type":393,"tag":613,"props":2277,"children":2278},{"style":625},[2279],{"type":398,"value":944},{"type":393,"tag":613,"props":2281,"children":2282},{"class":615,"line":383},[2283,2287,2292,2296,2300,2304,2309],{"type":393,"tag":613,"props":2284,"children":2285},{"style":625},[2286],{"type":398,"value":1903},{"type":393,"tag":613,"props":2288,"children":2289},{"style":679},[2290],{"type":398,"value":2291},"'brand_clean'",{"type":393,"tag":613,"props":2293,"children":2294},{"style":625},[2295],{"type":398,"value":1051},{"type":393,"tag":613,"props":2297,"children":2298},{"style":619},[2299],{"type":398,"value":668},{"type":393,"tag":613,"props":2301,"children":2302},{"style":625},[2303],{"type":398,"value":1921},{"type":393,"tag":613,"props":2305,"children":2306},{"style":679},[2307],{"type":398,"value":2308},"'brand'",{"type":393,"tag":613,"props":2310,"children":2311},{"style":625},[2312],{"type":398,"value":906},{"type":393,"tag":613,"props":2314,"children":2316},{"class":615,"line":2315},41,[2317,2322,2327,2331,2335,2339,2343,2347,2351],{"type":393,"tag":613,"props":2318,"children":2319},{"style":625},[2320],{"type":398,"value":2321},"                           .str.replace(",{"type":393,"tag":613,"props":2323,"children":2324},{"style":679},[2325],{"type":398,"value":2326},"'Inc\\.'",{"type":393,"tag":613,"props":2328,"children":2329},{"style":625},[2330],{"type":398,"value":467},{"type":393,"tag":613,"props":2332,"children":2333},{"style":679},[2334],{"type":398,"value":1960},{"type":393,"tag":613,"props":2336,"children":2337},{"style":625},[2338],{"type":398,"value":467},{"type":393,"tag":613,"props":2340,"children":2341},{"style":1967},[2342],{"type":398,"value":1970},{"type":393,"tag":613,"props":2344,"children":2345},{"style":619},[2346],{"type":398,"value":668},{"type":393,"tag":613,"props":2348,"children":2349},{"style":690},[2350],{"type":398,"value":1979},{"type":393,"tag":613,"props":2352,"children":2353},{"style":625},[2354],{"type":398,"value":944},{"type":393,"tag":613,"props":2356,"children":2358},{"class":615,"line":2357},42,[2359,2363,2368,2372,2376,2380,2384,2388,2392],{"type":393,"tag":613,"props":2360,"children":2361},{"style":625},[2362],{"type":398,"value":2321},{"type":393,"tag":613,"props":2364,"children":2365},{"style":679},[2366],{"type":398,"value":2367},"'Corp\\.?'",{"type":393,"tag":613,"props":2369,"children":2370},{"style":625},[2371],{"type":398,"value":467},{"type":393,"tag":613,"props":2373,"children":2374},{"style":679},[2375],{"type":398,"value":1960},{"type":393,"tag":613,"props":2377,"children":2378},{"style":625},[2379],{"type":398,"value":467},{"type":393,"tag":613,"props":2381,"children":2382},{"style":1967},[2383],{"type":398,"value":1970},{"type":393,"tag":613,"props":2385,"children":2386},{"style":619},[2387],{"type":398,"value":668},{"type":393,"tag":613,"props":2389,"children":2390},{"style":690},[2391],{"type":398,"value":1979},{"type":393,"tag":613,"props":2393,"children":2394},{"style":625},[2395],{"type":398,"value":944},{"type":393,"tag":613,"props":2397,"children":2399},{"class":615,"line":2398},43,[2400,2404,2409,2413,2417,2421,2425,2429,2433],{"type":393,"tag":613,"props":2401,"children":2402},{"style":625},[2403],{"type":398,"value":2321},{"type":393,"tag":613,"props":2405,"children":2406},{"style":679},[2407],{"type":398,"value":2408},"'Technologies'",{"type":393,"tag":613,"props":2410,"children":2411},{"style":625},[2412],{"type":398,"value":467},{"type":393,"tag":613,"props":2414,"children":2415},{"style":679},[2416],{"type":398,"value":1960},{"type":393,"tag":613,"props":2418,"children":2419},{"style":625},[2420],{"type":398,"value":467},{"type":393,"tag":613,"props":2422,"children":2423},{"style":1967},[2424],{"type":398,"value":1970},{"type":393,"tag":613,"props":2426,"children":2427},{"style":619},[2428],{"type":398,"value":668},{"type":393,"tag":613,"props":2430,"children":2431},{"style":690},[2432],{"type":398,"value":1979},{"type":393,"tag":613,"props":2434,"children":2435},{"style":625},[2436],{"type":398,"value":944},{"type":393,"tag":613,"props":2438,"children":2440},{"class":615,"line":2439},44,[2441],{"type":393,"tag":613,"props":2442,"children":2443},{"style":625},[2444],{"type":398,"value":2445},"                           .str.strip()\n",{"type":393,"tag":613,"props":2447,"children":2449},{"class":615,"line":2448},45,[2450],{"type":393,"tag":613,"props":2451,"children":2452},{"style":625},[2453],{"type":398,"value":2454},"                           .str.title())\n",{"type":393,"tag":613,"props":2456,"children":2458},{"class":615,"line":2457},46,[2459,2463,2467,2472],{"type":393,"tag":613,"props":2460,"children":2461},{"style":690},[2462],{"type":398,"value":929},{"type":393,"tag":613,"props":2464,"children":2465},{"style":625},[2466],{"type":398,"value":934},{"type":393,"tag":613,"props":2468,"children":2469},{"style":679},[2470],{"type":398,"value":2471},"\"Clean brands:\"",{"type":393,"tag":613,"props":2473,"children":2474},{"style":625},[2475],{"type":398,"value":944},{"type":393,"tag":613,"props":2477,"children":2479},{"class":615,"line":2478},47,[2480,2484,2488,2492,2496,2500],{"type":393,"tag":613,"props":2481,"children":2482},{"style":690},[2483],{"type":398,"value":929},{"type":393,"tag":613,"props":2485,"children":2486},{"style":625},[2487],{"type":398,"value":2057},{"type":393,"tag":613,"props":2489,"children":2490},{"style":679},[2491],{"type":398,"value":2308},{"type":393,"tag":613,"props":2493,"children":2494},{"style":625},[2495],{"type":398,"value":467},{"type":393,"tag":613,"props":2497,"children":2498},{"style":679},[2499],{"type":398,"value":2291},{"type":393,"tag":613,"props":2501,"children":2502},{"style":625},[2503],{"type":398,"value":1119},{"type":393,"tag":613,"props":2505,"children":2507},{"class":615,"line":2506},48,[2508,2512],{"type":393,"tag":613,"props":2509,"children":2510},{"style":690},[2511],{"type":398,"value":929},{"type":393,"tag":613,"props":2513,"children":2514},{"style":625},[2515],{"type":398,"value":968},{"type":393,"tag":613,"props":2517,"children":2519},{"class":615,"line":2518},49,[2520],{"type":393,"tag":613,"props":2521,"children":2522},{"emptyLinePlaceholder":12},[2523],{"type":398,"value":646},{"type":393,"tag":613,"props":2525,"children":2527},{"class":615,"line":2526},50,[2528,2532,2536,2541],{"type":393,"tag":613,"props":2529,"children":2530},{"style":690},[2531],{"type":398,"value":929},{"type":393,"tag":613,"props":2533,"children":2534},{"style":625},[2535],{"type":398,"value":934},{"type":393,"tag":613,"props":2537,"children":2538},{"style":679},[2539],{"type":398,"value":2540},"\"4️⃣ Clean descriptions (remove extra punctuation):\"",{"type":393,"tag":613,"props":2542,"children":2543},{"style":625},[2544],{"type":398,"value":944},{"type":393,"tag":613,"props":2546,"children":2548},{"class":615,"line":2547},51,[2549,2553,2558,2562,2566,2570,2575],{"type":393,"tag":613,"props":2550,"children":2551},{"style":625},[2552],{"type":398,"value":1903},{"type":393,"tag":613,"props":2554,"children":2555},{"style":679},[2556],{"type":398,"value":2557},"'description_clean'",{"type":393,"tag":613,"props":2559,"children":2560},{"style":625},[2561],{"type":398,"value":1051},{"type":393,"tag":613,"props":2563,"children":2564},{"style":619},[2565],{"type":398,"value":668},{"type":393,"tag":613,"props":2567,"children":2568},{"style":625},[2569],{"type":398,"value":1921},{"type":393,"tag":613,"props":2571,"children":2572},{"style":679},[2573],{"type":398,"value":2574},"'description'",{"type":393,"tag":613,"props":2576,"children":2577},{"style":625},[2578],{"type":398,"value":906},{"type":393,"tag":613,"props":2580,"children":2582},{"class":615,"line":2581},52,[2583,2588,2593,2597,2602,2606,2610,2614,2618],{"type":393,"tag":613,"props":2584,"children":2585},{"style":625},[2586],{"type":398,"value":2587},"                                 .str.replace(",{"type":393,"tag":613,"props":2589,"children":2590},{"style":679},[2591],{"type":398,"value":2592},"'[!]{2,}'",{"type":393,"tag":613,"props":2594,"children":2595},{"style":625},[2596],{"type":398,"value":467},{"type":393,"tag":613,"props":2598,"children":2599},{"style":679},[2600],{"type":398,"value":2601},"'.'",{"type":393,"tag":613,"props":2603,"children":2604},{"style":625},[2605],{"type":398,"value":467},{"type":393,"tag":613,"props":2607,"children":2608},{"style":1967},[2609],{"type":398,"value":1970},{"type":393,"tag":613,"props":2611,"children":2612},{"style":619},[2613],{"type":398,"value":668},{"type":393,"tag":613,"props":2615,"children":2616},{"style":690},[2617],{"type":398,"value":1979},{"type":393,"tag":613,"props":2619,"children":2620},{"style":625},[2621],{"type":398,"value":944},{"type":393,"tag":613,"props":2623,"children":2625},{"class":615,"line":2624},53,[2626],{"type":393,"tag":613,"props":2627,"children":2628},{"style":625},[2629],{"type":398,"value":2630},"                                 .str.strip())\n",{"type":393,"tag":613,"props":2632,"children":2634},{"class":615,"line":2633},54,[2635,2639,2643,2648],{"type":393,"tag":613,"props":2636,"children":2637},{"style":690},[2638],{"type":398,"value":929},{"type":393,"tag":613,"props":2640,"children":2641},{"style":625},[2642],{"type":398,"value":934},{"type":393,"tag":613,"props":2644,"children":2645},{"style":679},[2646],{"type":398,"value":2647},"\"Clean descriptions:\"",{"type":393,"tag":613,"props":2649,"children":2650},{"style":625},[2651],{"type":398,"value":944},{"type":393,"tag":613,"props":2653,"children":2655},{"class":615,"line":2654},55,[2656,2660,2664,2668,2672,2676],{"type":393,"tag":613,"props":2657,"children":2658},{"style":690},[2659],{"type":398,"value":929},{"type":393,"tag":613,"props":2661,"children":2662},{"style":625},[2663],{"type":398,"value":2057},{"type":393,"tag":613,"props":2665,"children":2666},{"style":679},[2667],{"type":398,"value":2574},{"type":393,"tag":613,"props":2669,"children":2670},{"style":625},[2671],{"type":398,"value":467},{"type":393,"tag":613,"props":2673,"children":2674},{"style":679},[2675],{"type":398,"value":2557},{"type":393,"tag":613,"props":2677,"children":2678},{"style":625},[2679],{"type":398,"value":1119},{"type":393,"tag":587,"props":2681,"children":2683},{"id":2682},"standardizing-formats",[2684],{"type":398,"value":2685},"📞 Standardizing Formats",{"type":393,"tag":401,"props":2687,"children":2688},{},[2689],{"type":398,"value":2690},"Clean and standardize common data formats:",{"type":393,"tag":599,"props":2692,"children":2693},{},[2694],{"type":393,"tag":603,"props":2695,"children":2697},{"className":605,"code":2696,"language":607,"meta":6,"style":6},"import pandas as pd\n\n# Contact data with inconsistent formats\ncontacts = pd.DataFrame({\n    'name': ['Alice Johnson', 'Bob Smith', 'Charlie Brown'],\n    'phone': ['(555) 123-4567', '555.123.4567', '5551234567'],\n    'email': ['Alice@Company.COM', 'bob.smith@company.com', 'CHARLIE@COMPANY.COM'],\n    'address': ['123 Main St, New York, NY', '456 Oak Ave, Los Angeles, CA', \n                '789 Pine St, Chicago, IL']\n})\n\nprint(\"📊 Contact Data with Format Issues:\")\nprint(contacts)\nprint()\n\nprint(\"📞 Format Standardization:\")\nprint()\n\nprint(\"1️⃣ Standardize phone numbers:\")\ncontacts['phone_clean'] = (contacts['phone']\n                           .str.replace('[^0-9]', '', regex=True)  # Remove non-digits\n                           .str.replace(r'(\\d{3})(\\d{3})(\\d{4})', r'(\\1) \\2-\\3', regex=True))  # Format\nprint(\"Clean phone numbers:\")\nprint(contacts[['phone', 'phone_clean']])\nprint()\n\nprint(\"2️⃣ Standardize emails:\")\ncontacts['email_clean'] = contacts['email'].str.lower()\nprint(\"Clean emails:\")\nprint(contacts[['email', 'email_clean']])\nprint()\n\nprint(\"3️⃣ Extract state codes from addresses:\")\ncontacts['state'] = contacts['address'].str.extract(r', ([A-Z]{2})$')\nprint(\"Extracted states:\")\nprint(contacts[['address', 'state']])\n",[2698],{"type":393,"tag":441,"props":2699,"children":2700},{"__ignoreMap":6},[2701,2720,2727,2735,2751,2789,2828,2866,2896,2908,2915,2922,2942,2954,2965,2972,2992,3003,3010,3030,3065,3111,3237,3257,3285,3296,3303,3323,3355,3375,3402,3413,3420,3440,3509,3529],{"type":393,"tag":613,"props":2702,"children":2703},{"class":615,"line":11},[2704,2708,2712,2716],{"type":393,"tag":613,"props":2705,"children":2706},{"style":619},[2707],{"type":398,"value":622},{"type":393,"tag":613,"props":2709,"children":2710},{"style":625},[2711],{"type":398,"value":628},{"type":393,"tag":613,"props":2713,"children":2714},{"style":619},[2715],{"type":398,"value":633},{"type":393,"tag":613,"props":2717,"children":2718},{"style":625},[2719],{"type":398,"value":638},{"type":393,"tag":613,"props":2721,"children":2722},{"class":615,"line":27},[2723],{"type":393,"tag":613,"props":2724,"children":2725},{"emptyLinePlaceholder":12},[2726],{"type":398,"value":646},{"type":393,"tag":613,"props":2728,"children":2729},{"class":615,"line":36},[2730],{"type":393,"tag":613,"props":2731,"children":2732},{"style":652},[2733],{"type":398,"value":2734},"# Contact data with inconsistent formats\n",{"type":393,"tag":613,"props":2736,"children":2737},{"class":615,"line":45},[2738,2743,2747],{"type":393,"tag":613,"props":2739,"children":2740},{"style":625},[2741],{"type":398,"value":2742},"contacts ",{"type":393,"tag":613,"props":2744,"children":2745},{"style":619},[2746],{"type":398,"value":668},{"type":393,"tag":613,"props":2748,"children":2749},{"style":625},[2750],{"type":398,"value":673},{"type":393,"tag":613,"props":2752,"children":2753},{"class":615,"line":54},[2754,2758,2762,2767,2771,2776,2780,2785],{"type":393,"tag":613,"props":2755,"children":2756},{"style":679},[2757],{"type":398,"value":742},{"type":393,"tag":613,"props":2759,"children":2760},{"style":625},[2761],{"type":398,"value":687},{"type":393,"tag":613,"props":2763,"children":2764},{"style":679},[2765],{"type":398,"value":2766},"'Alice Johnson'",{"type":393,"tag":613,"props":2768,"children":2769},{"style":625},[2770],{"type":398,"value":467},{"type":393,"tag":613,"props":2772,"children":2773},{"style":679},[2774],{"type":398,"value":2775},"'Bob Smith'",{"type":393,"tag":613,"props":2777,"children":2778},{"style":625},[2779],{"type":398,"value":467},{"type":393,"tag":613,"props":2781,"children":2782},{"style":679},[2783],{"type":398,"value":2784},"'Charlie Brown'",{"type":393,"tag":613,"props":2786,"children":2787},{"style":625},[2788],{"type":398,"value":734},{"type":393,"tag":613,"props":2790,"children":2791},{"class":615,"line":63},[2792,2797,2801,2806,2810,2815,2819,2824],{"type":393,"tag":613,"props":2793,"children":2794},{"style":679},[2795],{"type":398,"value":2796},"    'phone'",{"type":393,"tag":613,"props":2798,"children":2799},{"style":625},[2800],{"type":398,"value":687},{"type":393,"tag":613,"props":2802,"children":2803},{"style":679},[2804],{"type":398,"value":2805},"'(555) 123-4567'",{"type":393,"tag":613,"props":2807,"children":2808},{"style":625},[2809],{"type":398,"value":467},{"type":393,"tag":613,"props":2811,"children":2812},{"style":679},[2813],{"type":398,"value":2814},"'555.123.4567'",{"type":393,"tag":613,"props":2816,"children":2817},{"style":625},[2818],{"type":398,"value":467},{"type":393,"tag":613,"props":2820,"children":2821},{"style":679},[2822],{"type":398,"value":2823},"'5551234567'",{"type":393,"tag":613,"props":2825,"children":2826},{"style":625},[2827],{"type":398,"value":734},{"type":393,"tag":613,"props":2829,"children":2830},{"class":615,"line":72},[2831,2835,2839,2844,2848,2853,2857,2862],{"type":393,"tag":613,"props":2832,"children":2833},{"style":679},[2834],{"type":398,"value":799},{"type":393,"tag":613,"props":2836,"children":2837},{"style":625},[2838],{"type":398,"value":687},{"type":393,"tag":613,"props":2840,"children":2841},{"style":679},[2842],{"type":398,"value":2843},"'Alice@Company.COM'",{"type":393,"tag":613,"props":2845,"children":2846},{"style":625},[2847],{"type":398,"value":467},{"type":393,"tag":613,"props":2849,"children":2850},{"style":679},[2851],{"type":398,"value":2852},"'bob.smith@company.com'",{"type":393,"tag":613,"props":2854,"children":2855},{"style":625},[2856],{"type":398,"value":467},{"type":393,"tag":613,"props":2858,"children":2859},{"style":679},[2860],{"type":398,"value":2861},"'CHARLIE@COMPANY.COM'",{"type":393,"tag":613,"props":2863,"children":2864},{"style":625},[2865],{"type":398,"value":734},{"type":393,"tag":613,"props":2867,"children":2868},{"class":615,"line":83},[2869,2874,2878,2883,2887,2892],{"type":393,"tag":613,"props":2870,"children":2871},{"style":679},[2872],{"type":398,"value":2873},"    'address'",{"type":393,"tag":613,"props":2875,"children":2876},{"style":625},[2877],{"type":398,"value":687},{"type":393,"tag":613,"props":2879,"children":2880},{"style":679},[2881],{"type":398,"value":2882},"'123 Main St, New York, NY'",{"type":393,"tag":613,"props":2884,"children":2885},{"style":625},[2886],{"type":398,"value":467},{"type":393,"tag":613,"props":2888,"children":2889},{"style":679},[2890],{"type":398,"value":2891},"'456 Oak Ave, Los Angeles, CA'",{"type":393,"tag":613,"props":2893,"children":2894},{"style":625},[2895],{"type":398,"value":1573},{"type":393,"tag":613,"props":2897,"children":2898},{"class":615,"line":92},[2899,2904],{"type":393,"tag":613,"props":2900,"children":2901},{"style":679},[2902],{"type":398,"value":2903},"                '789 Pine St, Chicago, IL'",{"type":393,"tag":613,"props":2905,"children":2906},{"style":625},[2907],{"type":398,"value":906},{"type":393,"tag":613,"props":2909,"children":2910},{"class":615,"line":101},[2911],{"type":393,"tag":613,"props":2912,"children":2913},{"style":625},[2914],{"type":398,"value":914},{"type":393,"tag":613,"props":2916,"children":2917},{"class":615,"line":110},[2918],{"type":393,"tag":613,"props":2919,"children":2920},{"emptyLinePlaceholder":12},[2921],{"type":398,"value":646},{"type":393,"tag":613,"props":2923,"children":2924},{"class":615,"line":121},[2925,2929,2933,2938],{"type":393,"tag":613,"props":2926,"children":2927},{"style":690},[2928],{"type":398,"value":929},{"type":393,"tag":613,"props":2930,"children":2931},{"style":625},[2932],{"type":398,"value":934},{"type":393,"tag":613,"props":2934,"children":2935},{"style":679},[2936],{"type":398,"value":2937},"\"📊 Contact Data with Format Issues:\"",{"type":393,"tag":613,"props":2939,"children":2940},{"style":625},[2941],{"type":398,"value":944},{"type":393,"tag":613,"props":2943,"children":2944},{"class":615,"line":130},[2945,2949],{"type":393,"tag":613,"props":2946,"children":2947},{"style":690},[2948],{"type":398,"value":929},{"type":393,"tag":613,"props":2950,"children":2951},{"style":625},[2952],{"type":398,"value":2953},"(contacts)\n",{"type":393,"tag":613,"props":2955,"children":2956},{"class":615,"line":139},[2957,2961],{"type":393,"tag":613,"props":2958,"children":2959},{"style":690},[2960],{"type":398,"value":929},{"type":393,"tag":613,"props":2962,"children":2963},{"style":625},[2964],{"type":398,"value":968},{"type":393,"tag":613,"props":2966,"children":2967},{"class":615,"line":148},[2968],{"type":393,"tag":613,"props":2969,"children":2970},{"emptyLinePlaceholder":12},[2971],{"type":398,"value":646},{"type":393,"tag":613,"props":2973,"children":2974},{"class":615,"line":159},[2975,2979,2983,2988],{"type":393,"tag":613,"props":2976,"children":2977},{"style":690},[2978],{"type":398,"value":929},{"type":393,"tag":613,"props":2980,"children":2981},{"style":625},[2982],{"type":398,"value":934},{"type":393,"tag":613,"props":2984,"children":2985},{"style":679},[2986],{"type":398,"value":2987},"\"📞 Format Standardization:\"",{"type":393,"tag":613,"props":2989,"children":2990},{"style":625},[2991],{"type":398,"value":944},{"type":393,"tag":613,"props":2993,"children":2994},{"class":615,"line":168},[2995,2999],{"type":393,"tag":613,"props":2996,"children":2997},{"style":690},[2998],{"type":398,"value":929},{"type":393,"tag":613,"props":3000,"children":3001},{"style":625},[3002],{"type":398,"value":968},{"type":393,"tag":613,"props":3004,"children":3005},{"class":615,"line":177},[3006],{"type":393,"tag":613,"props":3007,"children":3008},{"emptyLinePlaceholder":12},[3009],{"type":398,"value":646},{"type":393,"tag":613,"props":3011,"children":3012},{"class":615,"line":186},[3013,3017,3021,3026],{"type":393,"tag":613,"props":3014,"children":3015},{"style":690},[3016],{"type":398,"value":929},{"type":393,"tag":613,"props":3018,"children":3019},{"style":625},[3020],{"type":398,"value":934},{"type":393,"tag":613,"props":3022,"children":3023},{"style":679},[3024],{"type":398,"value":3025},"\"1️⃣ Standardize phone numbers:\"",{"type":393,"tag":613,"props":3027,"children":3028},{"style":625},[3029],{"type":398,"value":944},{"type":393,"tag":613,"props":3031,"children":3032},{"class":615,"line":197},[3033,3038,3043,3047,3051,3056,3061],{"type":393,"tag":613,"props":3034,"children":3035},{"style":625},[3036],{"type":398,"value":3037},"contacts[",{"type":393,"tag":613,"props":3039,"children":3040},{"style":679},[3041],{"type":398,"value":3042},"'phone_clean'",{"type":393,"tag":613,"props":3044,"children":3045},{"style":625},[3046],{"type":398,"value":1051},{"type":393,"tag":613,"props":3048,"children":3049},{"style":619},[3050],{"type":398,"value":668},{"type":393,"tag":613,"props":3052,"children":3053},{"style":625},[3054],{"type":398,"value":3055}," (contacts[",{"type":393,"tag":613,"props":3057,"children":3058},{"style":679},[3059],{"type":398,"value":3060},"'phone'",{"type":393,"tag":613,"props":3062,"children":3063},{"style":625},[3064],{"type":398,"value":906},{"type":393,"tag":613,"props":3066,"children":3067},{"class":615,"line":206},[3068,3072,3077,3081,3085,3089,3093,3097,3101,3106],{"type":393,"tag":613,"props":3069,"children":3070},{"style":625},[3071],{"type":398,"value":2321},{"type":393,"tag":613,"props":3073,"children":3074},{"style":679},[3075],{"type":398,"value":3076},"'[^0-9]'",{"type":393,"tag":613,"props":3078,"children":3079},{"style":625},[3080],{"type":398,"value":467},{"type":393,"tag":613,"props":3082,"children":3083},{"style":679},[3084],{"type":398,"value":1960},{"type":393,"tag":613,"props":3086,"children":3087},{"style":625},[3088],{"type":398,"value":467},{"type":393,"tag":613,"props":3090,"children":3091},{"style":1967},[3092],{"type":398,"value":1970},{"type":393,"tag":613,"props":3094,"children":3095},{"style":619},[3096],{"type":398,"value":668},{"type":393,"tag":613,"props":3098,"children":3099},{"style":690},[3100],{"type":398,"value":1979},{"type":393,"tag":613,"props":3102,"children":3103},{"style":625},[3104],{"type":398,"value":3105},")  ",{"type":393,"tag":613,"props":3107,"children":3108},{"style":652},[3109],{"type":398,"value":3110},"# Remove non-digits\n",{"type":393,"tag":613,"props":3112,"children":3113},{"class":615,"line":215},[3114,3118,3123,3128,3133,3138,3143,3147,3151,3156,3161,3165,3169,3173,3177,3181,3187,3191,3196,3202,3207,3211,3215,3219,3223,3227,3232],{"type":393,"tag":613,"props":3115,"children":3116},{"style":625},[3117],{"type":398,"value":2321},{"type":393,"tag":613,"props":3119,"children":3120},{"style":619},[3121],{"type":398,"value":3122},"r",{"type":393,"tag":613,"props":3124,"children":3125},{"style":679},[3126],{"type":398,"value":3127},"'",{"type":393,"tag":613,"props":3129,"children":3130},{"style":690},[3131],{"type":398,"value":3132},"(\\d",{"type":393,"tag":613,"props":3134,"children":3135},{"style":619},[3136],{"type":398,"value":3137},"{3}",{"type":393,"tag":613,"props":3139,"children":3140},{"style":690},[3141],{"type":398,"value":3142},")(\\d",{"type":393,"tag":613,"props":3144,"children":3145},{"style":619},[3146],{"type":398,"value":3137},{"type":393,"tag":613,"props":3148,"children":3149},{"style":690},[3150],{"type":398,"value":3142},{"type":393,"tag":613,"props":3152,"children":3153},{"style":619},[3154],{"type":398,"value":3155},"{4}",{"type":393,"tag":613,"props":3157,"children":3158},{"style":690},[3159],{"type":398,"value":3160},")",{"type":393,"tag":613,"props":3162,"children":3163},{"style":679},[3164],{"type":398,"value":3127},{"type":393,"tag":613,"props":3166,"children":3167},{"style":625},[3168],{"type":398,"value":467},{"type":393,"tag":613,"props":3170,"children":3171},{"style":619},[3172],{"type":398,"value":3122},{"type":393,"tag":613,"props":3174,"children":3175},{"style":679},[3176],{"type":398,"value":3127},{"type":393,"tag":613,"props":3178,"children":3179},{"style":690},[3180],{"type":398,"value":934},{"type":393,"tag":613,"props":3182,"children":3184},{"style":3183},"--shiki-default:#22863A;--shiki-app-dark-mode:#85E89D",[3185],{"type":398,"value":3186},"\\1",{"type":393,"tag":613,"props":3188,"children":3189},{"style":690},[3190],{"type":398,"value":3160},{"type":393,"tag":613,"props":3192,"children":3193},{"style":3183},[3194],{"type":398,"value":3195}," \\2",{"type":393,"tag":613,"props":3197,"children":3199},{"style":3198},"--shiki-default:#032F62;--shiki-app-dark-mode:#DBEDFF",[3200],{"type":398,"value":3201},"-",{"type":393,"tag":613,"props":3203,"children":3204},{"style":3183},[3205],{"type":398,"value":3206},"\\3",{"type":393,"tag":613,"props":3208,"children":3209},{"style":679},[3210],{"type":398,"value":3127},{"type":393,"tag":613,"props":3212,"children":3213},{"style":625},[3214],{"type":398,"value":467},{"type":393,"tag":613,"props":3216,"children":3217},{"style":1967},[3218],{"type":398,"value":1970},{"type":393,"tag":613,"props":3220,"children":3221},{"style":619},[3222],{"type":398,"value":668},{"type":393,"tag":613,"props":3224,"children":3225},{"style":690},[3226],{"type":398,"value":1979},{"type":393,"tag":613,"props":3228,"children":3229},{"style":625},[3230],{"type":398,"value":3231},"))  ",{"type":393,"tag":613,"props":3233,"children":3234},{"style":652},[3235],{"type":398,"value":3236},"# Format\n",{"type":393,"tag":613,"props":3238,"children":3239},{"class":615,"line":224},[3240,3244,3248,3253],{"type":393,"tag":613,"props":3241,"children":3242},{"style":690},[3243],{"type":398,"value":929},{"type":393,"tag":613,"props":3245,"children":3246},{"style":625},[3247],{"type":398,"value":934},{"type":393,"tag":613,"props":3249,"children":3250},{"style":679},[3251],{"type":398,"value":3252},"\"Clean phone numbers:\"",{"type":393,"tag":613,"props":3254,"children":3255},{"style":625},[3256],{"type":398,"value":944},{"type":393,"tag":613,"props":3258,"children":3259},{"class":615,"line":233},[3260,3264,3269,3273,3277,3281],{"type":393,"tag":613,"props":3261,"children":3262},{"style":690},[3263],{"type":398,"value":929},{"type":393,"tag":613,"props":3265,"children":3266},{"style":625},[3267],{"type":398,"value":3268},"(contacts[[",{"type":393,"tag":613,"props":3270,"children":3271},{"style":679},[3272],{"type":398,"value":3060},{"type":393,"tag":613,"props":3274,"children":3275},{"style":625},[3276],{"type":398,"value":467},{"type":393,"tag":613,"props":3278,"children":3279},{"style":679},[3280],{"type":398,"value":3042},{"type":393,"tag":613,"props":3282,"children":3283},{"style":625},[3284],{"type":398,"value":1119},{"type":393,"tag":613,"props":3286,"children":3287},{"class":615,"line":244},[3288,3292],{"type":393,"tag":613,"props":3289,"children":3290},{"style":690},[3291],{"type":398,"value":929},{"type":393,"tag":613,"props":3293,"children":3294},{"style":625},[3295],{"type":398,"value":968},{"type":393,"tag":613,"props":3297,"children":3298},{"class":615,"line":253},[3299],{"type":393,"tag":613,"props":3300,"children":3301},{"emptyLinePlaceholder":12},[3302],{"type":398,"value":646},{"type":393,"tag":613,"props":3304,"children":3305},{"class":615,"line":262},[3306,3310,3314,3319],{"type":393,"tag":613,"props":3307,"children":3308},{"style":690},[3309],{"type":398,"value":929},{"type":393,"tag":613,"props":3311,"children":3312},{"style":625},[3313],{"type":398,"value":934},{"type":393,"tag":613,"props":3315,"children":3316},{"style":679},[3317],{"type":398,"value":3318},"\"2️⃣ Standardize emails:\"",{"type":393,"tag":613,"props":3320,"children":3321},{"style":625},[3322],{"type":398,"value":944},{"type":393,"tag":613,"props":3324,"children":3325},{"class":615,"line":271},[3326,3330,3334,3338,3342,3347,3351],{"type":393,"tag":613,"props":3327,"children":3328},{"style":625},[3329],{"type":398,"value":3037},{"type":393,"tag":613,"props":3331,"children":3332},{"style":679},[3333],{"type":398,"value":1201},{"type":393,"tag":613,"props":3335,"children":3336},{"style":625},[3337],{"type":398,"value":1051},{"type":393,"tag":613,"props":3339,"children":3340},{"style":619},[3341],{"type":398,"value":668},{"type":393,"tag":613,"props":3343,"children":3344},{"style":625},[3345],{"type":398,"value":3346}," contacts[",{"type":393,"tag":613,"props":3348,"children":3349},{"style":679},[3350],{"type":398,"value":1218},{"type":393,"tag":613,"props":3352,"children":3353},{"style":625},[3354],{"type":398,"value":1223},{"type":393,"tag":613,"props":3356,"children":3357},{"class":615,"line":281},[3358,3362,3366,3371],{"type":393,"tag":613,"props":3359,"children":3360},{"style":690},[3361],{"type":398,"value":929},{"type":393,"tag":613,"props":3363,"children":3364},{"style":625},[3365],{"type":398,"value":934},{"type":393,"tag":613,"props":3367,"children":3368},{"style":679},[3369],{"type":398,"value":3370},"\"Clean emails:\"",{"type":393,"tag":613,"props":3372,"children":3373},{"style":625},[3374],{"type":398,"value":944},{"type":393,"tag":613,"props":3376,"children":3377},{"class":615,"line":290},[3378,3382,3386,3390,3394,3398],{"type":393,"tag":613,"props":3379,"children":3380},{"style":690},[3381],{"type":398,"value":929},{"type":393,"tag":613,"props":3383,"children":3384},{"style":625},[3385],{"type":398,"value":3268},{"type":393,"tag":613,"props":3387,"children":3388},{"style":679},[3389],{"type":398,"value":1218},{"type":393,"tag":613,"props":3391,"children":3392},{"style":625},[3393],{"type":398,"value":467},{"type":393,"tag":613,"props":3395,"children":3396},{"style":679},[3397],{"type":398,"value":1201},{"type":393,"tag":613,"props":3399,"children":3400},{"style":625},[3401],{"type":398,"value":1119},{"type":393,"tag":613,"props":3403,"children":3404},{"class":615,"line":299},[3405,3409],{"type":393,"tag":613,"props":3406,"children":3407},{"style":690},[3408],{"type":398,"value":929},{"type":393,"tag":613,"props":3410,"children":3411},{"style":625},[3412],{"type":398,"value":968},{"type":393,"tag":613,"props":3414,"children":3415},{"class":615,"line":308},[3416],{"type":393,"tag":613,"props":3417,"children":3418},{"emptyLinePlaceholder":12},[3419],{"type":398,"value":646},{"type":393,"tag":613,"props":3421,"children":3422},{"class":615,"line":318},[3423,3427,3431,3436],{"type":393,"tag":613,"props":3424,"children":3425},{"style":690},[3426],{"type":398,"value":929},{"type":393,"tag":613,"props":3428,"children":3429},{"style":625},[3430],{"type":398,"value":934},{"type":393,"tag":613,"props":3432,"children":3433},{"style":679},[3434],{"type":398,"value":3435},"\"3️⃣ Extract state codes from addresses:\"",{"type":393,"tag":613,"props":3437,"children":3438},{"style":625},[3439],{"type":398,"value":944},{"type":393,"tag":613,"props":3441,"children":3442},{"class":615,"line":327},[3443,3447,3452,3456,3460,3464,3469,3474,3478,3482,3486,3491,3496,3501,3505],{"type":393,"tag":613,"props":3444,"children":3445},{"style":625},[3446],{"type":398,"value":3037},{"type":393,"tag":613,"props":3448,"children":3449},{"style":679},[3450],{"type":398,"value":3451},"'state'",{"type":393,"tag":613,"props":3453,"children":3454},{"style":625},[3455],{"type":398,"value":1051},{"type":393,"tag":613,"props":3457,"children":3458},{"style":619},[3459],{"type":398,"value":668},{"type":393,"tag":613,"props":3461,"children":3462},{"style":625},[3463],{"type":398,"value":3346},{"type":393,"tag":613,"props":3465,"children":3466},{"style":679},[3467],{"type":398,"value":3468},"'address'",{"type":393,"tag":613,"props":3470,"children":3471},{"style":625},[3472],{"type":398,"value":3473},"].str.extract(",{"type":393,"tag":613,"props":3475,"children":3476},{"style":619},[3477],{"type":398,"value":3122},{"type":393,"tag":613,"props":3479,"children":3480},{"style":679},[3481],{"type":398,"value":3127},{"type":393,"tag":613,"props":3483,"children":3484},{"style":3198},[3485],{"type":398,"value":467},{"type":393,"tag":613,"props":3487,"children":3488},{"style":690},[3489],{"type":398,"value":3490},"([A-Z]",{"type":393,"tag":613,"props":3492,"children":3493},{"style":619},[3494],{"type":398,"value":3495},"{2}",{"type":393,"tag":613,"props":3497,"children":3498},{"style":690},[3499],{"type":398,"value":3500},")$",{"type":393,"tag":613,"props":3502,"children":3503},{"style":679},[3504],{"type":398,"value":3127},{"type":393,"tag":613,"props":3506,"children":3507},{"style":625},[3508],{"type":398,"value":944},{"type":393,"tag":613,"props":3510,"children":3511},{"class":615,"line":336},[3512,3516,3520,3525],{"type":393,"tag":613,"props":3513,"children":3514},{"style":690},[3515],{"type":398,"value":929},{"type":393,"tag":613,"props":3517,"children":3518},{"style":625},[3519],{"type":398,"value":934},{"type":393,"tag":613,"props":3521,"children":3522},{"style":679},[3523],{"type":398,"value":3524},"\"Extracted states:\"",{"type":393,"tag":613,"props":3526,"children":3527},{"style":625},[3528],{"type":398,"value":944},{"type":393,"tag":613,"props":3530,"children":3531},{"class":615,"line":346},[3532,3536,3540,3544,3548,3552],{"type":393,"tag":613,"props":3533,"children":3534},{"style":690},[3535],{"type":398,"value":929},{"type":393,"tag":613,"props":3537,"children":3538},{"style":625},[3539],{"type":398,"value":3268},{"type":393,"tag":613,"props":3541,"children":3542},{"style":679},[3543],{"type":398,"value":3468},{"type":393,"tag":613,"props":3545,"children":3546},{"style":625},[3547],{"type":398,"value":467},{"type":393,"tag":613,"props":3549,"children":3550},{"style":679},[3551],{"type":398,"value":3451},{"type":393,"tag":613,"props":3553,"children":3554},{"style":625},[3555],{"type":398,"value":1119},{"type":393,"tag":587,"props":3557,"children":3559},{"id":3558},"️-text-categorization-and-standardization",[3560],{"type":398,"value":3561},"🏷️ Text Categorization and Standardization",{"type":393,"tag":401,"props":3563,"children":3564},{},[3565],{"type":398,"value":3566},"Group similar text variations into standard categories:",{"type":393,"tag":599,"props":3568,"children":3569},{},[3570],{"type":393,"tag":603,"props":3571,"children":3573},{"className":605,"code":3572,"language":607,"meta":6,"style":6},"import pandas as pd\n\n# Survey data with varied responses\nsurvey = pd.DataFrame({\n    'respondent_id': [1, 2, 3, 4, 5, 6, 7, 8],\n    'satisfaction': ['Very Satisfied', 'satisfied', 'VERY SATISFIED', 'Neutral', \n                     'dissatisfied', 'Very Dissatisfied', 'neutral', 'Satisfied'],\n    'preferred_contact': ['email', 'E-mail', 'phone', 'Phone Call', 'EMAIL', \n                          'text message', 'SMS', 'phone call'],\n    'frequency': ['Daily', 'weekly', 'Weekly', 'Monthly', 'DAILY', 'monthly', 'Never', 'never']\n})\n\nprint(\"📊 Survey Data with Varied Responses:\")\nprint(survey)\nprint()\n\nprint(\"🏷️ Text Standardization:\")\nprint()\n\nprint(\"1️⃣ Standardize satisfaction levels:\")\nsatisfaction_mapping = {\n    'very satisfied': 'Very Satisfied',\n    'satisfied': 'Satisfied', \n    'neutral': 'Neutral',\n    'dissatisfied': 'Dissatisfied',\n    'very dissatisfied': 'Very Dissatisfied'\n}\n\nsurvey['satisfaction_clean'] = (survey['satisfaction']\n                                .str.lower()\n                                .map(satisfaction_mapping))\nprint(\"Clean satisfaction levels:\")\nprint(survey[['satisfaction', 'satisfaction_clean']])\nprint()\n\nprint(\"2️⃣ Standardize contact preferences:\")\ncontact_mapping = {\n    'email': 'Email',\n    'e-mail': 'Email',\n    'phone': 'Phone',\n    'phone call': 'Phone',\n    'text message': 'SMS',\n    'sms': 'SMS'\n}\n\nsurvey['contact_clean'] = (survey['preferred_contact']\n                           .str.lower()\n                           .map(contact_mapping))\nprint(\"Clean contact preferences:\")\nprint(survey[['preferred_contact', 'contact_clean']])\nprint()\n\nprint(\"3️⃣ Standardize frequency:\")\nsurvey['frequency_clean'] = survey['frequency'].str.title()\nprint(\"Clean frequency:\")\nprint(survey[['frequency', 'frequency_clean']])\n",[3574],{"type":393,"tag":441,"props":3575,"children":3576},{"__ignoreMap":6},[3577,3596,3603,3611,3627,3706,3754,3793,3848,3878,3962,3969,3976,3996,4008,4019,4026,4046,4057,4064,4084,4101,4123,4143,4163,4184,4201,4209,4216,4251,4259,4267,4287,4315,4326,4333,4353,4369,4389,4409,4429,4449,4469,4486,4493,4500,4533,4541,4549,4569,4596,4607,4614,4634,4668,4688],{"type":393,"tag":613,"props":3578,"children":3579},{"class":615,"line":11},[3580,3584,3588,3592],{"type":393,"tag":613,"props":3581,"children":3582},{"style":619},[3583],{"type":398,"value":622},{"type":393,"tag":613,"props":3585,"children":3586},{"style":625},[3587],{"type":398,"value":628},{"type":393,"tag":613,"props":3589,"children":3590},{"style":619},[3591],{"type":398,"value":633},{"type":393,"tag":613,"props":3593,"children":3594},{"style":625},[3595],{"type":398,"value":638},{"type":393,"tag":613,"props":3597,"children":3598},{"class":615,"line":27},[3599],{"type":393,"tag":613,"props":3600,"children":3601},{"emptyLinePlaceholder":12},[3602],{"type":398,"value":646},{"type":393,"tag":613,"props":3604,"children":3605},{"class":615,"line":36},[3606],{"type":393,"tag":613,"props":3607,"children":3608},{"style":652},[3609],{"type":398,"value":3610},"# Survey data with varied responses\n",{"type":393,"tag":613,"props":3612,"children":3613},{"class":615,"line":45},[3614,3619,3623],{"type":393,"tag":613,"props":3615,"children":3616},{"style":625},[3617],{"type":398,"value":3618},"survey ",{"type":393,"tag":613,"props":3620,"children":3621},{"style":619},[3622],{"type":398,"value":668},{"type":393,"tag":613,"props":3624,"children":3625},{"style":625},[3626],{"type":398,"value":673},{"type":393,"tag":613,"props":3628,"children":3629},{"class":615,"line":54},[3630,3635,3639,3643,3647,3651,3655,3659,3663,3667,3671,3675,3679,3684,3688,3693,3697,3702],{"type":393,"tag":613,"props":3631,"children":3632},{"style":679},[3633],{"type":398,"value":3634},"    'respondent_id'",{"type":393,"tag":613,"props":3636,"children":3637},{"style":625},[3638],{"type":398,"value":687},{"type":393,"tag":613,"props":3640,"children":3641},{"style":690},[3642],{"type":398,"value":693},{"type":393,"tag":613,"props":3644,"children":3645},{"style":625},[3646],{"type":398,"value":467},{"type":393,"tag":613,"props":3648,"children":3649},{"style":690},[3650],{"type":398,"value":702},{"type":393,"tag":613,"props":3652,"children":3653},{"style":625},[3654],{"type":398,"value":467},{"type":393,"tag":613,"props":3656,"children":3657},{"style":690},[3658],{"type":398,"value":711},{"type":393,"tag":613,"props":3660,"children":3661},{"style":625},[3662],{"type":398,"value":467},{"type":393,"tag":613,"props":3664,"children":3665},{"style":690},[3666],{"type":398,"value":720},{"type":393,"tag":613,"props":3668,"children":3669},{"style":625},[3670],{"type":398,"value":467},{"type":393,"tag":613,"props":3672,"children":3673},{"style":690},[3674],{"type":398,"value":729},{"type":393,"tag":613,"props":3676,"children":3677},{"style":625},[3678],{"type":398,"value":467},{"type":393,"tag":613,"props":3680,"children":3681},{"style":690},[3682],{"type":398,"value":3683},"6",{"type":393,"tag":613,"props":3685,"children":3686},{"style":625},[3687],{"type":398,"value":467},{"type":393,"tag":613,"props":3689,"children":3690},{"style":690},[3691],{"type":398,"value":3692},"7",{"type":393,"tag":613,"props":3694,"children":3695},{"style":625},[3696],{"type":398,"value":467},{"type":393,"tag":613,"props":3698,"children":3699},{"style":690},[3700],{"type":398,"value":3701},"8",{"type":393,"tag":613,"props":3703,"children":3704},{"style":625},[3705],{"type":398,"value":734},{"type":393,"tag":613,"props":3707,"children":3708},{"class":615,"line":63},[3709,3714,3718,3723,3727,3732,3736,3741,3745,3750],{"type":393,"tag":613,"props":3710,"children":3711},{"style":679},[3712],{"type":398,"value":3713},"    'satisfaction'",{"type":393,"tag":613,"props":3715,"children":3716},{"style":625},[3717],{"type":398,"value":687},{"type":393,"tag":613,"props":3719,"children":3720},{"style":679},[3721],{"type":398,"value":3722},"'Very Satisfied'",{"type":393,"tag":613,"props":3724,"children":3725},{"style":625},[3726],{"type":398,"value":467},{"type":393,"tag":613,"props":3728,"children":3729},{"style":679},[3730],{"type":398,"value":3731},"'satisfied'",{"type":393,"tag":613,"props":3733,"children":3734},{"style":625},[3735],{"type":398,"value":467},{"type":393,"tag":613,"props":3737,"children":3738},{"style":679},[3739],{"type":398,"value":3740},"'VERY SATISFIED'",{"type":393,"tag":613,"props":3742,"children":3743},{"style":625},[3744],{"type":398,"value":467},{"type":393,"tag":613,"props":3746,"children":3747},{"style":679},[3748],{"type":398,"value":3749},"'Neutral'",{"type":393,"tag":613,"props":3751,"children":3752},{"style":625},[3753],{"type":398,"value":1573},{"type":393,"tag":613,"props":3755,"children":3756},{"class":615,"line":72},[3757,3762,3766,3771,3775,3780,3784,3789],{"type":393,"tag":613,"props":3758,"children":3759},{"style":679},[3760],{"type":398,"value":3761},"                     'dissatisfied'",{"type":393,"tag":613,"props":3763,"children":3764},{"style":625},[3765],{"type":398,"value":467},{"type":393,"tag":613,"props":3767,"children":3768},{"style":679},[3769],{"type":398,"value":3770},"'Very Dissatisfied'",{"type":393,"tag":613,"props":3772,"children":3773},{"style":625},[3774],{"type":398,"value":467},{"type":393,"tag":613,"props":3776,"children":3777},{"style":679},[3778],{"type":398,"value":3779},"'neutral'",{"type":393,"tag":613,"props":3781,"children":3782},{"style":625},[3783],{"type":398,"value":467},{"type":393,"tag":613,"props":3785,"children":3786},{"style":679},[3787],{"type":398,"value":3788},"'Satisfied'",{"type":393,"tag":613,"props":3790,"children":3791},{"style":625},[3792],{"type":398,"value":734},{"type":393,"tag":613,"props":3794,"children":3795},{"class":615,"line":83},[3796,3801,3805,3809,3813,3818,3822,3826,3830,3835,3839,3844],{"type":393,"tag":613,"props":3797,"children":3798},{"style":679},[3799],{"type":398,"value":3800},"    'preferred_contact'",{"type":393,"tag":613,"props":3802,"children":3803},{"style":625},[3804],{"type":398,"value":687},{"type":393,"tag":613,"props":3806,"children":3807},{"style":679},[3808],{"type":398,"value":1218},{"type":393,"tag":613,"props":3810,"children":3811},{"style":625},[3812],{"type":398,"value":467},{"type":393,"tag":613,"props":3814,"children":3815},{"style":679},[3816],{"type":398,"value":3817},"'E-mail'",{"type":393,"tag":613,"props":3819,"children":3820},{"style":625},[3821],{"type":398,"value":467},{"type":393,"tag":613,"props":3823,"children":3824},{"style":679},[3825],{"type":398,"value":3060},{"type":393,"tag":613,"props":3827,"children":3828},{"style":625},[3829],{"type":398,"value":467},{"type":393,"tag":613,"props":3831,"children":3832},{"style":679},[3833],{"type":398,"value":3834},"'Phone Call'",{"type":393,"tag":613,"props":3836,"children":3837},{"style":625},[3838],{"type":398,"value":467},{"type":393,"tag":613,"props":3840,"children":3841},{"style":679},[3842],{"type":398,"value":3843},"'EMAIL'",{"type":393,"tag":613,"props":3845,"children":3846},{"style":625},[3847],{"type":398,"value":1573},{"type":393,"tag":613,"props":3849,"children":3850},{"class":615,"line":92},[3851,3856,3860,3865,3869,3874],{"type":393,"tag":613,"props":3852,"children":3853},{"style":679},[3854],{"type":398,"value":3855},"                          'text message'",{"type":393,"tag":613,"props":3857,"children":3858},{"style":625},[3859],{"type":398,"value":467},{"type":393,"tag":613,"props":3861,"children":3862},{"style":679},[3863],{"type":398,"value":3864},"'SMS'",{"type":393,"tag":613,"props":3866,"children":3867},{"style":625},[3868],{"type":398,"value":467},{"type":393,"tag":613,"props":3870,"children":3871},{"style":679},[3872],{"type":398,"value":3873},"'phone call'",{"type":393,"tag":613,"props":3875,"children":3876},{"style":625},[3877],{"type":398,"value":734},{"type":393,"tag":613,"props":3879,"children":3880},{"class":615,"line":101},[3881,3886,3890,3895,3899,3904,3908,3913,3917,3922,3926,3931,3935,3940,3944,3949,3953,3958],{"type":393,"tag":613,"props":3882,"children":3883},{"style":679},[3884],{"type":398,"value":3885},"    'frequency'",{"type":393,"tag":613,"props":3887,"children":3888},{"style":625},[3889],{"type":398,"value":687},{"type":393,"tag":613,"props":3891,"children":3892},{"style":679},[3893],{"type":398,"value":3894},"'Daily'",{"type":393,"tag":613,"props":3896,"children":3897},{"style":625},[3898],{"type":398,"value":467},{"type":393,"tag":613,"props":3900,"children":3901},{"style":679},[3902],{"type":398,"value":3903},"'weekly'",{"type":393,"tag":613,"props":3905,"children":3906},{"style":625},[3907],{"type":398,"value":467},{"type":393,"tag":613,"props":3909,"children":3910},{"style":679},[3911],{"type":398,"value":3912},"'Weekly'",{"type":393,"tag":613,"props":3914,"children":3915},{"style":625},[3916],{"type":398,"value":467},{"type":393,"tag":613,"props":3918,"children":3919},{"style":679},[3920],{"type":398,"value":3921},"'Monthly'",{"type":393,"tag":613,"props":3923,"children":3924},{"style":625},[3925],{"type":398,"value":467},{"type":393,"tag":613,"props":3927,"children":3928},{"style":679},[3929],{"type":398,"value":3930},"'DAILY'",{"type":393,"tag":613,"props":3932,"children":3933},{"style":625},[3934],{"type":398,"value":467},{"type":393,"tag":613,"props":3936,"children":3937},{"style":679},[3938],{"type":398,"value":3939},"'monthly'",{"type":393,"tag":613,"props":3941,"children":3942},{"style":625},[3943],{"type":398,"value":467},{"type":393,"tag":613,"props":3945,"children":3946},{"style":679},[3947],{"type":398,"value":3948},"'Never'",{"type":393,"tag":613,"props":3950,"children":3951},{"style":625},[3952],{"type":398,"value":467},{"type":393,"tag":613,"props":3954,"children":3955},{"style":679},[3956],{"type":398,"value":3957},"'never'",{"type":393,"tag":613,"props":3959,"children":3960},{"style":625},[3961],{"type":398,"value":906},{"type":393,"tag":613,"props":3963,"children":3964},{"class":615,"line":110},[3965],{"type":393,"tag":613,"props":3966,"children":3967},{"style":625},[3968],{"type":398,"value":914},{"type":393,"tag":613,"props":3970,"children":3971},{"class":615,"line":121},[3972],{"type":393,"tag":613,"props":3973,"children":3974},{"emptyLinePlaceholder":12},[3975],{"type":398,"value":646},{"type":393,"tag":613,"props":3977,"children":3978},{"class":615,"line":130},[3979,3983,3987,3992],{"type":393,"tag":613,"props":3980,"children":3981},{"style":690},[3982],{"type":398,"value":929},{"type":393,"tag":613,"props":3984,"children":3985},{"style":625},[3986],{"type":398,"value":934},{"type":393,"tag":613,"props":3988,"children":3989},{"style":679},[3990],{"type":398,"value":3991},"\"📊 Survey Data with Varied Responses:\"",{"type":393,"tag":613,"props":3993,"children":3994},{"style":625},[3995],{"type":398,"value":944},{"type":393,"tag":613,"props":3997,"children":3998},{"class":615,"line":139},[3999,4003],{"type":393,"tag":613,"props":4000,"children":4001},{"style":690},[4002],{"type":398,"value":929},{"type":393,"tag":613,"props":4004,"children":4005},{"style":625},[4006],{"type":398,"value":4007},"(survey)\n",{"type":393,"tag":613,"props":4009,"children":4010},{"class":615,"line":148},[4011,4015],{"type":393,"tag":613,"props":4012,"children":4013},{"style":690},[4014],{"type":398,"value":929},{"type":393,"tag":613,"props":4016,"children":4017},{"style":625},[4018],{"type":398,"value":968},{"type":393,"tag":613,"props":4020,"children":4021},{"class":615,"line":159},[4022],{"type":393,"tag":613,"props":4023,"children":4024},{"emptyLinePlaceholder":12},[4025],{"type":398,"value":646},{"type":393,"tag":613,"props":4027,"children":4028},{"class":615,"line":168},[4029,4033,4037,4042],{"type":393,"tag":613,"props":4030,"children":4031},{"style":690},[4032],{"type":398,"value":929},{"type":393,"tag":613,"props":4034,"children":4035},{"style":625},[4036],{"type":398,"value":934},{"type":393,"tag":613,"props":4038,"children":4039},{"style":679},[4040],{"type":398,"value":4041},"\"🏷️ Text Standardization:\"",{"type":393,"tag":613,"props":4043,"children":4044},{"style":625},[4045],{"type":398,"value":944},{"type":393,"tag":613,"props":4047,"children":4048},{"class":615,"line":177},[4049,4053],{"type":393,"tag":613,"props":4050,"children":4051},{"style":690},[4052],{"type":398,"value":929},{"type":393,"tag":613,"props":4054,"children":4055},{"style":625},[4056],{"type":398,"value":968},{"type":393,"tag":613,"props":4058,"children":4059},{"class":615,"line":186},[4060],{"type":393,"tag":613,"props":4061,"children":4062},{"emptyLinePlaceholder":12},[4063],{"type":398,"value":646},{"type":393,"tag":613,"props":4065,"children":4066},{"class":615,"line":197},[4067,4071,4075,4080],{"type":393,"tag":613,"props":4068,"children":4069},{"style":690},[4070],{"type":398,"value":929},{"type":393,"tag":613,"props":4072,"children":4073},{"style":625},[4074],{"type":398,"value":934},{"type":393,"tag":613,"props":4076,"children":4077},{"style":679},[4078],{"type":398,"value":4079},"\"1️⃣ Standardize satisfaction levels:\"",{"type":393,"tag":613,"props":4081,"children":4082},{"style":625},[4083],{"type":398,"value":944},{"type":393,"tag":613,"props":4085,"children":4086},{"class":615,"line":206},[4087,4092,4096],{"type":393,"tag":613,"props":4088,"children":4089},{"style":625},[4090],{"type":398,"value":4091},"satisfaction_mapping ",{"type":393,"tag":613,"props":4093,"children":4094},{"style":619},[4095],{"type":398,"value":668},{"type":393,"tag":613,"props":4097,"children":4098},{"style":625},[4099],{"type":398,"value":4100}," {\n",{"type":393,"tag":613,"props":4102,"children":4103},{"class":615,"line":215},[4104,4109,4114,4118],{"type":393,"tag":613,"props":4105,"children":4106},{"style":679},[4107],{"type":398,"value":4108},"    'very satisfied'",{"type":393,"tag":613,"props":4110,"children":4111},{"style":625},[4112],{"type":398,"value":4113},": ",{"type":393,"tag":613,"props":4115,"children":4116},{"style":679},[4117],{"type":398,"value":3722},{"type":393,"tag":613,"props":4119,"children":4120},{"style":625},[4121],{"type":398,"value":4122},",\n",{"type":393,"tag":613,"props":4124,"children":4125},{"class":615,"line":224},[4126,4131,4135,4139],{"type":393,"tag":613,"props":4127,"children":4128},{"style":679},[4129],{"type":398,"value":4130},"    'satisfied'",{"type":393,"tag":613,"props":4132,"children":4133},{"style":625},[4134],{"type":398,"value":4113},{"type":393,"tag":613,"props":4136,"children":4137},{"style":679},[4138],{"type":398,"value":3788},{"type":393,"tag":613,"props":4140,"children":4141},{"style":625},[4142],{"type":398,"value":1573},{"type":393,"tag":613,"props":4144,"children":4145},{"class":615,"line":233},[4146,4151,4155,4159],{"type":393,"tag":613,"props":4147,"children":4148},{"style":679},[4149],{"type":398,"value":4150},"    'neutral'",{"type":393,"tag":613,"props":4152,"children":4153},{"style":625},[4154],{"type":398,"value":4113},{"type":393,"tag":613,"props":4156,"children":4157},{"style":679},[4158],{"type":398,"value":3749},{"type":393,"tag":613,"props":4160,"children":4161},{"style":625},[4162],{"type":398,"value":4122},{"type":393,"tag":613,"props":4164,"children":4165},{"class":615,"line":244},[4166,4171,4175,4180],{"type":393,"tag":613,"props":4167,"children":4168},{"style":679},[4169],{"type":398,"value":4170},"    'dissatisfied'",{"type":393,"tag":613,"props":4172,"children":4173},{"style":625},[4174],{"type":398,"value":4113},{"type":393,"tag":613,"props":4176,"children":4177},{"style":679},[4178],{"type":398,"value":4179},"'Dissatisfied'",{"type":393,"tag":613,"props":4181,"children":4182},{"style":625},[4183],{"type":398,"value":4122},{"type":393,"tag":613,"props":4185,"children":4186},{"class":615,"line":253},[4187,4192,4196],{"type":393,"tag":613,"props":4188,"children":4189},{"style":679},[4190],{"type":398,"value":4191},"    'very dissatisfied'",{"type":393,"tag":613,"props":4193,"children":4194},{"style":625},[4195],{"type":398,"value":4113},{"type":393,"tag":613,"props":4197,"children":4198},{"style":679},[4199],{"type":398,"value":4200},"'Very Dissatisfied'\n",{"type":393,"tag":613,"props":4202,"children":4203},{"class":615,"line":262},[4204],{"type":393,"tag":613,"props":4205,"children":4206},{"style":625},[4207],{"type":398,"value":4208},"}\n",{"type":393,"tag":613,"props":4210,"children":4211},{"class":615,"line":271},[4212],{"type":393,"tag":613,"props":4213,"children":4214},{"emptyLinePlaceholder":12},[4215],{"type":398,"value":646},{"type":393,"tag":613,"props":4217,"children":4218},{"class":615,"line":281},[4219,4224,4229,4233,4237,4242,4247],{"type":393,"tag":613,"props":4220,"children":4221},{"style":625},[4222],{"type":398,"value":4223},"survey[",{"type":393,"tag":613,"props":4225,"children":4226},{"style":679},[4227],{"type":398,"value":4228},"'satisfaction_clean'",{"type":393,"tag":613,"props":4230,"children":4231},{"style":625},[4232],{"type":398,"value":1051},{"type":393,"tag":613,"props":4234,"children":4235},{"style":619},[4236],{"type":398,"value":668},{"type":393,"tag":613,"props":4238,"children":4239},{"style":625},[4240],{"type":398,"value":4241}," (survey[",{"type":393,"tag":613,"props":4243,"children":4244},{"style":679},[4245],{"type":398,"value":4246},"'satisfaction'",{"type":393,"tag":613,"props":4248,"children":4249},{"style":625},[4250],{"type":398,"value":906},{"type":393,"tag":613,"props":4252,"children":4253},{"class":615,"line":290},[4254],{"type":393,"tag":613,"props":4255,"children":4256},{"style":625},[4257],{"type":398,"value":4258},"                                .str.lower()\n",{"type":393,"tag":613,"props":4260,"children":4261},{"class":615,"line":299},[4262],{"type":393,"tag":613,"props":4263,"children":4264},{"style":625},[4265],{"type":398,"value":4266},"                                .map(satisfaction_mapping))\n",{"type":393,"tag":613,"props":4268,"children":4269},{"class":615,"line":308},[4270,4274,4278,4283],{"type":393,"tag":613,"props":4271,"children":4272},{"style":690},[4273],{"type":398,"value":929},{"type":393,"tag":613,"props":4275,"children":4276},{"style":625},[4277],{"type":398,"value":934},{"type":393,"tag":613,"props":4279,"children":4280},{"style":679},[4281],{"type":398,"value":4282},"\"Clean satisfaction levels:\"",{"type":393,"tag":613,"props":4284,"children":4285},{"style":625},[4286],{"type":398,"value":944},{"type":393,"tag":613,"props":4288,"children":4289},{"class":615,"line":318},[4290,4294,4299,4303,4307,4311],{"type":393,"tag":613,"props":4291,"children":4292},{"style":690},[4293],{"type":398,"value":929},{"type":393,"tag":613,"props":4295,"children":4296},{"style":625},[4297],{"type":398,"value":4298},"(survey[[",{"type":393,"tag":613,"props":4300,"children":4301},{"style":679},[4302],{"type":398,"value":4246},{"type":393,"tag":613,"props":4304,"children":4305},{"style":625},[4306],{"type":398,"value":467},{"type":393,"tag":613,"props":4308,"children":4309},{"style":679},[4310],{"type":398,"value":4228},{"type":393,"tag":613,"props":4312,"children":4313},{"style":625},[4314],{"type":398,"value":1119},{"type":393,"tag":613,"props":4316,"children":4317},{"class":615,"line":327},[4318,4322],{"type":393,"tag":613,"props":4319,"children":4320},{"style":690},[4321],{"type":398,"value":929},{"type":393,"tag":613,"props":4323,"children":4324},{"style":625},[4325],{"type":398,"value":968},{"type":393,"tag":613,"props":4327,"children":4328},{"class":615,"line":336},[4329],{"type":393,"tag":613,"props":4330,"children":4331},{"emptyLinePlaceholder":12},[4332],{"type":398,"value":646},{"type":393,"tag":613,"props":4334,"children":4335},{"class":615,"line":346},[4336,4340,4344,4349],{"type":393,"tag":613,"props":4337,"children":4338},{"style":690},[4339],{"type":398,"value":929},{"type":393,"tag":613,"props":4341,"children":4342},{"style":625},[4343],{"type":398,"value":934},{"type":393,"tag":613,"props":4345,"children":4346},{"style":679},[4347],{"type":398,"value":4348},"\"2️⃣ Standardize contact preferences:\"",{"type":393,"tag":613,"props":4350,"children":4351},{"style":625},[4352],{"type":398,"value":944},{"type":393,"tag":613,"props":4354,"children":4355},{"class":615,"line":355},[4356,4361,4365],{"type":393,"tag":613,"props":4357,"children":4358},{"style":625},[4359],{"type":398,"value":4360},"contact_mapping ",{"type":393,"tag":613,"props":4362,"children":4363},{"style":619},[4364],{"type":398,"value":668},{"type":393,"tag":613,"props":4366,"children":4367},{"style":625},[4368],{"type":398,"value":4100},{"type":393,"tag":613,"props":4370,"children":4371},{"class":615,"line":364},[4372,4376,4380,4385],{"type":393,"tag":613,"props":4373,"children":4374},{"style":679},[4375],{"type":398,"value":799},{"type":393,"tag":613,"props":4377,"children":4378},{"style":625},[4379],{"type":398,"value":4113},{"type":393,"tag":613,"props":4381,"children":4382},{"style":679},[4383],{"type":398,"value":4384},"'Email'",{"type":393,"tag":613,"props":4386,"children":4387},{"style":625},[4388],{"type":398,"value":4122},{"type":393,"tag":613,"props":4390,"children":4391},{"class":615,"line":374},[4392,4397,4401,4405],{"type":393,"tag":613,"props":4393,"children":4394},{"style":679},[4395],{"type":398,"value":4396},"    'e-mail'",{"type":393,"tag":613,"props":4398,"children":4399},{"style":625},[4400],{"type":398,"value":4113},{"type":393,"tag":613,"props":4402,"children":4403},{"style":679},[4404],{"type":398,"value":4384},{"type":393,"tag":613,"props":4406,"children":4407},{"style":625},[4408],{"type":398,"value":4122},{"type":393,"tag":613,"props":4410,"children":4411},{"class":615,"line":383},[4412,4416,4420,4425],{"type":393,"tag":613,"props":4413,"children":4414},{"style":679},[4415],{"type":398,"value":2796},{"type":393,"tag":613,"props":4417,"children":4418},{"style":625},[4419],{"type":398,"value":4113},{"type":393,"tag":613,"props":4421,"children":4422},{"style":679},[4423],{"type":398,"value":4424},"'Phone'",{"type":393,"tag":613,"props":4426,"children":4427},{"style":625},[4428],{"type":398,"value":4122},{"type":393,"tag":613,"props":4430,"children":4431},{"class":615,"line":2315},[4432,4437,4441,4445],{"type":393,"tag":613,"props":4433,"children":4434},{"style":679},[4435],{"type":398,"value":4436},"    'phone call'",{"type":393,"tag":613,"props":4438,"children":4439},{"style":625},[4440],{"type":398,"value":4113},{"type":393,"tag":613,"props":4442,"children":4443},{"style":679},[4444],{"type":398,"value":4424},{"type":393,"tag":613,"props":4446,"children":4447},{"style":625},[4448],{"type":398,"value":4122},{"type":393,"tag":613,"props":4450,"children":4451},{"class":615,"line":2357},[4452,4457,4461,4465],{"type":393,"tag":613,"props":4453,"children":4454},{"style":679},[4455],{"type":398,"value":4456},"    'text message'",{"type":393,"tag":613,"props":4458,"children":4459},{"style":625},[4460],{"type":398,"value":4113},{"type":393,"tag":613,"props":4462,"children":4463},{"style":679},[4464],{"type":398,"value":3864},{"type":393,"tag":613,"props":4466,"children":4467},{"style":625},[4468],{"type":398,"value":4122},{"type":393,"tag":613,"props":4470,"children":4471},{"class":615,"line":2398},[4472,4477,4481],{"type":393,"tag":613,"props":4473,"children":4474},{"style":679},[4475],{"type":398,"value":4476},"    'sms'",{"type":393,"tag":613,"props":4478,"children":4479},{"style":625},[4480],{"type":398,"value":4113},{"type":393,"tag":613,"props":4482,"children":4483},{"style":679},[4484],{"type":398,"value":4485},"'SMS'\n",{"type":393,"tag":613,"props":4487,"children":4488},{"class":615,"line":2439},[4489],{"type":393,"tag":613,"props":4490,"children":4491},{"style":625},[4492],{"type":398,"value":4208},{"type":393,"tag":613,"props":4494,"children":4495},{"class":615,"line":2448},[4496],{"type":393,"tag":613,"props":4497,"children":4498},{"emptyLinePlaceholder":12},[4499],{"type":398,"value":646},{"type":393,"tag":613,"props":4501,"children":4502},{"class":615,"line":2457},[4503,4507,4512,4516,4520,4524,4529],{"type":393,"tag":613,"props":4504,"children":4505},{"style":625},[4506],{"type":398,"value":4223},{"type":393,"tag":613,"props":4508,"children":4509},{"style":679},[4510],{"type":398,"value":4511},"'contact_clean'",{"type":393,"tag":613,"props":4513,"children":4514},{"style":625},[4515],{"type":398,"value":1051},{"type":393,"tag":613,"props":4517,"children":4518},{"style":619},[4519],{"type":398,"value":668},{"type":393,"tag":613,"props":4521,"children":4522},{"style":625},[4523],{"type":398,"value":4241},{"type":393,"tag":613,"props":4525,"children":4526},{"style":679},[4527],{"type":398,"value":4528},"'preferred_contact'",{"type":393,"tag":613,"props":4530,"children":4531},{"style":625},[4532],{"type":398,"value":906},{"type":393,"tag":613,"props":4534,"children":4535},{"class":615,"line":2478},[4536],{"type":393,"tag":613,"props":4537,"children":4538},{"style":625},[4539],{"type":398,"value":4540},"                           .str.lower()\n",{"type":393,"tag":613,"props":4542,"children":4543},{"class":615,"line":2506},[4544],{"type":393,"tag":613,"props":4545,"children":4546},{"style":625},[4547],{"type":398,"value":4548},"                           .map(contact_mapping))\n",{"type":393,"tag":613,"props":4550,"children":4551},{"class":615,"line":2518},[4552,4556,4560,4565],{"type":393,"tag":613,"props":4553,"children":4554},{"style":690},[4555],{"type":398,"value":929},{"type":393,"tag":613,"props":4557,"children":4558},{"style":625},[4559],{"type":398,"value":934},{"type":393,"tag":613,"props":4561,"children":4562},{"style":679},[4563],{"type":398,"value":4564},"\"Clean contact preferences:\"",{"type":393,"tag":613,"props":4566,"children":4567},{"style":625},[4568],{"type":398,"value":944},{"type":393,"tag":613,"props":4570,"children":4571},{"class":615,"line":2526},[4572,4576,4580,4584,4588,4592],{"type":393,"tag":613,"props":4573,"children":4574},{"style":690},[4575],{"type":398,"value":929},{"type":393,"tag":613,"props":4577,"children":4578},{"style":625},[4579],{"type":398,"value":4298},{"type":393,"tag":613,"props":4581,"children":4582},{"style":679},[4583],{"type":398,"value":4528},{"type":393,"tag":613,"props":4585,"children":4586},{"style":625},[4587],{"type":398,"value":467},{"type":393,"tag":613,"props":4589,"children":4590},{"style":679},[4591],{"type":398,"value":4511},{"type":393,"tag":613,"props":4593,"children":4594},{"style":625},[4595],{"type":398,"value":1119},{"type":393,"tag":613,"props":4597,"children":4598},{"class":615,"line":2547},[4599,4603],{"type":393,"tag":613,"props":4600,"children":4601},{"style":690},[4602],{"type":398,"value":929},{"type":393,"tag":613,"props":4604,"children":4605},{"style":625},[4606],{"type":398,"value":968},{"type":393,"tag":613,"props":4608,"children":4609},{"class":615,"line":2581},[4610],{"type":393,"tag":613,"props":4611,"children":4612},{"emptyLinePlaceholder":12},[4613],{"type":398,"value":646},{"type":393,"tag":613,"props":4615,"children":4616},{"class":615,"line":2624},[4617,4621,4625,4630],{"type":393,"tag":613,"props":4618,"children":4619},{"style":690},[4620],{"type":398,"value":929},{"type":393,"tag":613,"props":4622,"children":4623},{"style":625},[4624],{"type":398,"value":934},{"type":393,"tag":613,"props":4626,"children":4627},{"style":679},[4628],{"type":398,"value":4629},"\"3️⃣ Standardize frequency:\"",{"type":393,"tag":613,"props":4631,"children":4632},{"style":625},[4633],{"type":398,"value":944},{"type":393,"tag":613,"props":4635,"children":4636},{"class":615,"line":2633},[4637,4641,4646,4650,4654,4659,4664],{"type":393,"tag":613,"props":4638,"children":4639},{"style":625},[4640],{"type":398,"value":4223},{"type":393,"tag":613,"props":4642,"children":4643},{"style":679},[4644],{"type":398,"value":4645},"'frequency_clean'",{"type":393,"tag":613,"props":4647,"children":4648},{"style":625},[4649],{"type":398,"value":1051},{"type":393,"tag":613,"props":4651,"children":4652},{"style":619},[4653],{"type":398,"value":668},{"type":393,"tag":613,"props":4655,"children":4656},{"style":625},[4657],{"type":398,"value":4658}," survey[",{"type":393,"tag":613,"props":4660,"children":4661},{"style":679},[4662],{"type":398,"value":4663},"'frequency'",{"type":393,"tag":613,"props":4665,"children":4666},{"style":625},[4667],{"type":398,"value":1189},{"type":393,"tag":613,"props":4669,"children":4670},{"class":615,"line":2654},[4671,4675,4679,4684],{"type":393,"tag":613,"props":4672,"children":4673},{"style":690},[4674],{"type":398,"value":929},{"type":393,"tag":613,"props":4676,"children":4677},{"style":625},[4678],{"type":398,"value":934},{"type":393,"tag":613,"props":4680,"children":4681},{"style":679},[4682],{"type":398,"value":4683},"\"Clean frequency:\"",{"type":393,"tag":613,"props":4685,"children":4686},{"style":625},[4687],{"type":398,"value":944},{"type":393,"tag":613,"props":4689,"children":4691},{"class":615,"line":4690},56,[4692,4696,4700,4704,4708,4712],{"type":393,"tag":613,"props":4693,"children":4694},{"style":690},[4695],{"type":398,"value":929},{"type":393,"tag":613,"props":4697,"children":4698},{"style":625},[4699],{"type":398,"value":4298},{"type":393,"tag":613,"props":4701,"children":4702},{"style":679},[4703],{"type":398,"value":4663},{"type":393,"tag":613,"props":4705,"children":4706},{"style":625},[4707],{"type":398,"value":467},{"type":393,"tag":613,"props":4709,"children":4710},{"style":679},[4711],{"type":398,"value":4645},{"type":393,"tag":613,"props":4713,"children":4714},{"style":625},[4715],{"type":398,"value":1119},{"type":393,"tag":587,"props":4717,"children":4719},{"id":4718},"text-validation-and-quality-checks",[4720],{"type":398,"value":4721},"🔍 Text Validation and Quality Checks",{"type":393,"tag":401,"props":4723,"children":4724},{},[4725],{"type":398,"value":4726},"Identify and flag problematic text data:",{"type":393,"tag":599,"props":4728,"children":4729},{},[4730],{"type":393,"tag":603,"props":4731,"children":4733},{"className":605,"code":4732,"language":607,"meta":6,"style":6},"import pandas as pd\nimport re\n\n# User registration data with validation needs\nusers = pd.DataFrame({\n    'username': ['alice123', 'bob@user', 'charlie_2023', 'diana!', 'eve_smith'],\n    'email': ['alice@email.com', 'invalid-email', 'charlie@domain.co.uk', \n              'diana@', 'eve@company.com'],\n    'full_name': ['Alice Johnson', 'B', 'Charlie Brown-Smith', \n                  'Diana Lee-Jones III', ''],\n    'postal_code': ['12345', '90210-1234', 'invalid', 'K1A 0A6', '00000']\n})\n\nprint(\"📊 User Registration Data:\")\nprint(users)\nprint()\n\nprint(\"🔍 Text Validation:\")\nprint()\n\nprint(\"1️⃣ Validate usernames (alphanumeric + underscore only):\")\nusers['username_valid'] = users['username'].str.match(r'^[a-zA-Z0-9_]+$')\nprint(\"Username validation:\")\nprint(users[['username', 'username_valid']])\nprint()\n\nprint(\"2️⃣ Validate email format:\")\nemail_pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'\nusers['email_valid'] = users['email'].str.match(email_pattern)\nprint(\"Email validation:\")\nprint(users[['email', 'email_valid']])\nprint()\n\nprint(\"3️⃣ Check name length (reasonable range):\")\nusers['name_length'] = users['full_name'].str.len()\nusers['name_valid'] = (users['name_length'] >= 2) & (users['name_length'] \u003C= 50)\nprint(\"Name validation:\")\nprint(users[['full_name', 'name_length', 'name_valid']])\nprint()\n\nprint(\"4️⃣ Postal code patterns:\")\n# US: 5 digits or 5-4 format, Canada: A1A 1A1 format\nus_postal = users['postal_code'].str.match(r'^\\d{5}(-\\d{4})?$')\nca_postal = users['postal_code'].str.match(r'^[A-Z]\\d[A-Z] \\d[A-Z]\\d$')\nusers['postal_valid'] = us_postal | ca_postal\nprint(\"Postal code validation:\")\nprint(users[['postal_code', 'postal_valid']])\n",[4734],{"type":393,"tag":441,"props":4735,"children":4736},{"__ignoreMap":6},[4737,4756,4768,4775,4783,4799,4856,4894,4915,4953,4973,5030,5037,5044,5064,5076,5087,5094,5114,5125,5132,5152,5219,5239,5267,5278,5285,5305,5374,5407,5427,5454,5465,5472,5492,5526,5605,5625,5660,5671,5678,5698,5706,5787,5837,5872,5892],{"type":393,"tag":613,"props":4738,"children":4739},{"class":615,"line":11},[4740,4744,4748,4752],{"type":393,"tag":613,"props":4741,"children":4742},{"style":619},[4743],{"type":398,"value":622},{"type":393,"tag":613,"props":4745,"children":4746},{"style":625},[4747],{"type":398,"value":628},{"type":393,"tag":613,"props":4749,"children":4750},{"style":619},[4751],{"type":398,"value":633},{"type":393,"tag":613,"props":4753,"children":4754},{"style":625},[4755],{"type":398,"value":638},{"type":393,"tag":613,"props":4757,"children":4758},{"class":615,"line":27},[4759,4763],{"type":393,"tag":613,"props":4760,"children":4761},{"style":619},[4762],{"type":398,"value":622},{"type":393,"tag":613,"props":4764,"children":4765},{"style":625},[4766],{"type":398,"value":4767}," re\n",{"type":393,"tag":613,"props":4769,"children":4770},{"class":615,"line":36},[4771],{"type":393,"tag":613,"props":4772,"children":4773},{"emptyLinePlaceholder":12},[4774],{"type":398,"value":646},{"type":393,"tag":613,"props":4776,"children":4777},{"class":615,"line":45},[4778],{"type":393,"tag":613,"props":4779,"children":4780},{"style":652},[4781],{"type":398,"value":4782},"# User registration data with validation needs\n",{"type":393,"tag":613,"props":4784,"children":4785},{"class":615,"line":54},[4786,4791,4795],{"type":393,"tag":613,"props":4787,"children":4788},{"style":625},[4789],{"type":398,"value":4790},"users ",{"type":393,"tag":613,"props":4792,"children":4793},{"style":619},[4794],{"type":398,"value":668},{"type":393,"tag":613,"props":4796,"children":4797},{"style":625},[4798],{"type":398,"value":673},{"type":393,"tag":613,"props":4800,"children":4801},{"class":615,"line":63},[4802,4807,4811,4816,4820,4825,4829,4834,4838,4843,4847,4852],{"type":393,"tag":613,"props":4803,"children":4804},{"style":679},[4805],{"type":398,"value":4806},"    'username'",{"type":393,"tag":613,"props":4808,"children":4809},{"style":625},[4810],{"type":398,"value":687},{"type":393,"tag":613,"props":4812,"children":4813},{"style":679},[4814],{"type":398,"value":4815},"'alice123'",{"type":393,"tag":613,"props":4817,"children":4818},{"style":625},[4819],{"type":398,"value":467},{"type":393,"tag":613,"props":4821,"children":4822},{"style":679},[4823],{"type":398,"value":4824},"'bob@user'",{"type":393,"tag":613,"props":4826,"children":4827},{"style":625},[4828],{"type":398,"value":467},{"type":393,"tag":613,"props":4830,"children":4831},{"style":679},[4832],{"type":398,"value":4833},"'charlie_2023'",{"type":393,"tag":613,"props":4835,"children":4836},{"style":625},[4837],{"type":398,"value":467},{"type":393,"tag":613,"props":4839,"children":4840},{"style":679},[4841],{"type":398,"value":4842},"'diana!'",{"type":393,"tag":613,"props":4844,"children":4845},{"style":625},[4846],{"type":398,"value":467},{"type":393,"tag":613,"props":4848,"children":4849},{"style":679},[4850],{"type":398,"value":4851},"'eve_smith'",{"type":393,"tag":613,"props":4853,"children":4854},{"style":625},[4855],{"type":398,"value":734},{"type":393,"tag":613,"props":4857,"children":4858},{"class":615,"line":72},[4859,4863,4867,4872,4876,4881,4885,4890],{"type":393,"tag":613,"props":4860,"children":4861},{"style":679},[4862],{"type":398,"value":799},{"type":393,"tag":613,"props":4864,"children":4865},{"style":625},[4866],{"type":398,"value":687},{"type":393,"tag":613,"props":4868,"children":4869},{"style":679},[4870],{"type":398,"value":4871},"'alice@email.com'",{"type":393,"tag":613,"props":4873,"children":4874},{"style":625},[4875],{"type":398,"value":467},{"type":393,"tag":613,"props":4877,"children":4878},{"style":679},[4879],{"type":398,"value":4880},"'invalid-email'",{"type":393,"tag":613,"props":4882,"children":4883},{"style":625},[4884],{"type":398,"value":467},{"type":393,"tag":613,"props":4886,"children":4887},{"style":679},[4888],{"type":398,"value":4889},"'charlie@domain.co.uk'",{"type":393,"tag":613,"props":4891,"children":4892},{"style":625},[4893],{"type":398,"value":1573},{"type":393,"tag":613,"props":4895,"children":4896},{"class":615,"line":83},[4897,4902,4906,4911],{"type":393,"tag":613,"props":4898,"children":4899},{"style":679},[4900],{"type":398,"value":4901},"              'diana@'",{"type":393,"tag":613,"props":4903,"children":4904},{"style":625},[4905],{"type":398,"value":467},{"type":393,"tag":613,"props":4907,"children":4908},{"style":679},[4909],{"type":398,"value":4910},"'eve@company.com'",{"type":393,"tag":613,"props":4912,"children":4913},{"style":625},[4914],{"type":398,"value":734},{"type":393,"tag":613,"props":4916,"children":4917},{"class":615,"line":92},[4918,4923,4927,4931,4935,4940,4944,4949],{"type":393,"tag":613,"props":4919,"children":4920},{"style":679},[4921],{"type":398,"value":4922},"    'full_name'",{"type":393,"tag":613,"props":4924,"children":4925},{"style":625},[4926],{"type":398,"value":687},{"type":393,"tag":613,"props":4928,"children":4929},{"style":679},[4930],{"type":398,"value":2766},{"type":393,"tag":613,"props":4932,"children":4933},{"style":625},[4934],{"type":398,"value":467},{"type":393,"tag":613,"props":4936,"children":4937},{"style":679},[4938],{"type":398,"value":4939},"'B'",{"type":393,"tag":613,"props":4941,"children":4942},{"style":625},[4943],{"type":398,"value":467},{"type":393,"tag":613,"props":4945,"children":4946},{"style":679},[4947],{"type":398,"value":4948},"'Charlie Brown-Smith'",{"type":393,"tag":613,"props":4950,"children":4951},{"style":625},[4952],{"type":398,"value":1573},{"type":393,"tag":613,"props":4954,"children":4955},{"class":615,"line":101},[4956,4961,4965,4969],{"type":393,"tag":613,"props":4957,"children":4958},{"style":679},[4959],{"type":398,"value":4960},"                  'Diana Lee-Jones III'",{"type":393,"tag":613,"props":4962,"children":4963},{"style":625},[4964],{"type":398,"value":467},{"type":393,"tag":613,"props":4966,"children":4967},{"style":679},[4968],{"type":398,"value":1960},{"type":393,"tag":613,"props":4970,"children":4971},{"style":625},[4972],{"type":398,"value":734},{"type":393,"tag":613,"props":4974,"children":4975},{"class":615,"line":110},[4976,4981,4985,4990,4994,4999,5003,5008,5012,5017,5021,5026],{"type":393,"tag":613,"props":4977,"children":4978},{"style":679},[4979],{"type":398,"value":4980},"    'postal_code'",{"type":393,"tag":613,"props":4982,"children":4983},{"style":625},[4984],{"type":398,"value":687},{"type":393,"tag":613,"props":4986,"children":4987},{"style":679},[4988],{"type":398,"value":4989},"'12345'",{"type":393,"tag":613,"props":4991,"children":4992},{"style":625},[4993],{"type":398,"value":467},{"type":393,"tag":613,"props":4995,"children":4996},{"style":679},[4997],{"type":398,"value":4998},"'90210-1234'",{"type":393,"tag":613,"props":5000,"children":5001},{"style":625},[5002],{"type":398,"value":467},{"type":393,"tag":613,"props":5004,"children":5005},{"style":679},[5006],{"type":398,"value":5007},"'invalid'",{"type":393,"tag":613,"props":5009,"children":5010},{"style":625},[5011],{"type":398,"value":467},{"type":393,"tag":613,"props":5013,"children":5014},{"style":679},[5015],{"type":398,"value":5016},"'K1A 0A6'",{"type":393,"tag":613,"props":5018,"children":5019},{"style":625},[5020],{"type":398,"value":467},{"type":393,"tag":613,"props":5022,"children":5023},{"style":679},[5024],{"type":398,"value":5025},"'00000'",{"type":393,"tag":613,"props":5027,"children":5028},{"style":625},[5029],{"type":398,"value":906},{"type":393,"tag":613,"props":5031,"children":5032},{"class":615,"line":121},[5033],{"type":393,"tag":613,"props":5034,"children":5035},{"style":625},[5036],{"type":398,"value":914},{"type":393,"tag":613,"props":5038,"children":5039},{"class":615,"line":130},[5040],{"type":393,"tag":613,"props":5041,"children":5042},{"emptyLinePlaceholder":12},[5043],{"type":398,"value":646},{"type":393,"tag":613,"props":5045,"children":5046},{"class":615,"line":139},[5047,5051,5055,5060],{"type":393,"tag":613,"props":5048,"children":5049},{"style":690},[5050],{"type":398,"value":929},{"type":393,"tag":613,"props":5052,"children":5053},{"style":625},[5054],{"type":398,"value":934},{"type":393,"tag":613,"props":5056,"children":5057},{"style":679},[5058],{"type":398,"value":5059},"\"📊 User Registration Data:\"",{"type":393,"tag":613,"props":5061,"children":5062},{"style":625},[5063],{"type":398,"value":944},{"type":393,"tag":613,"props":5065,"children":5066},{"class":615,"line":148},[5067,5071],{"type":393,"tag":613,"props":5068,"children":5069},{"style":690},[5070],{"type":398,"value":929},{"type":393,"tag":613,"props":5072,"children":5073},{"style":625},[5074],{"type":398,"value":5075},"(users)\n",{"type":393,"tag":613,"props":5077,"children":5078},{"class":615,"line":159},[5079,5083],{"type":393,"tag":613,"props":5080,"children":5081},{"style":690},[5082],{"type":398,"value":929},{"type":393,"tag":613,"props":5084,"children":5085},{"style":625},[5086],{"type":398,"value":968},{"type":393,"tag":613,"props":5088,"children":5089},{"class":615,"line":168},[5090],{"type":393,"tag":613,"props":5091,"children":5092},{"emptyLinePlaceholder":12},[5093],{"type":398,"value":646},{"type":393,"tag":613,"props":5095,"children":5096},{"class":615,"line":177},[5097,5101,5105,5110],{"type":393,"tag":613,"props":5098,"children":5099},{"style":690},[5100],{"type":398,"value":929},{"type":393,"tag":613,"props":5102,"children":5103},{"style":625},[5104],{"type":398,"value":934},{"type":393,"tag":613,"props":5106,"children":5107},{"style":679},[5108],{"type":398,"value":5109},"\"🔍 Text Validation:\"",{"type":393,"tag":613,"props":5111,"children":5112},{"style":625},[5113],{"type":398,"value":944},{"type":393,"tag":613,"props":5115,"children":5116},{"class":615,"line":186},[5117,5121],{"type":393,"tag":613,"props":5118,"children":5119},{"style":690},[5120],{"type":398,"value":929},{"type":393,"tag":613,"props":5122,"children":5123},{"style":625},[5124],{"type":398,"value":968},{"type":393,"tag":613,"props":5126,"children":5127},{"class":615,"line":197},[5128],{"type":393,"tag":613,"props":5129,"children":5130},{"emptyLinePlaceholder":12},[5131],{"type":398,"value":646},{"type":393,"tag":613,"props":5133,"children":5134},{"class":615,"line":206},[5135,5139,5143,5148],{"type":393,"tag":613,"props":5136,"children":5137},{"style":690},[5138],{"type":398,"value":929},{"type":393,"tag":613,"props":5140,"children":5141},{"style":625},[5142],{"type":398,"value":934},{"type":393,"tag":613,"props":5144,"children":5145},{"style":679},[5146],{"type":398,"value":5147},"\"1️⃣ Validate usernames (alphanumeric + underscore only):\"",{"type":393,"tag":613,"props":5149,"children":5150},{"style":625},[5151],{"type":398,"value":944},{"type":393,"tag":613,"props":5153,"children":5154},{"class":615,"line":215},[5155,5160,5165,5169,5173,5178,5183,5188,5192,5196,5201,5206,5211,5215],{"type":393,"tag":613,"props":5156,"children":5157},{"style":625},[5158],{"type":398,"value":5159},"users[",{"type":393,"tag":613,"props":5161,"children":5162},{"style":679},[5163],{"type":398,"value":5164},"'username_valid'",{"type":393,"tag":613,"props":5166,"children":5167},{"style":625},[5168],{"type":398,"value":1051},{"type":393,"tag":613,"props":5170,"children":5171},{"style":619},[5172],{"type":398,"value":668},{"type":393,"tag":613,"props":5174,"children":5175},{"style":625},[5176],{"type":398,"value":5177}," users[",{"type":393,"tag":613,"props":5179,"children":5180},{"style":679},[5181],{"type":398,"value":5182},"'username'",{"type":393,"tag":613,"props":5184,"children":5185},{"style":625},[5186],{"type":398,"value":5187},"].str.match(",{"type":393,"tag":613,"props":5189,"children":5190},{"style":619},[5191],{"type":398,"value":3122},{"type":393,"tag":613,"props":5193,"children":5194},{"style":679},[5195],{"type":398,"value":3127},{"type":393,"tag":613,"props":5197,"children":5198},{"style":690},[5199],{"type":398,"value":5200},"^[a-zA-Z0-9_]",{"type":393,"tag":613,"props":5202,"children":5203},{"style":619},[5204],{"type":398,"value":5205},"+",{"type":393,"tag":613,"props":5207,"children":5208},{"style":690},[5209],{"type":398,"value":5210},"$",{"type":393,"tag":613,"props":5212,"children":5213},{"style":679},[5214],{"type":398,"value":3127},{"type":393,"tag":613,"props":5216,"children":5217},{"style":625},[5218],{"type":398,"value":944},{"type":393,"tag":613,"props":5220,"children":5221},{"class":615,"line":224},[5222,5226,5230,5235],{"type":393,"tag":613,"props":5223,"children":5224},{"style":690},[5225],{"type":398,"value":929},{"type":393,"tag":613,"props":5227,"children":5228},{"style":625},[5229],{"type":398,"value":934},{"type":393,"tag":613,"props":5231,"children":5232},{"style":679},[5233],{"type":398,"value":5234},"\"Username validation:\"",{"type":393,"tag":613,"props":5236,"children":5237},{"style":625},[5238],{"type":398,"value":944},{"type":393,"tag":613,"props":5240,"children":5241},{"class":615,"line":233},[5242,5246,5251,5255,5259,5263],{"type":393,"tag":613,"props":5243,"children":5244},{"style":690},[5245],{"type":398,"value":929},{"type":393,"tag":613,"props":5247,"children":5248},{"style":625},[5249],{"type":398,"value":5250},"(users[[",{"type":393,"tag":613,"props":5252,"children":5253},{"style":679},[5254],{"type":398,"value":5182},{"type":393,"tag":613,"props":5256,"children":5257},{"style":625},[5258],{"type":398,"value":467},{"type":393,"tag":613,"props":5260,"children":5261},{"style":679},[5262],{"type":398,"value":5164},{"type":393,"tag":613,"props":5264,"children":5265},{"style":625},[5266],{"type":398,"value":1119},{"type":393,"tag":613,"props":5268,"children":5269},{"class":615,"line":244},[5270,5274],{"type":393,"tag":613,"props":5271,"children":5272},{"style":690},[5273],{"type":398,"value":929},{"type":393,"tag":613,"props":5275,"children":5276},{"style":625},[5277],{"type":398,"value":968},{"type":393,"tag":613,"props":5279,"children":5280},{"class":615,"line":253},[5281],{"type":393,"tag":613,"props":5282,"children":5283},{"emptyLinePlaceholder":12},[5284],{"type":398,"value":646},{"type":393,"tag":613,"props":5286,"children":5287},{"class":615,"line":262},[5288,5292,5296,5301],{"type":393,"tag":613,"props":5289,"children":5290},{"style":690},[5291],{"type":398,"value":929},{"type":393,"tag":613,"props":5293,"children":5294},{"style":625},[5295],{"type":398,"value":934},{"type":393,"tag":613,"props":5297,"children":5298},{"style":679},[5299],{"type":398,"value":5300},"\"2️⃣ Validate email format:\"",{"type":393,"tag":613,"props":5302,"children":5303},{"style":625},[5304],{"type":398,"value":944},{"type":393,"tag":613,"props":5306,"children":5307},{"class":615,"line":271},[5308,5313,5317,5322,5326,5331,5335,5340,5345,5349,5355,5360,5365,5369],{"type":393,"tag":613,"props":5309,"children":5310},{"style":625},[5311],{"type":398,"value":5312},"email_pattern ",{"type":393,"tag":613,"props":5314,"children":5315},{"style":619},[5316],{"type":398,"value":668},{"type":393,"tag":613,"props":5318,"children":5319},{"style":619},[5320],{"type":398,"value":5321}," r",{"type":393,"tag":613,"props":5323,"children":5324},{"style":679},[5325],{"type":398,"value":3127},{"type":393,"tag":613,"props":5327,"children":5328},{"style":690},[5329],{"type":398,"value":5330},"^[a-zA-Z0-9._%+-]",{"type":393,"tag":613,"props":5332,"children":5333},{"style":619},[5334],{"type":398,"value":5205},{"type":393,"tag":613,"props":5336,"children":5337},{"style":3198},[5338],{"type":398,"value":5339},"@",{"type":393,"tag":613,"props":5341,"children":5342},{"style":690},[5343],{"type":398,"value":5344},"[a-zA-Z0-9.-]",{"type":393,"tag":613,"props":5346,"children":5347},{"style":619},[5348],{"type":398,"value":5205},{"type":393,"tag":613,"props":5350,"children":5352},{"style":5351},"--shiki-default:#22863A;--shiki-default-font-weight:bold;--shiki-app-dark-mode:#85E89D;--shiki-app-dark-mode-font-weight:bold",[5353],{"type":398,"value":5354},"\\.",{"type":393,"tag":613,"props":5356,"children":5357},{"style":690},[5358],{"type":398,"value":5359},"[a-zA-Z]",{"type":393,"tag":613,"props":5361,"children":5362},{"style":619},[5363],{"type":398,"value":5364},"{2,}",{"type":393,"tag":613,"props":5366,"children":5367},{"style":690},[5368],{"type":398,"value":5210},{"type":393,"tag":613,"props":5370,"children":5371},{"style":679},[5372],{"type":398,"value":5373},"'\n",{"type":393,"tag":613,"props":5375,"children":5376},{"class":615,"line":281},[5377,5381,5386,5390,5394,5398,5402],{"type":393,"tag":613,"props":5378,"children":5379},{"style":625},[5380],{"type":398,"value":5159},{"type":393,"tag":613,"props":5382,"children":5383},{"style":679},[5384],{"type":398,"value":5385},"'email_valid'",{"type":393,"tag":613,"props":5387,"children":5388},{"style":625},[5389],{"type":398,"value":1051},{"type":393,"tag":613,"props":5391,"children":5392},{"style":619},[5393],{"type":398,"value":668},{"type":393,"tag":613,"props":5395,"children":5396},{"style":625},[5397],{"type":398,"value":5177},{"type":393,"tag":613,"props":5399,"children":5400},{"style":679},[5401],{"type":398,"value":1218},{"type":393,"tag":613,"props":5403,"children":5404},{"style":625},[5405],{"type":398,"value":5406},"].str.match(email_pattern)\n",{"type":393,"tag":613,"props":5408,"children":5409},{"class":615,"line":290},[5410,5414,5418,5423],{"type":393,"tag":613,"props":5411,"children":5412},{"style":690},[5413],{"type":398,"value":929},{"type":393,"tag":613,"props":5415,"children":5416},{"style":625},[5417],{"type":398,"value":934},{"type":393,"tag":613,"props":5419,"children":5420},{"style":679},[5421],{"type":398,"value":5422},"\"Email validation:\"",{"type":393,"tag":613,"props":5424,"children":5425},{"style":625},[5426],{"type":398,"value":944},{"type":393,"tag":613,"props":5428,"children":5429},{"class":615,"line":299},[5430,5434,5438,5442,5446,5450],{"type":393,"tag":613,"props":5431,"children":5432},{"style":690},[5433],{"type":398,"value":929},{"type":393,"tag":613,"props":5435,"children":5436},{"style":625},[5437],{"type":398,"value":5250},{"type":393,"tag":613,"props":5439,"children":5440},{"style":679},[5441],{"type":398,"value":1218},{"type":393,"tag":613,"props":5443,"children":5444},{"style":625},[5445],{"type":398,"value":467},{"type":393,"tag":613,"props":5447,"children":5448},{"style":679},[5449],{"type":398,"value":5385},{"type":393,"tag":613,"props":5451,"children":5452},{"style":625},[5453],{"type":398,"value":1119},{"type":393,"tag":613,"props":5455,"children":5456},{"class":615,"line":308},[5457,5461],{"type":393,"tag":613,"props":5458,"children":5459},{"style":690},[5460],{"type":398,"value":929},{"type":393,"tag":613,"props":5462,"children":5463},{"style":625},[5464],{"type":398,"value":968},{"type":393,"tag":613,"props":5466,"children":5467},{"class":615,"line":318},[5468],{"type":393,"tag":613,"props":5469,"children":5470},{"emptyLinePlaceholder":12},[5471],{"type":398,"value":646},{"type":393,"tag":613,"props":5473,"children":5474},{"class":615,"line":327},[5475,5479,5483,5488],{"type":393,"tag":613,"props":5476,"children":5477},{"style":690},[5478],{"type":398,"value":929},{"type":393,"tag":613,"props":5480,"children":5481},{"style":625},[5482],{"type":398,"value":934},{"type":393,"tag":613,"props":5484,"children":5485},{"style":679},[5486],{"type":398,"value":5487},"\"3️⃣ Check name length (reasonable range):\"",{"type":393,"tag":613,"props":5489,"children":5490},{"style":625},[5491],{"type":398,"value":944},{"type":393,"tag":613,"props":5493,"children":5494},{"class":615,"line":336},[5495,5499,5504,5508,5512,5516,5521],{"type":393,"tag":613,"props":5496,"children":5497},{"style":625},[5498],{"type":398,"value":5159},{"type":393,"tag":613,"props":5500,"children":5501},{"style":679},[5502],{"type":398,"value":5503},"'name_length'",{"type":393,"tag":613,"props":5505,"children":5506},{"style":625},[5507],{"type":398,"value":1051},{"type":393,"tag":613,"props":5509,"children":5510},{"style":619},[5511],{"type":398,"value":668},{"type":393,"tag":613,"props":5513,"children":5514},{"style":625},[5515],{"type":398,"value":5177},{"type":393,"tag":613,"props":5517,"children":5518},{"style":679},[5519],{"type":398,"value":5520},"'full_name'",{"type":393,"tag":613,"props":5522,"children":5523},{"style":625},[5524],{"type":398,"value":5525},"].str.len()\n",{"type":393,"tag":613,"props":5527,"children":5528},{"class":615,"line":346},[5529,5533,5538,5542,5546,5551,5555,5559,5564,5569,5574,5579,5583,5587,5591,5596,5601],{"type":393,"tag":613,"props":5530,"children":5531},{"style":625},[5532],{"type":398,"value":5159},{"type":393,"tag":613,"props":5534,"children":5535},{"style":679},[5536],{"type":398,"value":5537},"'name_valid'",{"type":393,"tag":613,"props":5539,"children":5540},{"style":625},[5541],{"type":398,"value":1051},{"type":393,"tag":613,"props":5543,"children":5544},{"style":619},[5545],{"type":398,"value":668},{"type":393,"tag":613,"props":5547,"children":5548},{"style":625},[5549],{"type":398,"value":5550}," (users[",{"type":393,"tag":613,"props":5552,"children":5553},{"style":679},[5554],{"type":398,"value":5503},{"type":393,"tag":613,"props":5556,"children":5557},{"style":625},[5558],{"type":398,"value":1051},{"type":393,"tag":613,"props":5560,"children":5561},{"style":619},[5562],{"type":398,"value":5563},">=",{"type":393,"tag":613,"props":5565,"children":5566},{"style":690},[5567],{"type":398,"value":5568}," 2",{"type":393,"tag":613,"props":5570,"children":5571},{"style":625},[5572],{"type":398,"value":5573},") ",{"type":393,"tag":613,"props":5575,"children":5576},{"style":619},[5577],{"type":398,"value":5578},"&",{"type":393,"tag":613,"props":5580,"children":5581},{"style":625},[5582],{"type":398,"value":5550},{"type":393,"tag":613,"props":5584,"children":5585},{"style":679},[5586],{"type":398,"value":5503},{"type":393,"tag":613,"props":5588,"children":5589},{"style":625},[5590],{"type":398,"value":1051},{"type":393,"tag":613,"props":5592,"children":5593},{"style":619},[5594],{"type":398,"value":5595},"\u003C=",{"type":393,"tag":613,"props":5597,"children":5598},{"style":690},[5599],{"type":398,"value":5600}," 50",{"type":393,"tag":613,"props":5602,"children":5603},{"style":625},[5604],{"type":398,"value":944},{"type":393,"tag":613,"props":5606,"children":5607},{"class":615,"line":355},[5608,5612,5616,5621],{"type":393,"tag":613,"props":5609,"children":5610},{"style":690},[5611],{"type":398,"value":929},{"type":393,"tag":613,"props":5613,"children":5614},{"style":625},[5615],{"type":398,"value":934},{"type":393,"tag":613,"props":5617,"children":5618},{"style":679},[5619],{"type":398,"value":5620},"\"Name validation:\"",{"type":393,"tag":613,"props":5622,"children":5623},{"style":625},[5624],{"type":398,"value":944},{"type":393,"tag":613,"props":5626,"children":5627},{"class":615,"line":364},[5628,5632,5636,5640,5644,5648,5652,5656],{"type":393,"tag":613,"props":5629,"children":5630},{"style":690},[5631],{"type":398,"value":929},{"type":393,"tag":613,"props":5633,"children":5634},{"style":625},[5635],{"type":398,"value":5250},{"type":393,"tag":613,"props":5637,"children":5638},{"style":679},[5639],{"type":398,"value":5520},{"type":393,"tag":613,"props":5641,"children":5642},{"style":625},[5643],{"type":398,"value":467},{"type":393,"tag":613,"props":5645,"children":5646},{"style":679},[5647],{"type":398,"value":5503},{"type":393,"tag":613,"props":5649,"children":5650},{"style":625},[5651],{"type":398,"value":467},{"type":393,"tag":613,"props":5653,"children":5654},{"style":679},[5655],{"type":398,"value":5537},{"type":393,"tag":613,"props":5657,"children":5658},{"style":625},[5659],{"type":398,"value":1119},{"type":393,"tag":613,"props":5661,"children":5662},{"class":615,"line":374},[5663,5667],{"type":393,"tag":613,"props":5664,"children":5665},{"style":690},[5666],{"type":398,"value":929},{"type":393,"tag":613,"props":5668,"children":5669},{"style":625},[5670],{"type":398,"value":968},{"type":393,"tag":613,"props":5672,"children":5673},{"class":615,"line":383},[5674],{"type":393,"tag":613,"props":5675,"children":5676},{"emptyLinePlaceholder":12},[5677],{"type":398,"value":646},{"type":393,"tag":613,"props":5679,"children":5680},{"class":615,"line":2315},[5681,5685,5689,5694],{"type":393,"tag":613,"props":5682,"children":5683},{"style":690},[5684],{"type":398,"value":929},{"type":393,"tag":613,"props":5686,"children":5687},{"style":625},[5688],{"type":398,"value":934},{"type":393,"tag":613,"props":5690,"children":5691},{"style":679},[5692],{"type":398,"value":5693},"\"4️⃣ Postal code patterns:\"",{"type":393,"tag":613,"props":5695,"children":5696},{"style":625},[5697],{"type":398,"value":944},{"type":393,"tag":613,"props":5699,"children":5700},{"class":615,"line":2357},[5701],{"type":393,"tag":613,"props":5702,"children":5703},{"style":652},[5704],{"type":398,"value":5705},"# US: 5 digits or 5-4 format, Canada: A1A 1A1 format\n",{"type":393,"tag":613,"props":5707,"children":5708},{"class":615,"line":2398},[5709,5714,5718,5722,5727,5731,5735,5739,5744,5749,5753,5757,5762,5766,5770,5775,5779,5783],{"type":393,"tag":613,"props":5710,"children":5711},{"style":625},[5712],{"type":398,"value":5713},"us_postal ",{"type":393,"tag":613,"props":5715,"children":5716},{"style":619},[5717],{"type":398,"value":668},{"type":393,"tag":613,"props":5719,"children":5720},{"style":625},[5721],{"type":398,"value":5177},{"type":393,"tag":613,"props":5723,"children":5724},{"style":679},[5725],{"type":398,"value":5726},"'postal_code'",{"type":393,"tag":613,"props":5728,"children":5729},{"style":625},[5730],{"type":398,"value":5187},{"type":393,"tag":613,"props":5732,"children":5733},{"style":619},[5734],{"type":398,"value":3122},{"type":393,"tag":613,"props":5736,"children":5737},{"style":679},[5738],{"type":398,"value":3127},{"type":393,"tag":613,"props":5740,"children":5741},{"style":690},[5742],{"type":398,"value":5743},"^\\d",{"type":393,"tag":613,"props":5745,"children":5746},{"style":619},[5747],{"type":398,"value":5748},"{5}",{"type":393,"tag":613,"props":5750,"children":5751},{"style":690},[5752],{"type":398,"value":934},{"type":393,"tag":613,"props":5754,"children":5755},{"style":3198},[5756],{"type":398,"value":3201},{"type":393,"tag":613,"props":5758,"children":5759},{"style":690},[5760],{"type":398,"value":5761},"\\d",{"type":393,"tag":613,"props":5763,"children":5764},{"style":619},[5765],{"type":398,"value":3155},{"type":393,"tag":613,"props":5767,"children":5768},{"style":690},[5769],{"type":398,"value":3160},{"type":393,"tag":613,"props":5771,"children":5772},{"style":619},[5773],{"type":398,"value":5774},"?",{"type":393,"tag":613,"props":5776,"children":5777},{"style":690},[5778],{"type":398,"value":5210},{"type":393,"tag":613,"props":5780,"children":5781},{"style":679},[5782],{"type":398,"value":3127},{"type":393,"tag":613,"props":5784,"children":5785},{"style":625},[5786],{"type":398,"value":944},{"type":393,"tag":613,"props":5788,"children":5789},{"class":615,"line":2439},[5790,5795,5799,5803,5807,5811,5815,5819,5824,5829,5833],{"type":393,"tag":613,"props":5791,"children":5792},{"style":625},[5793],{"type":398,"value":5794},"ca_postal ",{"type":393,"tag":613,"props":5796,"children":5797},{"style":619},[5798],{"type":398,"value":668},{"type":393,"tag":613,"props":5800,"children":5801},{"style":625},[5802],{"type":398,"value":5177},{"type":393,"tag":613,"props":5804,"children":5805},{"style":679},[5806],{"type":398,"value":5726},{"type":393,"tag":613,"props":5808,"children":5809},{"style":625},[5810],{"type":398,"value":5187},{"type":393,"tag":613,"props":5812,"children":5813},{"style":619},[5814],{"type":398,"value":3122},{"type":393,"tag":613,"props":5816,"children":5817},{"style":679},[5818],{"type":398,"value":3127},{"type":393,"tag":613,"props":5820,"children":5821},{"style":690},[5822],{"type":398,"value":5823},"^[A-Z]\\d[A-Z]",{"type":393,"tag":613,"props":5825,"children":5826},{"style":690},[5827],{"type":398,"value":5828}," \\d[A-Z]\\d$",{"type":393,"tag":613,"props":5830,"children":5831},{"style":679},[5832],{"type":398,"value":3127},{"type":393,"tag":613,"props":5834,"children":5835},{"style":625},[5836],{"type":398,"value":944},{"type":393,"tag":613,"props":5838,"children":5839},{"class":615,"line":2448},[5840,5844,5849,5853,5857,5862,5867],{"type":393,"tag":613,"props":5841,"children":5842},{"style":625},[5843],{"type":398,"value":5159},{"type":393,"tag":613,"props":5845,"children":5846},{"style":679},[5847],{"type":398,"value":5848},"'postal_valid'",{"type":393,"tag":613,"props":5850,"children":5851},{"style":625},[5852],{"type":398,"value":1051},{"type":393,"tag":613,"props":5854,"children":5855},{"style":619},[5856],{"type":398,"value":668},{"type":393,"tag":613,"props":5858,"children":5859},{"style":625},[5860],{"type":398,"value":5861}," us_postal ",{"type":393,"tag":613,"props":5863,"children":5864},{"style":619},[5865],{"type":398,"value":5866},"|",{"type":393,"tag":613,"props":5868,"children":5869},{"style":625},[5870],{"type":398,"value":5871}," ca_postal\n",{"type":393,"tag":613,"props":5873,"children":5874},{"class":615,"line":2457},[5875,5879,5883,5888],{"type":393,"tag":613,"props":5876,"children":5877},{"style":690},[5878],{"type":398,"value":929},{"type":393,"tag":613,"props":5880,"children":5881},{"style":625},[5882],{"type":398,"value":934},{"type":393,"tag":613,"props":5884,"children":5885},{"style":679},[5886],{"type":398,"value":5887},"\"Postal code validation:\"",{"type":393,"tag":613,"props":5889,"children":5890},{"style":625},[5891],{"type":398,"value":944},{"type":393,"tag":613,"props":5893,"children":5894},{"class":615,"line":2478},[5895,5899,5903,5907,5911,5915],{"type":393,"tag":613,"props":5896,"children":5897},{"style":690},[5898],{"type":398,"value":929},{"type":393,"tag":613,"props":5900,"children":5901},{"style":625},[5902],{"type":398,"value":5250},{"type":393,"tag":613,"props":5904,"children":5905},{"style":679},[5906],{"type":398,"value":5726},{"type":393,"tag":613,"props":5908,"children":5909},{"style":625},[5910],{"type":398,"value":467},{"type":393,"tag":613,"props":5912,"children":5913},{"style":679},[5914],{"type":398,"value":5848},{"type":393,"tag":613,"props":5916,"children":5917},{"style":625},[5918],{"type":398,"value":1119},{"type":393,"tag":587,"props":5920,"children":5922},{"id":5921},"complete-text-cleaning-workflow",[5923],{"type":398,"value":5924},"🧽 Complete Text Cleaning Workflow",{"type":393,"tag":401,"props":5926,"children":5927},{},[5928],{"type":398,"value":5929},"A systematic approach to cleaning an entire text dataset:",{"type":393,"tag":407,"props":5931,"children":5935},{"emoji":5932,"title":5933,"type":5934},"🧽","Text Cleaning Workflow Steps","success",[5936,5944,5976,5984,6002,6010,6028,6036,6054,6062,6080],{"type":393,"tag":401,"props":5937,"children":5938},{},[5939],{"type":393,"tag":417,"props":5940,"children":5941},{},[5942],{"type":398,"value":5943},"Step 1: Basic Text Cleaning",{"type":393,"tag":431,"props":5945,"children":5946},{},[5947,5958,5971],{"type":393,"tag":435,"props":5948,"children":5949},{},[5950,5952],{"type":398,"value":5951},"Remove leading/trailing whitespace with ",{"type":393,"tag":441,"props":5953,"children":5955},{"className":5954},[],[5956],{"type":398,"value":5957},".str.strip()",{"type":393,"tag":435,"props":5959,"children":5960},{},[5961,5963,5969],{"type":398,"value":5962},"Standardize case formatting (",{"type":393,"tag":441,"props":5964,"children":5966},{"className":5965},[],[5967],{"type":398,"value":5968},".str.title()",{"type":398,"value":5970}," for names)",{"type":393,"tag":435,"props":5972,"children":5973},{},[5974],{"type":398,"value":5975},"Normalize multiple spaces to single spaces",{"type":393,"tag":401,"props":5977,"children":5978},{},[5979],{"type":393,"tag":417,"props":5980,"children":5981},{},[5982],{"type":398,"value":5983},"Step 2: Company/Organization Names",{"type":393,"tag":431,"props":5985,"children":5986},{},[5987,5992,5997],{"type":393,"tag":435,"props":5988,"children":5989},{},[5990],{"type":398,"value":5991},"Remove common suffixes (Inc., Corp., LLC)",{"type":393,"tag":435,"props":5993,"children":5994},{},[5995],{"type":398,"value":5996},"Standardize capitalization",{"type":393,"tag":435,"props":5998,"children":5999},{},[6000],{"type":398,"value":6001},"Clean extra whitespace",{"type":393,"tag":401,"props":6003,"children":6004},{},[6005],{"type":393,"tag":417,"props":6006,"children":6007},{},[6008],{"type":398,"value":6009},"Step 3: Content Text Cleaning",{"type":393,"tag":431,"props":6011,"children":6012},{},[6013,6018,6023],{"type":393,"tag":435,"props":6014,"children":6015},{},[6016],{"type":398,"value":6017},"Remove excessive punctuation (multiple !!! to single !)",{"type":393,"tag":435,"props":6019,"children":6020},{},[6021],{"type":398,"value":6022},"Clean multiple periods (....... to single .)",{"type":393,"tag":435,"props":6024,"children":6025},{},[6026],{"type":398,"value":6027},"Preserve meaningful punctuation",{"type":393,"tag":401,"props":6029,"children":6030},{},[6031],{"type":393,"tag":417,"props":6032,"children":6033},{},[6034],{"type":398,"value":6035},"Step 4: Category Standardization",{"type":393,"tag":431,"props":6037,"children":6038},{},[6039,6044,6049],{"type":393,"tag":435,"props":6040,"children":6041},{},[6042],{"type":398,"value":6043},"Create mapping dictionaries for categories",{"type":393,"tag":435,"props":6045,"children":6046},{},[6047],{"type":398,"value":6048},"Convert to lowercase for consistent mapping",{"type":393,"tag":435,"props":6050,"children":6051},{},[6052],{"type":398,"value":6053},"Apply standard formatting to results",{"type":393,"tag":401,"props":6055,"children":6056},{},[6057],{"type":393,"tag":417,"props":6058,"children":6059},{},[6060],{"type":398,"value":6061},"Step 5: Validation and Documentation",{"type":393,"tag":431,"props":6063,"children":6064},{},[6065,6070,6075],{"type":393,"tag":435,"props":6066,"children":6067},{},[6068],{"type":398,"value":6069},"Review final results for consistency",{"type":393,"tag":435,"props":6071,"children":6072},{},[6073],{"type":398,"value":6074},"Document cleaning decisions for future reference",{"type":393,"tag":435,"props":6076,"children":6077},{},[6078],{"type":398,"value":6079},"Verify all transformations worked as expected",{"type":393,"tag":401,"props":6081,"children":6082},{},[6083,6088],{"type":393,"tag":417,"props":6084,"children":6085},{},[6086],{"type":398,"value":6087},"Key Principle:",{"type":398,"value":6089}," Clean systematically, one type of issue at a time, and always validate your results!",{"type":393,"tag":599,"props":6091,"children":6092},{},[6093],{"type":393,"tag":603,"props":6094,"children":6096},{"className":605,"code":6095,"language":607,"meta":6,"style":6},"import pandas as pd\n\n# Customer feedback dataset (typical messy real-world data)\nfeedback = pd.DataFrame({\n    'customer_name': ['  Alice Johnson  ', 'bob smith jr.', 'CHARLIE O\\'BRIEN', \n                      'diana lee-jones', '  Eve Davis-Smith III  '],\n    'company': ['ABC Corp.', 'xyz COMPANY inc.', 'Tech Solutions LLC', \n                'ABC CORP', 'Data Systems Inc.'],\n    'feedback_text': ['Great product!!!', 'Good service but could be better.', \n                      'EXCELLENT CUSTOMER SUPPORT!!!', 'Average experience', \n                      'Poor quality... very disappointed.'],\n    'rating_text': ['Excellent', 'good', 'EXCELLENT', 'Average', 'poor']\n})\n\nprint(\"📊 Raw Customer Feedback:\")\nprint(feedback)\nprint()\n\n# Step 1: Create working copy\nclean_feedback = feedback.copy()\n\n# Step 2: Apply systematic cleaning\nprint(\"🧽 Applying Systematic Cleaning:\")\nprint()\n\n# Clean customer names (basic text cleaning)\nclean_feedback['customer_name'] = (clean_feedback['customer_name']\n                                   .str.strip()\n                                   .str.title()\n                                   .str.replace(r'\\s+', ' ', regex=True))\n\n# Standardize company names\nclean_feedback['company'] = (clean_feedback['company']\n                             .str.strip()\n                             .str.title()\n                             .str.replace(r'\\b(Inc|Corp|LLC)\\.?\\b', '', regex=True)\n                             .str.replace(r'\\s+', ' ', regex=True)\n                             .str.strip())\n\n# Clean feedback text\nclean_feedback['feedback_text'] = (clean_feedback['feedback_text']\n                                   .str.replace(r'[!]{2,}', '!', regex=True)  # Multiple ! to single\n                                   .str.replace(r'\\.{2,}', '.', regex=True)   # Multiple . to single\n                                   .str.strip())\n\n# Standardize rating categories\nrating_mapping = {\n    'excellent': 'Excellent',\n    'good': 'Good', \n    'average': 'Average',\n    'poor': 'Poor'\n}\nclean_feedback['rating_text'] = (clean_feedback['rating_text']\n                                 .str.lower()\n                                 .map(rating_mapping))\n\nprint(\"✅ Final cleaned dataset:\")\nprint(clean_feedback)\nprint()\n\nprint(\"🎯 Cleaning accomplished:\")\nprint(\"- Professional name formatting\")\nprint(\"- Standardized company names\")\nprint(\"- Consistent punctuation\")\nprint(\"- Unified rating categories\")\nprint(\"- Analysis-ready text data!\")\n",[6097],{"type":393,"tag":441,"props":6098,"children":6099},{"__ignoreMap":6},[6100,6119,6126,6134,6150,6198,6219,6258,6279,6309,6330,6342,6399,6406,6413,6433,6445,6456,6463,6471,6488,6495,6503,6523,6534,6541,6549,6583,6591,6599,6656,6663,6671,6703,6711,6719,6812,6867,6875,6882,6890,6922,6984,7045,7053,7060,7068,7084,7104,7125,7145,7162,7169,7201,7209,7217,7224,7245,7258,7270,7278,7299,7320,7341,7362,7383],{"type":393,"tag":613,"props":6101,"children":6102},{"class":615,"line":11},[6103,6107,6111,6115],{"type":393,"tag":613,"props":6104,"children":6105},{"style":619},[6106],{"type":398,"value":622},{"type":393,"tag":613,"props":6108,"children":6109},{"style":625},[6110],{"type":398,"value":628},{"type":393,"tag":613,"props":6112,"children":6113},{"style":619},[6114],{"type":398,"value":633},{"type":393,"tag":613,"props":6116,"children":6117},{"style":625},[6118],{"type":398,"value":638},{"type":393,"tag":613,"props":6120,"children":6121},{"class":615,"line":27},[6122],{"type":393,"tag":613,"props":6123,"children":6124},{"emptyLinePlaceholder":12},[6125],{"type":398,"value":646},{"type":393,"tag":613,"props":6127,"children":6128},{"class":615,"line":36},[6129],{"type":393,"tag":613,"props":6130,"children":6131},{"style":652},[6132],{"type":398,"value":6133},"# Customer feedback dataset (typical messy real-world data)\n",{"type":393,"tag":613,"props":6135,"children":6136},{"class":615,"line":45},[6137,6142,6146],{"type":393,"tag":613,"props":6138,"children":6139},{"style":625},[6140],{"type":398,"value":6141},"feedback ",{"type":393,"tag":613,"props":6143,"children":6144},{"style":619},[6145],{"type":398,"value":668},{"type":393,"tag":613,"props":6147,"children":6148},{"style":625},[6149],{"type":398,"value":673},{"type":393,"tag":613,"props":6151,"children":6152},{"class":615,"line":54},[6153,6158,6162,6166,6170,6175,6179,6184,6189,6194],{"type":393,"tag":613,"props":6154,"children":6155},{"style":679},[6156],{"type":398,"value":6157},"    'customer_name'",{"type":393,"tag":613,"props":6159,"children":6160},{"style":625},[6161],{"type":398,"value":687},{"type":393,"tag":613,"props":6163,"children":6164},{"style":679},[6165],{"type":398,"value":751},{"type":393,"tag":613,"props":6167,"children":6168},{"style":625},[6169],{"type":398,"value":467},{"type":393,"tag":613,"props":6171,"children":6172},{"style":679},[6173],{"type":398,"value":6174},"'bob smith jr.'",{"type":393,"tag":613,"props":6176,"children":6177},{"style":625},[6178],{"type":398,"value":467},{"type":393,"tag":613,"props":6180,"children":6181},{"style":679},[6182],{"type":398,"value":6183},"'CHARLIE O",{"type":393,"tag":613,"props":6185,"children":6186},{"style":690},[6187],{"type":398,"value":6188},"\\'",{"type":393,"tag":613,"props":6190,"children":6191},{"style":679},[6192],{"type":398,"value":6193},"BRIEN'",{"type":393,"tag":613,"props":6195,"children":6196},{"style":625},[6197],{"type":398,"value":1573},{"type":393,"tag":613,"props":6199,"children":6200},{"class":615,"line":63},[6201,6206,6210,6215],{"type":393,"tag":613,"props":6202,"children":6203},{"style":679},[6204],{"type":398,"value":6205},"                      'diana lee-jones'",{"type":393,"tag":613,"props":6207,"children":6208},{"style":625},[6209],{"type":398,"value":467},{"type":393,"tag":613,"props":6211,"children":6212},{"style":679},[6213],{"type":398,"value":6214},"'  Eve Davis-Smith III  '",{"type":393,"tag":613,"props":6216,"children":6217},{"style":625},[6218],{"type":398,"value":734},{"type":393,"tag":613,"props":6220,"children":6221},{"class":615,"line":72},[6222,6227,6231,6236,6240,6245,6249,6254],{"type":393,"tag":613,"props":6223,"children":6224},{"style":679},[6225],{"type":398,"value":6226},"    'company'",{"type":393,"tag":613,"props":6228,"children":6229},{"style":625},[6230],{"type":398,"value":687},{"type":393,"tag":613,"props":6232,"children":6233},{"style":679},[6234],{"type":398,"value":6235},"'ABC Corp.'",{"type":393,"tag":613,"props":6237,"children":6238},{"style":625},[6239],{"type":398,"value":467},{"type":393,"tag":613,"props":6241,"children":6242},{"style":679},[6243],{"type":398,"value":6244},"'xyz COMPANY inc.'",{"type":393,"tag":613,"props":6246,"children":6247},{"style":625},[6248],{"type":398,"value":467},{"type":393,"tag":613,"props":6250,"children":6251},{"style":679},[6252],{"type":398,"value":6253},"'Tech Solutions LLC'",{"type":393,"tag":613,"props":6255,"children":6256},{"style":625},[6257],{"type":398,"value":1573},{"type":393,"tag":613,"props":6259,"children":6260},{"class":615,"line":83},[6261,6266,6270,6275],{"type":393,"tag":613,"props":6262,"children":6263},{"style":679},[6264],{"type":398,"value":6265},"                'ABC CORP'",{"type":393,"tag":613,"props":6267,"children":6268},{"style":625},[6269],{"type":398,"value":467},{"type":393,"tag":613,"props":6271,"children":6272},{"style":679},[6273],{"type":398,"value":6274},"'Data Systems Inc.'",{"type":393,"tag":613,"props":6276,"children":6277},{"style":625},[6278],{"type":398,"value":734},{"type":393,"tag":613,"props":6280,"children":6281},{"class":615,"line":92},[6282,6287,6291,6296,6300,6305],{"type":393,"tag":613,"props":6283,"children":6284},{"style":679},[6285],{"type":398,"value":6286},"    'feedback_text'",{"type":393,"tag":613,"props":6288,"children":6289},{"style":625},[6290],{"type":398,"value":687},{"type":393,"tag":613,"props":6292,"children":6293},{"style":679},[6294],{"type":398,"value":6295},"'Great product!!!'",{"type":393,"tag":613,"props":6297,"children":6298},{"style":625},[6299],{"type":398,"value":467},{"type":393,"tag":613,"props":6301,"children":6302},{"style":679},[6303],{"type":398,"value":6304},"'Good service but could be better.'",{"type":393,"tag":613,"props":6306,"children":6307},{"style":625},[6308],{"type":398,"value":1573},{"type":393,"tag":613,"props":6310,"children":6311},{"class":615,"line":101},[6312,6317,6321,6326],{"type":393,"tag":613,"props":6313,"children":6314},{"style":679},[6315],{"type":398,"value":6316},"                      'EXCELLENT CUSTOMER SUPPORT!!!'",{"type":393,"tag":613,"props":6318,"children":6319},{"style":625},[6320],{"type":398,"value":467},{"type":393,"tag":613,"props":6322,"children":6323},{"style":679},[6324],{"type":398,"value":6325},"'Average experience'",{"type":393,"tag":613,"props":6327,"children":6328},{"style":625},[6329],{"type":398,"value":1573},{"type":393,"tag":613,"props":6331,"children":6332},{"class":615,"line":110},[6333,6338],{"type":393,"tag":613,"props":6334,"children":6335},{"style":679},[6336],{"type":398,"value":6337},"                      'Poor quality... very disappointed.'",{"type":393,"tag":613,"props":6339,"children":6340},{"style":625},[6341],{"type":398,"value":734},{"type":393,"tag":613,"props":6343,"children":6344},{"class":615,"line":121},[6345,6350,6354,6359,6363,6368,6372,6377,6381,6386,6390,6395],{"type":393,"tag":613,"props":6346,"children":6347},{"style":679},[6348],{"type":398,"value":6349},"    'rating_text'",{"type":393,"tag":613,"props":6351,"children":6352},{"style":625},[6353],{"type":398,"value":687},{"type":393,"tag":613,"props":6355,"children":6356},{"style":679},[6357],{"type":398,"value":6358},"'Excellent'",{"type":393,"tag":613,"props":6360,"children":6361},{"style":625},[6362],{"type":398,"value":467},{"type":393,"tag":613,"props":6364,"children":6365},{"style":679},[6366],{"type":398,"value":6367},"'good'",{"type":393,"tag":613,"props":6369,"children":6370},{"style":625},[6371],{"type":398,"value":467},{"type":393,"tag":613,"props":6373,"children":6374},{"style":679},[6375],{"type":398,"value":6376},"'EXCELLENT'",{"type":393,"tag":613,"props":6378,"children":6379},{"style":625},[6380],{"type":398,"value":467},{"type":393,"tag":613,"props":6382,"children":6383},{"style":679},[6384],{"type":398,"value":6385},"'Average'",{"type":393,"tag":613,"props":6387,"children":6388},{"style":625},[6389],{"type":398,"value":467},{"type":393,"tag":613,"props":6391,"children":6392},{"style":679},[6393],{"type":398,"value":6394},"'poor'",{"type":393,"tag":613,"props":6396,"children":6397},{"style":625},[6398],{"type":398,"value":906},{"type":393,"tag":613,"props":6400,"children":6401},{"class":615,"line":130},[6402],{"type":393,"tag":613,"props":6403,"children":6404},{"style":625},[6405],{"type":398,"value":914},{"type":393,"tag":613,"props":6407,"children":6408},{"class":615,"line":139},[6409],{"type":393,"tag":613,"props":6410,"children":6411},{"emptyLinePlaceholder":12},[6412],{"type":398,"value":646},{"type":393,"tag":613,"props":6414,"children":6415},{"class":615,"line":148},[6416,6420,6424,6429],{"type":393,"tag":613,"props":6417,"children":6418},{"style":690},[6419],{"type":398,"value":929},{"type":393,"tag":613,"props":6421,"children":6422},{"style":625},[6423],{"type":398,"value":934},{"type":393,"tag":613,"props":6425,"children":6426},{"style":679},[6427],{"type":398,"value":6428},"\"📊 Raw Customer Feedback:\"",{"type":393,"tag":613,"props":6430,"children":6431},{"style":625},[6432],{"type":398,"value":944},{"type":393,"tag":613,"props":6434,"children":6435},{"class":615,"line":159},[6436,6440],{"type":393,"tag":613,"props":6437,"children":6438},{"style":690},[6439],{"type":398,"value":929},{"type":393,"tag":613,"props":6441,"children":6442},{"style":625},[6443],{"type":398,"value":6444},"(feedback)\n",{"type":393,"tag":613,"props":6446,"children":6447},{"class":615,"line":168},[6448,6452],{"type":393,"tag":613,"props":6449,"children":6450},{"style":690},[6451],{"type":398,"value":929},{"type":393,"tag":613,"props":6453,"children":6454},{"style":625},[6455],{"type":398,"value":968},{"type":393,"tag":613,"props":6457,"children":6458},{"class":615,"line":177},[6459],{"type":393,"tag":613,"props":6460,"children":6461},{"emptyLinePlaceholder":12},[6462],{"type":398,"value":646},{"type":393,"tag":613,"props":6464,"children":6465},{"class":615,"line":186},[6466],{"type":393,"tag":613,"props":6467,"children":6468},{"style":652},[6469],{"type":398,"value":6470},"# Step 1: Create working copy\n",{"type":393,"tag":613,"props":6472,"children":6473},{"class":615,"line":197},[6474,6479,6483],{"type":393,"tag":613,"props":6475,"children":6476},{"style":625},[6477],{"type":398,"value":6478},"clean_feedback ",{"type":393,"tag":613,"props":6480,"children":6481},{"style":619},[6482],{"type":398,"value":668},{"type":393,"tag":613,"props":6484,"children":6485},{"style":625},[6486],{"type":398,"value":6487}," feedback.copy()\n",{"type":393,"tag":613,"props":6489,"children":6490},{"class":615,"line":206},[6491],{"type":393,"tag":613,"props":6492,"children":6493},{"emptyLinePlaceholder":12},[6494],{"type":398,"value":646},{"type":393,"tag":613,"props":6496,"children":6497},{"class":615,"line":215},[6498],{"type":393,"tag":613,"props":6499,"children":6500},{"style":652},[6501],{"type":398,"value":6502},"# Step 2: Apply systematic cleaning\n",{"type":393,"tag":613,"props":6504,"children":6505},{"class":615,"line":224},[6506,6510,6514,6519],{"type":393,"tag":613,"props":6507,"children":6508},{"style":690},[6509],{"type":398,"value":929},{"type":393,"tag":613,"props":6511,"children":6512},{"style":625},[6513],{"type":398,"value":934},{"type":393,"tag":613,"props":6515,"children":6516},{"style":679},[6517],{"type":398,"value":6518},"\"🧽 Applying Systematic Cleaning:\"",{"type":393,"tag":613,"props":6520,"children":6521},{"style":625},[6522],{"type":398,"value":944},{"type":393,"tag":613,"props":6524,"children":6525},{"class":615,"line":233},[6526,6530],{"type":393,"tag":613,"props":6527,"children":6528},{"style":690},[6529],{"type":398,"value":929},{"type":393,"tag":613,"props":6531,"children":6532},{"style":625},[6533],{"type":398,"value":968},{"type":393,"tag":613,"props":6535,"children":6536},{"class":615,"line":244},[6537],{"type":393,"tag":613,"props":6538,"children":6539},{"emptyLinePlaceholder":12},[6540],{"type":398,"value":646},{"type":393,"tag":613,"props":6542,"children":6543},{"class":615,"line":253},[6544],{"type":393,"tag":613,"props":6545,"children":6546},{"style":652},[6547],{"type":398,"value":6548},"# Clean customer names (basic text cleaning)\n",{"type":393,"tag":613,"props":6550,"children":6551},{"class":615,"line":262},[6552,6557,6562,6566,6570,6575,6579],{"type":393,"tag":613,"props":6553,"children":6554},{"style":625},[6555],{"type":398,"value":6556},"clean_feedback[",{"type":393,"tag":613,"props":6558,"children":6559},{"style":679},[6560],{"type":398,"value":6561},"'customer_name'",{"type":393,"tag":613,"props":6563,"children":6564},{"style":625},[6565],{"type":398,"value":1051},{"type":393,"tag":613,"props":6567,"children":6568},{"style":619},[6569],{"type":398,"value":668},{"type":393,"tag":613,"props":6571,"children":6572},{"style":625},[6573],{"type":398,"value":6574}," (clean_feedback[",{"type":393,"tag":613,"props":6576,"children":6577},{"style":679},[6578],{"type":398,"value":6561},{"type":393,"tag":613,"props":6580,"children":6581},{"style":625},[6582],{"type":398,"value":906},{"type":393,"tag":613,"props":6584,"children":6585},{"class":615,"line":271},[6586],{"type":393,"tag":613,"props":6587,"children":6588},{"style":625},[6589],{"type":398,"value":6590},"                                   .str.strip()\n",{"type":393,"tag":613,"props":6592,"children":6593},{"class":615,"line":281},[6594],{"type":393,"tag":613,"props":6595,"children":6596},{"style":625},[6597],{"type":398,"value":6598},"                                   .str.title()\n",{"type":393,"tag":613,"props":6600,"children":6601},{"class":615,"line":290},[6602,6607,6611,6615,6620,6624,6628,6632,6636,6640,6644,6648,6652],{"type":393,"tag":613,"props":6603,"children":6604},{"style":625},[6605],{"type":398,"value":6606},"                                   .str.replace(",{"type":393,"tag":613,"props":6608,"children":6609},{"style":619},[6610],{"type":398,"value":3122},{"type":393,"tag":613,"props":6612,"children":6613},{"style":679},[6614],{"type":398,"value":3127},{"type":393,"tag":613,"props":6616,"children":6617},{"style":690},[6618],{"type":398,"value":6619},"\\s",{"type":393,"tag":613,"props":6621,"children":6622},{"style":619},[6623],{"type":398,"value":5205},{"type":393,"tag":613,"props":6625,"children":6626},{"style":679},[6627],{"type":398,"value":3127},{"type":393,"tag":613,"props":6629,"children":6630},{"style":625},[6631],{"type":398,"value":467},{"type":393,"tag":613,"props":6633,"children":6634},{"style":679},[6635],{"type":398,"value":2004},{"type":393,"tag":613,"props":6637,"children":6638},{"style":625},[6639],{"type":398,"value":467},{"type":393,"tag":613,"props":6641,"children":6642},{"style":1967},[6643],{"type":398,"value":1970},{"type":393,"tag":613,"props":6645,"children":6646},{"style":619},[6647],{"type":398,"value":668},{"type":393,"tag":613,"props":6649,"children":6650},{"style":690},[6651],{"type":398,"value":1979},{"type":393,"tag":613,"props":6653,"children":6654},{"style":625},[6655],{"type":398,"value":2025},{"type":393,"tag":613,"props":6657,"children":6658},{"class":615,"line":299},[6659],{"type":393,"tag":613,"props":6660,"children":6661},{"emptyLinePlaceholder":12},[6662],{"type":398,"value":646},{"type":393,"tag":613,"props":6664,"children":6665},{"class":615,"line":308},[6666],{"type":393,"tag":613,"props":6667,"children":6668},{"style":652},[6669],{"type":398,"value":6670},"# Standardize company names\n",{"type":393,"tag":613,"props":6672,"children":6673},{"class":615,"line":318},[6674,6678,6683,6687,6691,6695,6699],{"type":393,"tag":613,"props":6675,"children":6676},{"style":625},[6677],{"type":398,"value":6556},{"type":393,"tag":613,"props":6679,"children":6680},{"style":679},[6681],{"type":398,"value":6682},"'company'",{"type":393,"tag":613,"props":6684,"children":6685},{"style":625},[6686],{"type":398,"value":1051},{"type":393,"tag":613,"props":6688,"children":6689},{"style":619},[6690],{"type":398,"value":668},{"type":393,"tag":613,"props":6692,"children":6693},{"style":625},[6694],{"type":398,"value":6574},{"type":393,"tag":613,"props":6696,"children":6697},{"style":679},[6698],{"type":398,"value":6682},{"type":393,"tag":613,"props":6700,"children":6701},{"style":625},[6702],{"type":398,"value":906},{"type":393,"tag":613,"props":6704,"children":6705},{"class":615,"line":327},[6706],{"type":393,"tag":613,"props":6707,"children":6708},{"style":625},[6709],{"type":398,"value":6710},"                             .str.strip()\n",{"type":393,"tag":613,"props":6712,"children":6713},{"class":615,"line":336},[6714],{"type":393,"tag":613,"props":6715,"children":6716},{"style":625},[6717],{"type":398,"value":6718},"                             .str.title()\n",{"type":393,"tag":613,"props":6720,"children":6721},{"class":615,"line":346},[6722,6727,6731,6735,6740,6745,6749,6754,6758,6763,6767,6771,6775,6780,6784,6788,6792,6796,6800,6804,6808],{"type":393,"tag":613,"props":6723,"children":6724},{"style":625},[6725],{"type":398,"value":6726},"                             .str.replace(",{"type":393,"tag":613,"props":6728,"children":6729},{"style":619},[6730],{"type":398,"value":3122},{"type":393,"tag":613,"props":6732,"children":6733},{"style":679},[6734],{"type":398,"value":3127},{"type":393,"tag":613,"props":6736,"children":6737},{"style":690},[6738],{"type":398,"value":6739},"\\b(",{"type":393,"tag":613,"props":6741,"children":6742},{"style":3198},[6743],{"type":398,"value":6744},"Inc",{"type":393,"tag":613,"props":6746,"children":6747},{"style":619},[6748],{"type":398,"value":5866},{"type":393,"tag":613,"props":6750,"children":6751},{"style":3198},[6752],{"type":398,"value":6753},"Corp",{"type":393,"tag":613,"props":6755,"children":6756},{"style":619},[6757],{"type":398,"value":5866},{"type":393,"tag":613,"props":6759,"children":6760},{"style":3198},[6761],{"type":398,"value":6762},"LLC",{"type":393,"tag":613,"props":6764,"children":6765},{"style":690},[6766],{"type":398,"value":3160},{"type":393,"tag":613,"props":6768,"children":6769},{"style":5351},[6770],{"type":398,"value":5354},{"type":393,"tag":613,"props":6772,"children":6773},{"style":619},[6774],{"type":398,"value":5774},{"type":393,"tag":613,"props":6776,"children":6777},{"style":690},[6778],{"type":398,"value":6779},"\\b",{"type":393,"tag":613,"props":6781,"children":6782},{"style":679},[6783],{"type":398,"value":3127},{"type":393,"tag":613,"props":6785,"children":6786},{"style":625},[6787],{"type":398,"value":467},{"type":393,"tag":613,"props":6789,"children":6790},{"style":679},[6791],{"type":398,"value":1960},{"type":393,"tag":613,"props":6793,"children":6794},{"style":625},[6795],{"type":398,"value":467},{"type":393,"tag":613,"props":6797,"children":6798},{"style":1967},[6799],{"type":398,"value":1970},{"type":393,"tag":613,"props":6801,"children":6802},{"style":619},[6803],{"type":398,"value":668},{"type":393,"tag":613,"props":6805,"children":6806},{"style":690},[6807],{"type":398,"value":1979},{"type":393,"tag":613,"props":6809,"children":6810},{"style":625},[6811],{"type":398,"value":944},{"type":393,"tag":613,"props":6813,"children":6814},{"class":615,"line":355},[6815,6819,6823,6827,6831,6835,6839,6843,6847,6851,6855,6859,6863],{"type":393,"tag":613,"props":6816,"children":6817},{"style":625},[6818],{"type":398,"value":6726},{"type":393,"tag":613,"props":6820,"children":6821},{"style":619},[6822],{"type":398,"value":3122},{"type":393,"tag":613,"props":6824,"children":6825},{"style":679},[6826],{"type":398,"value":3127},{"type":393,"tag":613,"props":6828,"children":6829},{"style":690},[6830],{"type":398,"value":6619},{"type":393,"tag":613,"props":6832,"children":6833},{"style":619},[6834],{"type":398,"value":5205},{"type":393,"tag":613,"props":6836,"children":6837},{"style":679},[6838],{"type":398,"value":3127},{"type":393,"tag":613,"props":6840,"children":6841},{"style":625},[6842],{"type":398,"value":467},{"type":393,"tag":613,"props":6844,"children":6845},{"style":679},[6846],{"type":398,"value":2004},{"type":393,"tag":613,"props":6848,"children":6849},{"style":625},[6850],{"type":398,"value":467},{"type":393,"tag":613,"props":6852,"children":6853},{"style":1967},[6854],{"type":398,"value":1970},{"type":393,"tag":613,"props":6856,"children":6857},{"style":619},[6858],{"type":398,"value":668},{"type":393,"tag":613,"props":6860,"children":6861},{"style":690},[6862],{"type":398,"value":1979},{"type":393,"tag":613,"props":6864,"children":6865},{"style":625},[6866],{"type":398,"value":944},{"type":393,"tag":613,"props":6868,"children":6869},{"class":615,"line":364},[6870],{"type":393,"tag":613,"props":6871,"children":6872},{"style":625},[6873],{"type":398,"value":6874},"                             .str.strip())\n",{"type":393,"tag":613,"props":6876,"children":6877},{"class":615,"line":374},[6878],{"type":393,"tag":613,"props":6879,"children":6880},{"emptyLinePlaceholder":12},[6881],{"type":398,"value":646},{"type":393,"tag":613,"props":6883,"children":6884},{"class":615,"line":383},[6885],{"type":393,"tag":613,"props":6886,"children":6887},{"style":652},[6888],{"type":398,"value":6889},"# Clean feedback text\n",{"type":393,"tag":613,"props":6891,"children":6892},{"class":615,"line":2315},[6893,6897,6902,6906,6910,6914,6918],{"type":393,"tag":613,"props":6894,"children":6895},{"style":625},[6896],{"type":398,"value":6556},{"type":393,"tag":613,"props":6898,"children":6899},{"style":679},[6900],{"type":398,"value":6901},"'feedback_text'",{"type":393,"tag":613,"props":6903,"children":6904},{"style":625},[6905],{"type":398,"value":1051},{"type":393,"tag":613,"props":6907,"children":6908},{"style":619},[6909],{"type":398,"value":668},{"type":393,"tag":613,"props":6911,"children":6912},{"style":625},[6913],{"type":398,"value":6574},{"type":393,"tag":613,"props":6915,"children":6916},{"style":679},[6917],{"type":398,"value":6901},{"type":393,"tag":613,"props":6919,"children":6920},{"style":625},[6921],{"type":398,"value":906},{"type":393,"tag":613,"props":6923,"children":6924},{"class":615,"line":2357},[6925,6929,6933,6937,6942,6946,6950,6954,6959,6963,6967,6971,6975,6979],{"type":393,"tag":613,"props":6926,"children":6927},{"style":625},[6928],{"type":398,"value":6606},{"type":393,"tag":613,"props":6930,"children":6931},{"style":619},[6932],{"type":398,"value":3122},{"type":393,"tag":613,"props":6934,"children":6935},{"style":679},[6936],{"type":398,"value":3127},{"type":393,"tag":613,"props":6938,"children":6939},{"style":690},[6940],{"type":398,"value":6941},"[!]",{"type":393,"tag":613,"props":6943,"children":6944},{"style":619},[6945],{"type":398,"value":5364},{"type":393,"tag":613,"props":6947,"children":6948},{"style":679},[6949],{"type":398,"value":3127},{"type":393,"tag":613,"props":6951,"children":6952},{"style":625},[6953],{"type":398,"value":467},{"type":393,"tag":613,"props":6955,"children":6956},{"style":679},[6957],{"type":398,"value":6958},"'!'",{"type":393,"tag":613,"props":6960,"children":6961},{"style":625},[6962],{"type":398,"value":467},{"type":393,"tag":613,"props":6964,"children":6965},{"style":1967},[6966],{"type":398,"value":1970},{"type":393,"tag":613,"props":6968,"children":6969},{"style":619},[6970],{"type":398,"value":668},{"type":393,"tag":613,"props":6972,"children":6973},{"style":690},[6974],{"type":398,"value":1979},{"type":393,"tag":613,"props":6976,"children":6977},{"style":625},[6978],{"type":398,"value":3105},{"type":393,"tag":613,"props":6980,"children":6981},{"style":652},[6982],{"type":398,"value":6983},"# Multiple ! to single\n",{"type":393,"tag":613,"props":6985,"children":6986},{"class":615,"line":2398},[6987,6991,6995,6999,7003,7007,7011,7015,7019,7023,7027,7031,7035,7040],{"type":393,"tag":613,"props":6988,"children":6989},{"style":625},[6990],{"type":398,"value":6606},{"type":393,"tag":613,"props":6992,"children":6993},{"style":619},[6994],{"type":398,"value":3122},{"type":393,"tag":613,"props":6996,"children":6997},{"style":679},[6998],{"type":398,"value":3127},{"type":393,"tag":613,"props":7000,"children":7001},{"style":5351},[7002],{"type":398,"value":5354},{"type":393,"tag":613,"props":7004,"children":7005},{"style":619},[7006],{"type":398,"value":5364},{"type":393,"tag":613,"props":7008,"children":7009},{"style":679},[7010],{"type":398,"value":3127},{"type":393,"tag":613,"props":7012,"children":7013},{"style":625},[7014],{"type":398,"value":467},{"type":393,"tag":613,"props":7016,"children":7017},{"style":679},[7018],{"type":398,"value":2601},{"type":393,"tag":613,"props":7020,"children":7021},{"style":625},[7022],{"type":398,"value":467},{"type":393,"tag":613,"props":7024,"children":7025},{"style":1967},[7026],{"type":398,"value":1970},{"type":393,"tag":613,"props":7028,"children":7029},{"style":619},[7030],{"type":398,"value":668},{"type":393,"tag":613,"props":7032,"children":7033},{"style":690},[7034],{"type":398,"value":1979},{"type":393,"tag":613,"props":7036,"children":7037},{"style":625},[7038],{"type":398,"value":7039},")   ",{"type":393,"tag":613,"props":7041,"children":7042},{"style":652},[7043],{"type":398,"value":7044},"# Multiple . to single\n",{"type":393,"tag":613,"props":7046,"children":7047},{"class":615,"line":2439},[7048],{"type":393,"tag":613,"props":7049,"children":7050},{"style":625},[7051],{"type":398,"value":7052},"                                   .str.strip())\n",{"type":393,"tag":613,"props":7054,"children":7055},{"class":615,"line":2448},[7056],{"type":393,"tag":613,"props":7057,"children":7058},{"emptyLinePlaceholder":12},[7059],{"type":398,"value":646},{"type":393,"tag":613,"props":7061,"children":7062},{"class":615,"line":2457},[7063],{"type":393,"tag":613,"props":7064,"children":7065},{"style":652},[7066],{"type":398,"value":7067},"# Standardize rating categories\n",{"type":393,"tag":613,"props":7069,"children":7070},{"class":615,"line":2478},[7071,7076,7080],{"type":393,"tag":613,"props":7072,"children":7073},{"style":625},[7074],{"type":398,"value":7075},"rating_mapping ",{"type":393,"tag":613,"props":7077,"children":7078},{"style":619},[7079],{"type":398,"value":668},{"type":393,"tag":613,"props":7081,"children":7082},{"style":625},[7083],{"type":398,"value":4100},{"type":393,"tag":613,"props":7085,"children":7086},{"class":615,"line":2506},[7087,7092,7096,7100],{"type":393,"tag":613,"props":7088,"children":7089},{"style":679},[7090],{"type":398,"value":7091},"    'excellent'",{"type":393,"tag":613,"props":7093,"children":7094},{"style":625},[7095],{"type":398,"value":4113},{"type":393,"tag":613,"props":7097,"children":7098},{"style":679},[7099],{"type":398,"value":6358},{"type":393,"tag":613,"props":7101,"children":7102},{"style":625},[7103],{"type":398,"value":4122},{"type":393,"tag":613,"props":7105,"children":7106},{"class":615,"line":2518},[7107,7112,7116,7121],{"type":393,"tag":613,"props":7108,"children":7109},{"style":679},[7110],{"type":398,"value":7111},"    'good'",{"type":393,"tag":613,"props":7113,"children":7114},{"style":625},[7115],{"type":398,"value":4113},{"type":393,"tag":613,"props":7117,"children":7118},{"style":679},[7119],{"type":398,"value":7120},"'Good'",{"type":393,"tag":613,"props":7122,"children":7123},{"style":625},[7124],{"type":398,"value":1573},{"type":393,"tag":613,"props":7126,"children":7127},{"class":615,"line":2526},[7128,7133,7137,7141],{"type":393,"tag":613,"props":7129,"children":7130},{"style":679},[7131],{"type":398,"value":7132},"    'average'",{"type":393,"tag":613,"props":7134,"children":7135},{"style":625},[7136],{"type":398,"value":4113},{"type":393,"tag":613,"props":7138,"children":7139},{"style":679},[7140],{"type":398,"value":6385},{"type":393,"tag":613,"props":7142,"children":7143},{"style":625},[7144],{"type":398,"value":4122},{"type":393,"tag":613,"props":7146,"children":7147},{"class":615,"line":2547},[7148,7153,7157],{"type":393,"tag":613,"props":7149,"children":7150},{"style":679},[7151],{"type":398,"value":7152},"    'poor'",{"type":393,"tag":613,"props":7154,"children":7155},{"style":625},[7156],{"type":398,"value":4113},{"type":393,"tag":613,"props":7158,"children":7159},{"style":679},[7160],{"type":398,"value":7161},"'Poor'\n",{"type":393,"tag":613,"props":7163,"children":7164},{"class":615,"line":2581},[7165],{"type":393,"tag":613,"props":7166,"children":7167},{"style":625},[7168],{"type":398,"value":4208},{"type":393,"tag":613,"props":7170,"children":7171},{"class":615,"line":2624},[7172,7176,7181,7185,7189,7193,7197],{"type":393,"tag":613,"props":7173,"children":7174},{"style":625},[7175],{"type":398,"value":6556},{"type":393,"tag":613,"props":7177,"children":7178},{"style":679},[7179],{"type":398,"value":7180},"'rating_text'",{"type":393,"tag":613,"props":7182,"children":7183},{"style":625},[7184],{"type":398,"value":1051},{"type":393,"tag":613,"props":7186,"children":7187},{"style":619},[7188],{"type":398,"value":668},{"type":393,"tag":613,"props":7190,"children":7191},{"style":625},[7192],{"type":398,"value":6574},{"type":393,"tag":613,"props":7194,"children":7195},{"style":679},[7196],{"type":398,"value":7180},{"type":393,"tag":613,"props":7198,"children":7199},{"style":625},[7200],{"type":398,"value":906},{"type":393,"tag":613,"props":7202,"children":7203},{"class":615,"line":2633},[7204],{"type":393,"tag":613,"props":7205,"children":7206},{"style":625},[7207],{"type":398,"value":7208},"                                 .str.lower()\n",{"type":393,"tag":613,"props":7210,"children":7211},{"class":615,"line":2654},[7212],{"type":393,"tag":613,"props":7213,"children":7214},{"style":625},[7215],{"type":398,"value":7216},"                                 .map(rating_mapping))\n",{"type":393,"tag":613,"props":7218,"children":7219},{"class":615,"line":4690},[7220],{"type":393,"tag":613,"props":7221,"children":7222},{"emptyLinePlaceholder":12},[7223],{"type":398,"value":646},{"type":393,"tag":613,"props":7225,"children":7227},{"class":615,"line":7226},57,[7228,7232,7236,7241],{"type":393,"tag":613,"props":7229,"children":7230},{"style":690},[7231],{"type":398,"value":929},{"type":393,"tag":613,"props":7233,"children":7234},{"style":625},[7235],{"type":398,"value":934},{"type":393,"tag":613,"props":7237,"children":7238},{"style":679},[7239],{"type":398,"value":7240},"\"✅ Final cleaned dataset:\"",{"type":393,"tag":613,"props":7242,"children":7243},{"style":625},[7244],{"type":398,"value":944},{"type":393,"tag":613,"props":7246,"children":7248},{"class":615,"line":7247},58,[7249,7253],{"type":393,"tag":613,"props":7250,"children":7251},{"style":690},[7252],{"type":398,"value":929},{"type":393,"tag":613,"props":7254,"children":7255},{"style":625},[7256],{"type":398,"value":7257},"(clean_feedback)\n",{"type":393,"tag":613,"props":7259,"children":7261},{"class":615,"line":7260},59,[7262,7266],{"type":393,"tag":613,"props":7263,"children":7264},{"style":690},[7265],{"type":398,"value":929},{"type":393,"tag":613,"props":7267,"children":7268},{"style":625},[7269],{"type":398,"value":968},{"type":393,"tag":613,"props":7271,"children":7273},{"class":615,"line":7272},60,[7274],{"type":393,"tag":613,"props":7275,"children":7276},{"emptyLinePlaceholder":12},[7277],{"type":398,"value":646},{"type":393,"tag":613,"props":7279,"children":7281},{"class":615,"line":7280},61,[7282,7286,7290,7295],{"type":393,"tag":613,"props":7283,"children":7284},{"style":690},[7285],{"type":398,"value":929},{"type":393,"tag":613,"props":7287,"children":7288},{"style":625},[7289],{"type":398,"value":934},{"type":393,"tag":613,"props":7291,"children":7292},{"style":679},[7293],{"type":398,"value":7294},"\"🎯 Cleaning accomplished:\"",{"type":393,"tag":613,"props":7296,"children":7297},{"style":625},[7298],{"type":398,"value":944},{"type":393,"tag":613,"props":7300,"children":7302},{"class":615,"line":7301},62,[7303,7307,7311,7316],{"type":393,"tag":613,"props":7304,"children":7305},{"style":690},[7306],{"type":398,"value":929},{"type":393,"tag":613,"props":7308,"children":7309},{"style":625},[7310],{"type":398,"value":934},{"type":393,"tag":613,"props":7312,"children":7313},{"style":679},[7314],{"type":398,"value":7315},"\"- Professional name formatting\"",{"type":393,"tag":613,"props":7317,"children":7318},{"style":625},[7319],{"type":398,"value":944},{"type":393,"tag":613,"props":7321,"children":7323},{"class":615,"line":7322},63,[7324,7328,7332,7337],{"type":393,"tag":613,"props":7325,"children":7326},{"style":690},[7327],{"type":398,"value":929},{"type":393,"tag":613,"props":7329,"children":7330},{"style":625},[7331],{"type":398,"value":934},{"type":393,"tag":613,"props":7333,"children":7334},{"style":679},[7335],{"type":398,"value":7336},"\"- Standardized company names\"",{"type":393,"tag":613,"props":7338,"children":7339},{"style":625},[7340],{"type":398,"value":944},{"type":393,"tag":613,"props":7342,"children":7344},{"class":615,"line":7343},64,[7345,7349,7353,7358],{"type":393,"tag":613,"props":7346,"children":7347},{"style":690},[7348],{"type":398,"value":929},{"type":393,"tag":613,"props":7350,"children":7351},{"style":625},[7352],{"type":398,"value":934},{"type":393,"tag":613,"props":7354,"children":7355},{"style":679},[7356],{"type":398,"value":7357},"\"- Consistent punctuation\"",{"type":393,"tag":613,"props":7359,"children":7360},{"style":625},[7361],{"type":398,"value":944},{"type":393,"tag":613,"props":7363,"children":7365},{"class":615,"line":7364},65,[7366,7370,7374,7379],{"type":393,"tag":613,"props":7367,"children":7368},{"style":690},[7369],{"type":398,"value":929},{"type":393,"tag":613,"props":7371,"children":7372},{"style":625},[7373],{"type":398,"value":934},{"type":393,"tag":613,"props":7375,"children":7376},{"style":679},[7377],{"type":398,"value":7378},"\"- Unified rating categories\"",{"type":393,"tag":613,"props":7380,"children":7381},{"style":625},[7382],{"type":398,"value":944},{"type":393,"tag":613,"props":7384,"children":7386},{"class":615,"line":7385},66,[7387,7391,7395,7400],{"type":393,"tag":613,"props":7388,"children":7389},{"style":690},[7390],{"type":398,"value":929},{"type":393,"tag":613,"props":7392,"children":7393},{"style":625},[7394],{"type":398,"value":934},{"type":393,"tag":613,"props":7396,"children":7397},{"style":679},[7398],{"type":398,"value":7399},"\"- Analysis-ready text data!\"",{"type":393,"tag":613,"props":7401,"children":7402},{"style":625},[7403],{"type":398,"value":944},{"type":393,"tag":587,"props":7405,"children":7407},{"id":7406},"key-takeaways",[7408],{"type":398,"value":7409},"🎯 Key Takeaways",{"type":393,"tag":407,"props":7411,"children":7413},{"emoji":409,"title":7412,"type":5934},"String Cleaning Mastery",[7414,7422,7479,7487,7576,7584,7632,7640,7704,7712,7740],{"type":393,"tag":401,"props":7415,"children":7416},{},[7417],{"type":393,"tag":417,"props":7418,"children":7419},{},[7420],{"type":398,"value":7421},"Essential String Methods:",{"type":393,"tag":431,"props":7423,"children":7424},{},[7425,7435,7446,7457,7468],{"type":393,"tag":435,"props":7426,"children":7427},{},[7428,7433],{"type":393,"tag":441,"props":7429,"children":7431},{"className":7430},[],[7432],{"type":398,"value":5957},{"type":398,"value":7434}," - remove whitespace",{"type":393,"tag":435,"props":7436,"children":7437},{},[7438,7444],{"type":393,"tag":441,"props":7439,"children":7441},{"className":7440},[],[7442],{"type":398,"value":7443},".str.lower()/.str.upper()/.str.title()",{"type":398,"value":7445}," - case conversion",{"type":393,"tag":435,"props":7447,"children":7448},{},[7449,7455],{"type":393,"tag":441,"props":7450,"children":7452},{"className":7451},[],[7453],{"type":398,"value":7454},".str.replace()",{"type":398,"value":7456}," - replace text patterns",{"type":393,"tag":435,"props":7458,"children":7459},{},[7460,7466],{"type":393,"tag":441,"props":7461,"children":7463},{"className":7462},[],[7464],{"type":398,"value":7465},".str.extract()",{"type":398,"value":7467}," - extract patterns with regex",{"type":393,"tag":435,"props":7469,"children":7470},{},[7471,7477],{"type":393,"tag":441,"props":7472,"children":7474},{"className":7473},[],[7475],{"type":398,"value":7476},".str.match()",{"type":398,"value":7478}," - validate text patterns",{"type":393,"tag":401,"props":7480,"children":7481},{},[7482],{"type":393,"tag":417,"props":7483,"children":7484},{},[7485],{"type":398,"value":7486},"Common Cleaning Patterns:",{"type":393,"tag":431,"props":7488,"children":7489},{},[7490,7512,7536,7551,7561],{"type":393,"tag":435,"props":7491,"children":7492},{},[7493,7498,7499,7504,7506],{"type":393,"tag":417,"props":7494,"children":7495},{},[7496],{"type":398,"value":7497},"Whitespace",{"type":398,"value":4113},{"type":393,"tag":441,"props":7500,"children":7502},{"className":7501},[],[7503],{"type":398,"value":5957},{"type":398,"value":7505}," and ",{"type":393,"tag":441,"props":7507,"children":7509},{"className":7508},[],[7510],{"type":398,"value":7511},".str.replace(r'\\s+', ' ', regex=True)",{"type":393,"tag":435,"props":7513,"children":7514},{},[7515,7520,7521,7526,7528,7534],{"type":393,"tag":417,"props":7516,"children":7517},{},[7518],{"type":398,"value":7519},"Case",{"type":398,"value":4113},{"type":393,"tag":441,"props":7522,"children":7524},{"className":7523},[],[7525],{"type":398,"value":5968},{"type":398,"value":7527}," for names, ",{"type":393,"tag":441,"props":7529,"children":7531},{"className":7530},[],[7532],{"type":398,"value":7533},".str.lower()",{"type":398,"value":7535}," for emails",{"type":393,"tag":435,"props":7537,"children":7538},{},[7539,7544,7545],{"type":393,"tag":417,"props":7540,"children":7541},{},[7542],{"type":398,"value":7543},"Special chars",{"type":398,"value":4113},{"type":393,"tag":441,"props":7546,"children":7548},{"className":7547},[],[7549],{"type":398,"value":7550},".str.replace('[^a-zA-Z0-9\\s]', '', regex=True)",{"type":393,"tag":435,"props":7552,"children":7553},{},[7554,7559],{"type":393,"tag":417,"props":7555,"children":7556},{},[7557],{"type":398,"value":7558},"Phone numbers",{"type":398,"value":7560},": Remove non-digits, reformat",{"type":393,"tag":435,"props":7562,"children":7563},{},[7564,7569,7570],{"type":393,"tag":417,"props":7565,"children":7566},{},[7567],{"type":398,"value":7568},"Multiple punctuation",{"type":398,"value":4113},{"type":393,"tag":441,"props":7571,"children":7573},{"className":7572},[],[7574],{"type":398,"value":7575},".str.replace(r'[!]{2,}', '!', regex=True)",{"type":393,"tag":401,"props":7577,"children":7578},{},[7579],{"type":393,"tag":417,"props":7580,"children":7581},{},[7582],{"type":398,"value":7583},"Standardization Strategies:",{"type":393,"tag":431,"props":7585,"children":7586},{},[7587,7597,7607,7622],{"type":393,"tag":435,"props":7588,"children":7589},{},[7590,7595],{"type":393,"tag":417,"props":7591,"children":7592},{},[7593],{"type":398,"value":7594},"Mapping",{"type":398,"value":7596},": Use dictionaries to standardize categories",{"type":393,"tag":435,"props":7598,"children":7599},{},[7600,7605],{"type":393,"tag":417,"props":7601,"children":7602},{},[7603],{"type":398,"value":7604},"Regex patterns",{"type":398,"value":7606},": Clean formats consistently",{"type":393,"tag":435,"props":7608,"children":7609},{},[7610,7615,7617],{"type":393,"tag":417,"props":7611,"children":7612},{},[7613],{"type":398,"value":7614},"Validation",{"type":398,"value":7616},": Check data quality with ",{"type":393,"tag":441,"props":7618,"children":7620},{"className":7619},[],[7621],{"type":398,"value":7476},{"type":393,"tag":435,"props":7623,"children":7624},{},[7625,7630],{"type":393,"tag":417,"props":7626,"children":7627},{},[7628],{"type":398,"value":7629},"Business rules",{"type":398,"value":7631},": Apply domain-specific cleaning logic",{"type":393,"tag":401,"props":7633,"children":7634},{},[7635],{"type":393,"tag":417,"props":7636,"children":7637},{},[7638],{"type":398,"value":7639},"Text Cleaning Workflow:",{"type":393,"tag":7641,"props":7642,"children":7643},"ol",{},[7644,7654,7664,7674,7684,7694],{"type":393,"tag":435,"props":7645,"children":7646},{},[7647,7652],{"type":393,"tag":417,"props":7648,"children":7649},{},[7650],{"type":398,"value":7651},"Assess",{"type":398,"value":7653},": Look at unique values and patterns",{"type":393,"tag":435,"props":7655,"children":7656},{},[7657,7662],{"type":393,"tag":417,"props":7658,"children":7659},{},[7660],{"type":398,"value":7661},"Plan",{"type":398,"value":7663},": Decide on standard formats",{"type":393,"tag":435,"props":7665,"children":7666},{},[7667,7672],{"type":393,"tag":417,"props":7668,"children":7669},{},[7670],{"type":398,"value":7671},"Clean basics",{"type":398,"value":7673},": Strip, case, remove unwanted characters",{"type":393,"tag":435,"props":7675,"children":7676},{},[7677,7682],{"type":393,"tag":417,"props":7678,"children":7679},{},[7680],{"type":398,"value":7681},"Standardize",{"type":398,"value":7683},": Apply consistent formatting rules",{"type":393,"tag":435,"props":7685,"children":7686},{},[7687,7692],{"type":393,"tag":417,"props":7688,"children":7689},{},[7690],{"type":398,"value":7691},"Validate",{"type":398,"value":7693},": Check results and handle edge cases",{"type":393,"tag":435,"props":7695,"children":7696},{},[7697,7702],{"type":393,"tag":417,"props":7698,"children":7699},{},[7700],{"type":398,"value":7701},"Document",{"type":398,"value":7703},": Record cleaning decisions for consistency",{"type":393,"tag":401,"props":7705,"children":7706},{},[7707],{"type":393,"tag":417,"props":7708,"children":7709},{},[7710],{"type":398,"value":7711},"Best Practices:",{"type":393,"tag":431,"props":7713,"children":7714},{},[7715,7720,7725,7730,7735],{"type":393,"tag":435,"props":7716,"children":7717},{},[7718],{"type":398,"value":7719},"Always work on a copy of original data",{"type":393,"tag":435,"props":7721,"children":7722},{},[7723],{"type":398,"value":7724},"Start with simple cleaning, then get specific",{"type":393,"tag":435,"props":7726,"children":7727},{},[7728],{"type":398,"value":7729},"Use regex carefully (test patterns first)",{"type":393,"tag":435,"props":7731,"children":7732},{},[7733],{"type":398,"value":7734},"Create mappings for categorical standardization",{"type":393,"tag":435,"props":7736,"children":7737},{},[7738],{"type":398,"value":7739},"Validate results to catch edge cases",{"type":393,"tag":401,"props":7741,"children":7742},{},[7743,7748],{"type":393,"tag":417,"props":7744,"children":7745},{},[7746],{"type":398,"value":7747},"Remember:",{"type":398,"value":7749}," Clean text data makes everything else easier - grouping, searching, and reporting all work better with consistent text!",{"type":393,"tag":587,"props":7751,"children":7753},{"id":7752},"practice-challenge",[7754],{"type":398,"value":7755},"🎮 Practice Challenge",{"type":393,"tag":401,"props":7757,"children":7758},{},[7759],{"type":398,"value":7760},"Apply comprehensive text cleaning to a realistic business scenario:",{"type":393,"tag":599,"props":7762,"children":7763},{},[7764],{"type":393,"tag":603,"props":7765,"children":7767},{"className":605,"code":7766,"language":607,"meta":6,"style":6},"import pandas as pd\n\n# Employee directory export (typical HR system data)\nemployee_directory = pd.DataFrame({\n    'emp_id': [1001, 1002, 1003, 1004, 1005],\n    'full_name': ['  ALICE M. JOHNSON  ', 'bob smith jr', 'charlie o\\'brien-brown', \n                  'diana lee jones', '  EVE MARIE DAVIS-SMITH  '],\n    'email': ['Alice.Johnson@COMPANY.COM', 'bob.smith@company.com', \n              'CHARLIE.OBRIEN@COMPANY.COM', 'diana.jones@Company.com', \n              'eve.davis@COMPANY.COM'],\n    'department': ['Human Resources', 'information technology', 'SALES & MARKETING', \n                   'human resources', 'Information Technology'],\n    'phone': ['(555) 123-4567', '555.987.6543', '5551234567', \n              '(555) 999-8888', '555-444-3333'],\n    'job_title': ['HR Manager', 'sr. software engineer', 'SALES REPRESENTATIVE', \n                  'hr specialist', 'Senior Software Engineer']\n})\n\nprint(\"🎮 Employee Directory Cleaning Challenge:\")\nprint(employee_directory)\nprint()\nprint(\"Mission: Clean and standardize all text fields for professional directory\")\nprint()\n\n# Solution\nprint(\"🧽 Comprehensive Cleaning Solution:\")\ncleaned_directory = employee_directory.copy()\n\n# Clean names\ncleaned_directory['full_name'] = (cleaned_directory['full_name']\n                                  .str.strip()\n                                  .str.title()\n                                  .str.replace(r'\\s+', ' ', regex=True))\n\n# Clean emails\ncleaned_directory['email'] = cleaned_directory['email'].str.lower()\n\n# Standardize departments\ndept_mapping = {\n    'human resources': 'Human Resources',\n    'information technology': 'Information Technology', \n    'sales & marketing': 'Sales & Marketing'\n}\ncleaned_directory['department'] = (cleaned_directory['department']\n                                   .str.lower()\n                                   .map(dept_mapping))\n\n# Standardize phone numbers\ncleaned_directory['phone'] = (cleaned_directory['phone']\n                              .str.replace('[^0-9]', '', regex=True)\n                              .str.replace(r'(\\d{3})(\\d{3})(\\d{4})', r'(\\1) \\2-\\3', regex=True))\n\n# Clean job titles\ncleaned_directory['job_title'] = (cleaned_directory['job_title']\n                                  .str.replace(r'\\bsr\\.\\b', 'Senior', regex=True, flags=re.IGNORECASE)\n                                  .str.replace(r'\\bhr\\b', 'HR', regex=True, flags=re.IGNORECASE)\n                                  .str.title())\n\nprint(\"✅ Professional Employee Directory:\")\nprint(cleaned_directory)\nprint()\nprint(\"🎯 Achievements:\")\nprint(\"- Consistent name formatting\")\nprint(\"- Standardized email format\")\nprint(\"- Unified department names\")\nprint(\"- Professional phone number format\")\nprint(\"- Consistent job title formatting\")\nprint(\"- Ready for company directory!\")\n",[7768],{"type":393,"tag":441,"props":7769,"children":7770},{"__ignoreMap":6},[7771,7790,7797,7805,7821,7878,7925,7946,7974,7995,8007,8046,8067,8103,8124,8163,8184,8191,8198,8218,8230,8241,8261,8272,8279,8287,8307,8324,8331,8339,8372,8379,8387,8442,8449,8457,8489,8496,8504,8520,8540,8560,8577,8584,8616,8624,8632,8639,8647,8678,8717,8824,8831,8839,8871,8959,9040,9048,9055,9075,9087,9098,9118,9138,9158,9178,9198,9219],{"type":393,"tag":613,"props":7772,"children":7773},{"class":615,"line":11},[7774,7778,7782,7786],{"type":393,"tag":613,"props":7775,"children":7776},{"style":619},[7777],{"type":398,"value":622},{"type":393,"tag":613,"props":7779,"children":7780},{"style":625},[7781],{"type":398,"value":628},{"type":393,"tag":613,"props":7783,"children":7784},{"style":619},[7785],{"type":398,"value":633},{"type":393,"tag":613,"props":7787,"children":7788},{"style":625},[7789],{"type":398,"value":638},{"type":393,"tag":613,"props":7791,"children":7792},{"class":615,"line":27},[7793],{"type":393,"tag":613,"props":7794,"children":7795},{"emptyLinePlaceholder":12},[7796],{"type":398,"value":646},{"type":393,"tag":613,"props":7798,"children":7799},{"class":615,"line":36},[7800],{"type":393,"tag":613,"props":7801,"children":7802},{"style":652},[7803],{"type":398,"value":7804},"# Employee directory export (typical HR system data)\n",{"type":393,"tag":613,"props":7806,"children":7807},{"class":615,"line":45},[7808,7813,7817],{"type":393,"tag":613,"props":7809,"children":7810},{"style":625},[7811],{"type":398,"value":7812},"employee_directory ",{"type":393,"tag":613,"props":7814,"children":7815},{"style":619},[7816],{"type":398,"value":668},{"type":393,"tag":613,"props":7818,"children":7819},{"style":625},[7820],{"type":398,"value":673},{"type":393,"tag":613,"props":7822,"children":7823},{"class":615,"line":54},[7824,7829,7833,7838,7842,7847,7851,7856,7860,7865,7869,7874],{"type":393,"tag":613,"props":7825,"children":7826},{"style":679},[7827],{"type":398,"value":7828},"    'emp_id'",{"type":393,"tag":613,"props":7830,"children":7831},{"style":625},[7832],{"type":398,"value":687},{"type":393,"tag":613,"props":7834,"children":7835},{"style":690},[7836],{"type":398,"value":7837},"1001",{"type":393,"tag":613,"props":7839,"children":7840},{"style":625},[7841],{"type":398,"value":467},{"type":393,"tag":613,"props":7843,"children":7844},{"style":690},[7845],{"type":398,"value":7846},"1002",{"type":393,"tag":613,"props":7848,"children":7849},{"style":625},[7850],{"type":398,"value":467},{"type":393,"tag":613,"props":7852,"children":7853},{"style":690},[7854],{"type":398,"value":7855},"1003",{"type":393,"tag":613,"props":7857,"children":7858},{"style":625},[7859],{"type":398,"value":467},{"type":393,"tag":613,"props":7861,"children":7862},{"style":690},[7863],{"type":398,"value":7864},"1004",{"type":393,"tag":613,"props":7866,"children":7867},{"style":625},[7868],{"type":398,"value":467},{"type":393,"tag":613,"props":7870,"children":7871},{"style":690},[7872],{"type":398,"value":7873},"1005",{"type":393,"tag":613,"props":7875,"children":7876},{"style":625},[7877],{"type":398,"value":734},{"type":393,"tag":613,"props":7879,"children":7880},{"class":615,"line":63},[7881,7885,7889,7894,7898,7903,7907,7912,7916,7921],{"type":393,"tag":613,"props":7882,"children":7883},{"style":679},[7884],{"type":398,"value":4922},{"type":393,"tag":613,"props":7886,"children":7887},{"style":625},[7888],{"type":398,"value":687},{"type":393,"tag":613,"props":7890,"children":7891},{"style":679},[7892],{"type":398,"value":7893},"'  ALICE M. JOHNSON  '",{"type":393,"tag":613,"props":7895,"children":7896},{"style":625},[7897],{"type":398,"value":467},{"type":393,"tag":613,"props":7899,"children":7900},{"style":679},[7901],{"type":398,"value":7902},"'bob smith jr'",{"type":393,"tag":613,"props":7904,"children":7905},{"style":625},[7906],{"type":398,"value":467},{"type":393,"tag":613,"props":7908,"children":7909},{"style":679},[7910],{"type":398,"value":7911},"'charlie o",{"type":393,"tag":613,"props":7913,"children":7914},{"style":690},[7915],{"type":398,"value":6188},{"type":393,"tag":613,"props":7917,"children":7918},{"style":679},[7919],{"type":398,"value":7920},"brien-brown'",{"type":393,"tag":613,"props":7922,"children":7923},{"style":625},[7924],{"type":398,"value":1573},{"type":393,"tag":613,"props":7926,"children":7927},{"class":615,"line":72},[7928,7933,7937,7942],{"type":393,"tag":613,"props":7929,"children":7930},{"style":679},[7931],{"type":398,"value":7932},"                  'diana lee jones'",{"type":393,"tag":613,"props":7934,"children":7935},{"style":625},[7936],{"type":398,"value":467},{"type":393,"tag":613,"props":7938,"children":7939},{"style":679},[7940],{"type":398,"value":7941},"'  EVE MARIE DAVIS-SMITH  '",{"type":393,"tag":613,"props":7943,"children":7944},{"style":625},[7945],{"type":398,"value":734},{"type":393,"tag":613,"props":7947,"children":7948},{"class":615,"line":83},[7949,7953,7957,7962,7966,7970],{"type":393,"tag":613,"props":7950,"children":7951},{"style":679},[7952],{"type":398,"value":799},{"type":393,"tag":613,"props":7954,"children":7955},{"style":625},[7956],{"type":398,"value":687},{"type":393,"tag":613,"props":7958,"children":7959},{"style":679},[7960],{"type":398,"value":7961},"'Alice.Johnson@COMPANY.COM'",{"type":393,"tag":613,"props":7963,"children":7964},{"style":625},[7965],{"type":398,"value":467},{"type":393,"tag":613,"props":7967,"children":7968},{"style":679},[7969],{"type":398,"value":2852},{"type":393,"tag":613,"props":7971,"children":7972},{"style":625},[7973],{"type":398,"value":1573},{"type":393,"tag":613,"props":7975,"children":7976},{"class":615,"line":92},[7977,7982,7986,7991],{"type":393,"tag":613,"props":7978,"children":7979},{"style":679},[7980],{"type":398,"value":7981},"              'CHARLIE.OBRIEN@COMPANY.COM'",{"type":393,"tag":613,"props":7983,"children":7984},{"style":625},[7985],{"type":398,"value":467},{"type":393,"tag":613,"props":7987,"children":7988},{"style":679},[7989],{"type":398,"value":7990},"'diana.jones@Company.com'",{"type":393,"tag":613,"props":7992,"children":7993},{"style":625},[7994],{"type":398,"value":1573},{"type":393,"tag":613,"props":7996,"children":7997},{"class":615,"line":101},[7998,8003],{"type":393,"tag":613,"props":7999,"children":8000},{"style":679},[8001],{"type":398,"value":8002},"              'eve.davis@COMPANY.COM'",{"type":393,"tag":613,"props":8004,"children":8005},{"style":625},[8006],{"type":398,"value":734},{"type":393,"tag":613,"props":8008,"children":8009},{"class":615,"line":110},[8010,8015,8019,8024,8028,8033,8037,8042],{"type":393,"tag":613,"props":8011,"children":8012},{"style":679},[8013],{"type":398,"value":8014},"    'department'",{"type":393,"tag":613,"props":8016,"children":8017},{"style":625},[8018],{"type":398,"value":687},{"type":393,"tag":613,"props":8020,"children":8021},{"style":679},[8022],{"type":398,"value":8023},"'Human Resources'",{"type":393,"tag":613,"props":8025,"children":8026},{"style":625},[8027],{"type":398,"value":467},{"type":393,"tag":613,"props":8029,"children":8030},{"style":679},[8031],{"type":398,"value":8032},"'information technology'",{"type":393,"tag":613,"props":8034,"children":8035},{"style":625},[8036],{"type":398,"value":467},{"type":393,"tag":613,"props":8038,"children":8039},{"style":679},[8040],{"type":398,"value":8041},"'SALES & MARKETING'",{"type":393,"tag":613,"props":8043,"children":8044},{"style":625},[8045],{"type":398,"value":1573},{"type":393,"tag":613,"props":8047,"children":8048},{"class":615,"line":121},[8049,8054,8058,8063],{"type":393,"tag":613,"props":8050,"children":8051},{"style":679},[8052],{"type":398,"value":8053},"                   'human resources'",{"type":393,"tag":613,"props":8055,"children":8056},{"style":625},[8057],{"type":398,"value":467},{"type":393,"tag":613,"props":8059,"children":8060},{"style":679},[8061],{"type":398,"value":8062},"'Information Technology'",{"type":393,"tag":613,"props":8064,"children":8065},{"style":625},[8066],{"type":398,"value":734},{"type":393,"tag":613,"props":8068,"children":8069},{"class":615,"line":130},[8070,8074,8078,8082,8086,8091,8095,8099],{"type":393,"tag":613,"props":8071,"children":8072},{"style":679},[8073],{"type":398,"value":2796},{"type":393,"tag":613,"props":8075,"children":8076},{"style":625},[8077],{"type":398,"value":687},{"type":393,"tag":613,"props":8079,"children":8080},{"style":679},[8081],{"type":398,"value":2805},{"type":393,"tag":613,"props":8083,"children":8084},{"style":625},[8085],{"type":398,"value":467},{"type":393,"tag":613,"props":8087,"children":8088},{"style":679},[8089],{"type":398,"value":8090},"'555.987.6543'",{"type":393,"tag":613,"props":8092,"children":8093},{"style":625},[8094],{"type":398,"value":467},{"type":393,"tag":613,"props":8096,"children":8097},{"style":679},[8098],{"type":398,"value":2823},{"type":393,"tag":613,"props":8100,"children":8101},{"style":625},[8102],{"type":398,"value":1573},{"type":393,"tag":613,"props":8104,"children":8105},{"class":615,"line":139},[8106,8111,8115,8120],{"type":393,"tag":613,"props":8107,"children":8108},{"style":679},[8109],{"type":398,"value":8110},"              '(555) 999-8888'",{"type":393,"tag":613,"props":8112,"children":8113},{"style":625},[8114],{"type":398,"value":467},{"type":393,"tag":613,"props":8116,"children":8117},{"style":679},[8118],{"type":398,"value":8119},"'555-444-3333'",{"type":393,"tag":613,"props":8121,"children":8122},{"style":625},[8123],{"type":398,"value":734},{"type":393,"tag":613,"props":8125,"children":8126},{"class":615,"line":148},[8127,8132,8136,8141,8145,8150,8154,8159],{"type":393,"tag":613,"props":8128,"children":8129},{"style":679},[8130],{"type":398,"value":8131},"    'job_title'",{"type":393,"tag":613,"props":8133,"children":8134},{"style":625},[8135],{"type":398,"value":687},{"type":393,"tag":613,"props":8137,"children":8138},{"style":679},[8139],{"type":398,"value":8140},"'HR Manager'",{"type":393,"tag":613,"props":8142,"children":8143},{"style":625},[8144],{"type":398,"value":467},{"type":393,"tag":613,"props":8146,"children":8147},{"style":679},[8148],{"type":398,"value":8149},"'sr. software engineer'",{"type":393,"tag":613,"props":8151,"children":8152},{"style":625},[8153],{"type":398,"value":467},{"type":393,"tag":613,"props":8155,"children":8156},{"style":679},[8157],{"type":398,"value":8158},"'SALES REPRESENTATIVE'",{"type":393,"tag":613,"props":8160,"children":8161},{"style":625},[8162],{"type":398,"value":1573},{"type":393,"tag":613,"props":8164,"children":8165},{"class":615,"line":159},[8166,8171,8175,8180],{"type":393,"tag":613,"props":8167,"children":8168},{"style":679},[8169],{"type":398,"value":8170},"                  'hr specialist'",{"type":393,"tag":613,"props":8172,"children":8173},{"style":625},[8174],{"type":398,"value":467},{"type":393,"tag":613,"props":8176,"children":8177},{"style":679},[8178],{"type":398,"value":8179},"'Senior Software Engineer'",{"type":393,"tag":613,"props":8181,"children":8182},{"style":625},[8183],{"type":398,"value":906},{"type":393,"tag":613,"props":8185,"children":8186},{"class":615,"line":168},[8187],{"type":393,"tag":613,"props":8188,"children":8189},{"style":625},[8190],{"type":398,"value":914},{"type":393,"tag":613,"props":8192,"children":8193},{"class":615,"line":177},[8194],{"type":393,"tag":613,"props":8195,"children":8196},{"emptyLinePlaceholder":12},[8197],{"type":398,"value":646},{"type":393,"tag":613,"props":8199,"children":8200},{"class":615,"line":186},[8201,8205,8209,8214],{"type":393,"tag":613,"props":8202,"children":8203},{"style":690},[8204],{"type":398,"value":929},{"type":393,"tag":613,"props":8206,"children":8207},{"style":625},[8208],{"type":398,"value":934},{"type":393,"tag":613,"props":8210,"children":8211},{"style":679},[8212],{"type":398,"value":8213},"\"🎮 Employee Directory Cleaning Challenge:\"",{"type":393,"tag":613,"props":8215,"children":8216},{"style":625},[8217],{"type":398,"value":944},{"type":393,"tag":613,"props":8219,"children":8220},{"class":615,"line":197},[8221,8225],{"type":393,"tag":613,"props":8222,"children":8223},{"style":690},[8224],{"type":398,"value":929},{"type":393,"tag":613,"props":8226,"children":8227},{"style":625},[8228],{"type":398,"value":8229},"(employee_directory)\n",{"type":393,"tag":613,"props":8231,"children":8232},{"class":615,"line":206},[8233,8237],{"type":393,"tag":613,"props":8234,"children":8235},{"style":690},[8236],{"type":398,"value":929},{"type":393,"tag":613,"props":8238,"children":8239},{"style":625},[8240],{"type":398,"value":968},{"type":393,"tag":613,"props":8242,"children":8243},{"class":615,"line":215},[8244,8248,8252,8257],{"type":393,"tag":613,"props":8245,"children":8246},{"style":690},[8247],{"type":398,"value":929},{"type":393,"tag":613,"props":8249,"children":8250},{"style":625},[8251],{"type":398,"value":934},{"type":393,"tag":613,"props":8253,"children":8254},{"style":679},[8255],{"type":398,"value":8256},"\"Mission: Clean and standardize all text fields for professional directory\"",{"type":393,"tag":613,"props":8258,"children":8259},{"style":625},[8260],{"type":398,"value":944},{"type":393,"tag":613,"props":8262,"children":8263},{"class":615,"line":224},[8264,8268],{"type":393,"tag":613,"props":8265,"children":8266},{"style":690},[8267],{"type":398,"value":929},{"type":393,"tag":613,"props":8269,"children":8270},{"style":625},[8271],{"type":398,"value":968},{"type":393,"tag":613,"props":8273,"children":8274},{"class":615,"line":233},[8275],{"type":393,"tag":613,"props":8276,"children":8277},{"emptyLinePlaceholder":12},[8278],{"type":398,"value":646},{"type":393,"tag":613,"props":8280,"children":8281},{"class":615,"line":244},[8282],{"type":393,"tag":613,"props":8283,"children":8284},{"style":652},[8285],{"type":398,"value":8286},"# Solution\n",{"type":393,"tag":613,"props":8288,"children":8289},{"class":615,"line":253},[8290,8294,8298,8303],{"type":393,"tag":613,"props":8291,"children":8292},{"style":690},[8293],{"type":398,"value":929},{"type":393,"tag":613,"props":8295,"children":8296},{"style":625},[8297],{"type":398,"value":934},{"type":393,"tag":613,"props":8299,"children":8300},{"style":679},[8301],{"type":398,"value":8302},"\"🧽 Comprehensive Cleaning Solution:\"",{"type":393,"tag":613,"props":8304,"children":8305},{"style":625},[8306],{"type":398,"value":944},{"type":393,"tag":613,"props":8308,"children":8309},{"class":615,"line":262},[8310,8315,8319],{"type":393,"tag":613,"props":8311,"children":8312},{"style":625},[8313],{"type":398,"value":8314},"cleaned_directory ",{"type":393,"tag":613,"props":8316,"children":8317},{"style":619},[8318],{"type":398,"value":668},{"type":393,"tag":613,"props":8320,"children":8321},{"style":625},[8322],{"type":398,"value":8323}," employee_directory.copy()\n",{"type":393,"tag":613,"props":8325,"children":8326},{"class":615,"line":271},[8327],{"type":393,"tag":613,"props":8328,"children":8329},{"emptyLinePlaceholder":12},[8330],{"type":398,"value":646},{"type":393,"tag":613,"props":8332,"children":8333},{"class":615,"line":281},[8334],{"type":393,"tag":613,"props":8335,"children":8336},{"style":652},[8337],{"type":398,"value":8338},"# Clean names\n",{"type":393,"tag":613,"props":8340,"children":8341},{"class":615,"line":290},[8342,8347,8351,8355,8359,8364,8368],{"type":393,"tag":613,"props":8343,"children":8344},{"style":625},[8345],{"type":398,"value":8346},"cleaned_directory[",{"type":393,"tag":613,"props":8348,"children":8349},{"style":679},[8350],{"type":398,"value":5520},{"type":393,"tag":613,"props":8352,"children":8353},{"style":625},[8354],{"type":398,"value":1051},{"type":393,"tag":613,"props":8356,"children":8357},{"style":619},[8358],{"type":398,"value":668},{"type":393,"tag":613,"props":8360,"children":8361},{"style":625},[8362],{"type":398,"value":8363}," (cleaned_directory[",{"type":393,"tag":613,"props":8365,"children":8366},{"style":679},[8367],{"type":398,"value":5520},{"type":393,"tag":613,"props":8369,"children":8370},{"style":625},[8371],{"type":398,"value":906},{"type":393,"tag":613,"props":8373,"children":8374},{"class":615,"line":299},[8375],{"type":393,"tag":613,"props":8376,"children":8377},{"style":625},[8378],{"type":398,"value":1938},{"type":393,"tag":613,"props":8380,"children":8381},{"class":615,"line":308},[8382],{"type":393,"tag":613,"props":8383,"children":8384},{"style":625},[8385],{"type":398,"value":8386},"                                  .str.title()\n",{"type":393,"tag":613,"props":8388,"children":8389},{"class":615,"line":318},[8390,8394,8398,8402,8406,8410,8414,8418,8422,8426,8430,8434,8438],{"type":393,"tag":613,"props":8391,"children":8392},{"style":625},[8393],{"type":398,"value":1946},{"type":393,"tag":613,"props":8395,"children":8396},{"style":619},[8397],{"type":398,"value":3122},{"type":393,"tag":613,"props":8399,"children":8400},{"style":679},[8401],{"type":398,"value":3127},{"type":393,"tag":613,"props":8403,"children":8404},{"style":690},[8405],{"type":398,"value":6619},{"type":393,"tag":613,"props":8407,"children":8408},{"style":619},[8409],{"type":398,"value":5205},{"type":393,"tag":613,"props":8411,"children":8412},{"style":679},[8413],{"type":398,"value":3127},{"type":393,"tag":613,"props":8415,"children":8416},{"style":625},[8417],{"type":398,"value":467},{"type":393,"tag":613,"props":8419,"children":8420},{"style":679},[8421],{"type":398,"value":2004},{"type":393,"tag":613,"props":8423,"children":8424},{"style":625},[8425],{"type":398,"value":467},{"type":393,"tag":613,"props":8427,"children":8428},{"style":1967},[8429],{"type":398,"value":1970},{"type":393,"tag":613,"props":8431,"children":8432},{"style":619},[8433],{"type":398,"value":668},{"type":393,"tag":613,"props":8435,"children":8436},{"style":690},[8437],{"type":398,"value":1979},{"type":393,"tag":613,"props":8439,"children":8440},{"style":625},[8441],{"type":398,"value":2025},{"type":393,"tag":613,"props":8443,"children":8444},{"class":615,"line":327},[8445],{"type":393,"tag":613,"props":8446,"children":8447},{"emptyLinePlaceholder":12},[8448],{"type":398,"value":646},{"type":393,"tag":613,"props":8450,"children":8451},{"class":615,"line":336},[8452],{"type":393,"tag":613,"props":8453,"children":8454},{"style":652},[8455],{"type":398,"value":8456},"# Clean emails\n",{"type":393,"tag":613,"props":8458,"children":8459},{"class":615,"line":346},[8460,8464,8468,8472,8476,8481,8485],{"type":393,"tag":613,"props":8461,"children":8462},{"style":625},[8463],{"type":398,"value":8346},{"type":393,"tag":613,"props":8465,"children":8466},{"style":679},[8467],{"type":398,"value":1218},{"type":393,"tag":613,"props":8469,"children":8470},{"style":625},[8471],{"type":398,"value":1051},{"type":393,"tag":613,"props":8473,"children":8474},{"style":619},[8475],{"type":398,"value":668},{"type":393,"tag":613,"props":8477,"children":8478},{"style":625},[8479],{"type":398,"value":8480}," cleaned_directory[",{"type":393,"tag":613,"props":8482,"children":8483},{"style":679},[8484],{"type":398,"value":1218},{"type":393,"tag":613,"props":8486,"children":8487},{"style":625},[8488],{"type":398,"value":1223},{"type":393,"tag":613,"props":8490,"children":8491},{"class":615,"line":355},[8492],{"type":393,"tag":613,"props":8493,"children":8494},{"emptyLinePlaceholder":12},[8495],{"type":398,"value":646},{"type":393,"tag":613,"props":8497,"children":8498},{"class":615,"line":364},[8499],{"type":393,"tag":613,"props":8500,"children":8501},{"style":652},[8502],{"type":398,"value":8503},"# Standardize departments\n",{"type":393,"tag":613,"props":8505,"children":8506},{"class":615,"line":374},[8507,8512,8516],{"type":393,"tag":613,"props":8508,"children":8509},{"style":625},[8510],{"type":398,"value":8511},"dept_mapping ",{"type":393,"tag":613,"props":8513,"children":8514},{"style":619},[8515],{"type":398,"value":668},{"type":393,"tag":613,"props":8517,"children":8518},{"style":625},[8519],{"type":398,"value":4100},{"type":393,"tag":613,"props":8521,"children":8522},{"class":615,"line":383},[8523,8528,8532,8536],{"type":393,"tag":613,"props":8524,"children":8525},{"style":679},[8526],{"type":398,"value":8527},"    'human resources'",{"type":393,"tag":613,"props":8529,"children":8530},{"style":625},[8531],{"type":398,"value":4113},{"type":393,"tag":613,"props":8533,"children":8534},{"style":679},[8535],{"type":398,"value":8023},{"type":393,"tag":613,"props":8537,"children":8538},{"style":625},[8539],{"type":398,"value":4122},{"type":393,"tag":613,"props":8541,"children":8542},{"class":615,"line":2315},[8543,8548,8552,8556],{"type":393,"tag":613,"props":8544,"children":8545},{"style":679},[8546],{"type":398,"value":8547},"    'information technology'",{"type":393,"tag":613,"props":8549,"children":8550},{"style":625},[8551],{"type":398,"value":4113},{"type":393,"tag":613,"props":8553,"children":8554},{"style":679},[8555],{"type":398,"value":8062},{"type":393,"tag":613,"props":8557,"children":8558},{"style":625},[8559],{"type":398,"value":1573},{"type":393,"tag":613,"props":8561,"children":8562},{"class":615,"line":2357},[8563,8568,8572],{"type":393,"tag":613,"props":8564,"children":8565},{"style":679},[8566],{"type":398,"value":8567},"    'sales & marketing'",{"type":393,"tag":613,"props":8569,"children":8570},{"style":625},[8571],{"type":398,"value":4113},{"type":393,"tag":613,"props":8573,"children":8574},{"style":679},[8575],{"type":398,"value":8576},"'Sales & Marketing'\n",{"type":393,"tag":613,"props":8578,"children":8579},{"class":615,"line":2398},[8580],{"type":393,"tag":613,"props":8581,"children":8582},{"style":625},[8583],{"type":398,"value":4208},{"type":393,"tag":613,"props":8585,"children":8586},{"class":615,"line":2439},[8587,8591,8596,8600,8604,8608,8612],{"type":393,"tag":613,"props":8588,"children":8589},{"style":625},[8590],{"type":398,"value":8346},{"type":393,"tag":613,"props":8592,"children":8593},{"style":679},[8594],{"type":398,"value":8595},"'department'",{"type":393,"tag":613,"props":8597,"children":8598},{"style":625},[8599],{"type":398,"value":1051},{"type":393,"tag":613,"props":8601,"children":8602},{"style":619},[8603],{"type":398,"value":668},{"type":393,"tag":613,"props":8605,"children":8606},{"style":625},[8607],{"type":398,"value":8363},{"type":393,"tag":613,"props":8609,"children":8610},{"style":679},[8611],{"type":398,"value":8595},{"type":393,"tag":613,"props":8613,"children":8614},{"style":625},[8615],{"type":398,"value":906},{"type":393,"tag":613,"props":8617,"children":8618},{"class":615,"line":2448},[8619],{"type":393,"tag":613,"props":8620,"children":8621},{"style":625},[8622],{"type":398,"value":8623},"                                   .str.lower()\n",{"type":393,"tag":613,"props":8625,"children":8626},{"class":615,"line":2457},[8627],{"type":393,"tag":613,"props":8628,"children":8629},{"style":625},[8630],{"type":398,"value":8631},"                                   .map(dept_mapping))\n",{"type":393,"tag":613,"props":8633,"children":8634},{"class":615,"line":2478},[8635],{"type":393,"tag":613,"props":8636,"children":8637},{"emptyLinePlaceholder":12},[8638],{"type":398,"value":646},{"type":393,"tag":613,"props":8640,"children":8641},{"class":615,"line":2506},[8642],{"type":393,"tag":613,"props":8643,"children":8644},{"style":652},[8645],{"type":398,"value":8646},"# Standardize phone numbers\n",{"type":393,"tag":613,"props":8648,"children":8649},{"class":615,"line":2518},[8650,8654,8658,8662,8666,8670,8674],{"type":393,"tag":613,"props":8651,"children":8652},{"style":625},[8653],{"type":398,"value":8346},{"type":393,"tag":613,"props":8655,"children":8656},{"style":679},[8657],{"type":398,"value":3060},{"type":393,"tag":613,"props":8659,"children":8660},{"style":625},[8661],{"type":398,"value":1051},{"type":393,"tag":613,"props":8663,"children":8664},{"style":619},[8665],{"type":398,"value":668},{"type":393,"tag":613,"props":8667,"children":8668},{"style":625},[8669],{"type":398,"value":8363},{"type":393,"tag":613,"props":8671,"children":8672},{"style":679},[8673],{"type":398,"value":3060},{"type":393,"tag":613,"props":8675,"children":8676},{"style":625},[8677],{"type":398,"value":906},{"type":393,"tag":613,"props":8679,"children":8680},{"class":615,"line":2526},[8681,8685,8689,8693,8697,8701,8705,8709,8713],{"type":393,"tag":613,"props":8682,"children":8683},{"style":625},[8684],{"type":398,"value":2152},{"type":393,"tag":613,"props":8686,"children":8687},{"style":679},[8688],{"type":398,"value":3076},{"type":393,"tag":613,"props":8690,"children":8691},{"style":625},[8692],{"type":398,"value":467},{"type":393,"tag":613,"props":8694,"children":8695},{"style":679},[8696],{"type":398,"value":1960},{"type":393,"tag":613,"props":8698,"children":8699},{"style":625},[8700],{"type":398,"value":467},{"type":393,"tag":613,"props":8702,"children":8703},{"style":1967},[8704],{"type":398,"value":1970},{"type":393,"tag":613,"props":8706,"children":8707},{"style":619},[8708],{"type":398,"value":668},{"type":393,"tag":613,"props":8710,"children":8711},{"style":690},[8712],{"type":398,"value":1979},{"type":393,"tag":613,"props":8714,"children":8715},{"style":625},[8716],{"type":398,"value":944},{"type":393,"tag":613,"props":8718,"children":8719},{"class":615,"line":2547},[8720,8724,8728,8732,8736,8740,8744,8748,8752,8756,8760,8764,8768,8772,8776,8780,8784,8788,8792,8796,8800,8804,8808,8812,8816,8820],{"type":393,"tag":613,"props":8721,"children":8722},{"style":625},[8723],{"type":398,"value":2152},{"type":393,"tag":613,"props":8725,"children":8726},{"style":619},[8727],{"type":398,"value":3122},{"type":393,"tag":613,"props":8729,"children":8730},{"style":679},[8731],{"type":398,"value":3127},{"type":393,"tag":613,"props":8733,"children":8734},{"style":690},[8735],{"type":398,"value":3132},{"type":393,"tag":613,"props":8737,"children":8738},{"style":619},[8739],{"type":398,"value":3137},{"type":393,"tag":613,"props":8741,"children":8742},{"style":690},[8743],{"type":398,"value":3142},{"type":393,"tag":613,"props":8745,"children":8746},{"style":619},[8747],{"type":398,"value":3137},{"type":393,"tag":613,"props":8749,"children":8750},{"style":690},[8751],{"type":398,"value":3142},{"type":393,"tag":613,"props":8753,"children":8754},{"style":619},[8755],{"type":398,"value":3155},{"type":393,"tag":613,"props":8757,"children":8758},{"style":690},[8759],{"type":398,"value":3160},{"type":393,"tag":613,"props":8761,"children":8762},{"style":679},[8763],{"type":398,"value":3127},{"type":393,"tag":613,"props":8765,"children":8766},{"style":625},[8767],{"type":398,"value":467},{"type":393,"tag":613,"props":8769,"children":8770},{"style":619},[8771],{"type":398,"value":3122},{"type":393,"tag":613,"props":8773,"children":8774},{"style":679},[8775],{"type":398,"value":3127},{"type":393,"tag":613,"props":8777,"children":8778},{"style":690},[8779],{"type":398,"value":934},{"type":393,"tag":613,"props":8781,"children":8782},{"style":3183},[8783],{"type":398,"value":3186},{"type":393,"tag":613,"props":8785,"children":8786},{"style":690},[8787],{"type":398,"value":3160},{"type":393,"tag":613,"props":8789,"children":8790},{"style":3183},[8791],{"type":398,"value":3195},{"type":393,"tag":613,"props":8793,"children":8794},{"style":3198},[8795],{"type":398,"value":3201},{"type":393,"tag":613,"props":8797,"children":8798},{"style":3183},[8799],{"type":398,"value":3206},{"type":393,"tag":613,"props":8801,"children":8802},{"style":679},[8803],{"type":398,"value":3127},{"type":393,"tag":613,"props":8805,"children":8806},{"style":625},[8807],{"type":398,"value":467},{"type":393,"tag":613,"props":8809,"children":8810},{"style":1967},[8811],{"type":398,"value":1970},{"type":393,"tag":613,"props":8813,"children":8814},{"style":619},[8815],{"type":398,"value":668},{"type":393,"tag":613,"props":8817,"children":8818},{"style":690},[8819],{"type":398,"value":1979},{"type":393,"tag":613,"props":8821,"children":8822},{"style":625},[8823],{"type":398,"value":2025},{"type":393,"tag":613,"props":8825,"children":8826},{"class":615,"line":2581},[8827],{"type":393,"tag":613,"props":8828,"children":8829},{"emptyLinePlaceholder":12},[8830],{"type":398,"value":646},{"type":393,"tag":613,"props":8832,"children":8833},{"class":615,"line":2624},[8834],{"type":393,"tag":613,"props":8835,"children":8836},{"style":652},[8837],{"type":398,"value":8838},"# Clean job titles\n",{"type":393,"tag":613,"props":8840,"children":8841},{"class":615,"line":2633},[8842,8846,8851,8855,8859,8863,8867],{"type":393,"tag":613,"props":8843,"children":8844},{"style":625},[8845],{"type":398,"value":8346},{"type":393,"tag":613,"props":8847,"children":8848},{"style":679},[8849],{"type":398,"value":8850},"'job_title'",{"type":393,"tag":613,"props":8852,"children":8853},{"style":625},[8854],{"type":398,"value":1051},{"type":393,"tag":613,"props":8856,"children":8857},{"style":619},[8858],{"type":398,"value":668},{"type":393,"tag":613,"props":8860,"children":8861},{"style":625},[8862],{"type":398,"value":8363},{"type":393,"tag":613,"props":8864,"children":8865},{"style":679},[8866],{"type":398,"value":8850},{"type":393,"tag":613,"props":8868,"children":8869},{"style":625},[8870],{"type":398,"value":906},{"type":393,"tag":613,"props":8872,"children":8873},{"class":615,"line":2654},[8874,8878,8882,8886,8890,8895,8899,8903,8907,8911,8916,8920,8924,8928,8932,8936,8941,8945,8950,8955],{"type":393,"tag":613,"props":8875,"children":8876},{"style":625},[8877],{"type":398,"value":1946},{"type":393,"tag":613,"props":8879,"children":8880},{"style":619},[8881],{"type":398,"value":3122},{"type":393,"tag":613,"props":8883,"children":8884},{"style":679},[8885],{"type":398,"value":3127},{"type":393,"tag":613,"props":8887,"children":8888},{"style":690},[8889],{"type":398,"value":6779},{"type":393,"tag":613,"props":8891,"children":8892},{"style":3198},[8893],{"type":398,"value":8894},"sr",{"type":393,"tag":613,"props":8896,"children":8897},{"style":5351},[8898],{"type":398,"value":5354},{"type":393,"tag":613,"props":8900,"children":8901},{"style":690},[8902],{"type":398,"value":6779},{"type":393,"tag":613,"props":8904,"children":8905},{"style":679},[8906],{"type":398,"value":3127},{"type":393,"tag":613,"props":8908,"children":8909},{"style":625},[8910],{"type":398,"value":467},{"type":393,"tag":613,"props":8912,"children":8913},{"style":679},[8914],{"type":398,"value":8915},"'Senior'",{"type":393,"tag":613,"props":8917,"children":8918},{"style":625},[8919],{"type":398,"value":467},{"type":393,"tag":613,"props":8921,"children":8922},{"style":1967},[8923],{"type":398,"value":1970},{"type":393,"tag":613,"props":8925,"children":8926},{"style":619},[8927],{"type":398,"value":668},{"type":393,"tag":613,"props":8929,"children":8930},{"style":690},[8931],{"type":398,"value":1979},{"type":393,"tag":613,"props":8933,"children":8934},{"style":625},[8935],{"type":398,"value":467},{"type":393,"tag":613,"props":8937,"children":8938},{"style":1967},[8939],{"type":398,"value":8940},"flags",{"type":393,"tag":613,"props":8942,"children":8943},{"style":619},[8944],{"type":398,"value":668},{"type":393,"tag":613,"props":8946,"children":8947},{"style":625},[8948],{"type":398,"value":8949},"re.",{"type":393,"tag":613,"props":8951,"children":8952},{"style":690},[8953],{"type":398,"value":8954},"IGNORECASE",{"type":393,"tag":613,"props":8956,"children":8957},{"style":625},[8958],{"type":398,"value":944},{"type":393,"tag":613,"props":8960,"children":8961},{"class":615,"line":4690},[8962,8966,8970,8974,8978,8983,8987,8991,8995,9000,9004,9008,9012,9016,9020,9024,9028,9032,9036],{"type":393,"tag":613,"props":8963,"children":8964},{"style":625},[8965],{"type":398,"value":1946},{"type":393,"tag":613,"props":8967,"children":8968},{"style":619},[8969],{"type":398,"value":3122},{"type":393,"tag":613,"props":8971,"children":8972},{"style":679},[8973],{"type":398,"value":3127},{"type":393,"tag":613,"props":8975,"children":8976},{"style":690},[8977],{"type":398,"value":6779},{"type":393,"tag":613,"props":8979,"children":8980},{"style":3198},[8981],{"type":398,"value":8982},"hr",{"type":393,"tag":613,"props":8984,"children":8985},{"style":690},[8986],{"type":398,"value":6779},{"type":393,"tag":613,"props":8988,"children":8989},{"style":679},[8990],{"type":398,"value":3127},{"type":393,"tag":613,"props":8992,"children":8993},{"style":625},[8994],{"type":398,"value":467},{"type":393,"tag":613,"props":8996,"children":8997},{"style":679},[8998],{"type":398,"value":8999},"'HR'",{"type":393,"tag":613,"props":9001,"children":9002},{"style":625},[9003],{"type":398,"value":467},{"type":393,"tag":613,"props":9005,"children":9006},{"style":1967},[9007],{"type":398,"value":1970},{"type":393,"tag":613,"props":9009,"children":9010},{"style":619},[9011],{"type":398,"value":668},{"type":393,"tag":613,"props":9013,"children":9014},{"style":690},[9015],{"type":398,"value":1979},{"type":393,"tag":613,"props":9017,"children":9018},{"style":625},[9019],{"type":398,"value":467},{"type":393,"tag":613,"props":9021,"children":9022},{"style":1967},[9023],{"type":398,"value":8940},{"type":393,"tag":613,"props":9025,"children":9026},{"style":619},[9027],{"type":398,"value":668},{"type":393,"tag":613,"props":9029,"children":9030},{"style":625},[9031],{"type":398,"value":8949},{"type":393,"tag":613,"props":9033,"children":9034},{"style":690},[9035],{"type":398,"value":8954},{"type":393,"tag":613,"props":9037,"children":9038},{"style":625},[9039],{"type":398,"value":944},{"type":393,"tag":613,"props":9041,"children":9042},{"class":615,"line":7226},[9043],{"type":393,"tag":613,"props":9044,"children":9045},{"style":625},[9046],{"type":398,"value":9047},"                                  .str.title())\n",{"type":393,"tag":613,"props":9049,"children":9050},{"class":615,"line":7247},[9051],{"type":393,"tag":613,"props":9052,"children":9053},{"emptyLinePlaceholder":12},[9054],{"type":398,"value":646},{"type":393,"tag":613,"props":9056,"children":9057},{"class":615,"line":7260},[9058,9062,9066,9071],{"type":393,"tag":613,"props":9059,"children":9060},{"style":690},[9061],{"type":398,"value":929},{"type":393,"tag":613,"props":9063,"children":9064},{"style":625},[9065],{"type":398,"value":934},{"type":393,"tag":613,"props":9067,"children":9068},{"style":679},[9069],{"type":398,"value":9070},"\"✅ Professional Employee Directory:\"",{"type":393,"tag":613,"props":9072,"children":9073},{"style":625},[9074],{"type":398,"value":944},{"type":393,"tag":613,"props":9076,"children":9077},{"class":615,"line":7272},[9078,9082],{"type":393,"tag":613,"props":9079,"children":9080},{"style":690},[9081],{"type":398,"value":929},{"type":393,"tag":613,"props":9083,"children":9084},{"style":625},[9085],{"type":398,"value":9086},"(cleaned_directory)\n",{"type":393,"tag":613,"props":9088,"children":9089},{"class":615,"line":7280},[9090,9094],{"type":393,"tag":613,"props":9091,"children":9092},{"style":690},[9093],{"type":398,"value":929},{"type":393,"tag":613,"props":9095,"children":9096},{"style":625},[9097],{"type":398,"value":968},{"type":393,"tag":613,"props":9099,"children":9100},{"class":615,"line":7301},[9101,9105,9109,9114],{"type":393,"tag":613,"props":9102,"children":9103},{"style":690},[9104],{"type":398,"value":929},{"type":393,"tag":613,"props":9106,"children":9107},{"style":625},[9108],{"type":398,"value":934},{"type":393,"tag":613,"props":9110,"children":9111},{"style":679},[9112],{"type":398,"value":9113},"\"🎯 Achievements:\"",{"type":393,"tag":613,"props":9115,"children":9116},{"style":625},[9117],{"type":398,"value":944},{"type":393,"tag":613,"props":9119,"children":9120},{"class":615,"line":7322},[9121,9125,9129,9134],{"type":393,"tag":613,"props":9122,"children":9123},{"style":690},[9124],{"type":398,"value":929},{"type":393,"tag":613,"props":9126,"children":9127},{"style":625},[9128],{"type":398,"value":934},{"type":393,"tag":613,"props":9130,"children":9131},{"style":679},[9132],{"type":398,"value":9133},"\"- Consistent name formatting\"",{"type":393,"tag":613,"props":9135,"children":9136},{"style":625},[9137],{"type":398,"value":944},{"type":393,"tag":613,"props":9139,"children":9140},{"class":615,"line":7343},[9141,9145,9149,9154],{"type":393,"tag":613,"props":9142,"children":9143},{"style":690},[9144],{"type":398,"value":929},{"type":393,"tag":613,"props":9146,"children":9147},{"style":625},[9148],{"type":398,"value":934},{"type":393,"tag":613,"props":9150,"children":9151},{"style":679},[9152],{"type":398,"value":9153},"\"- Standardized email format\"",{"type":393,"tag":613,"props":9155,"children":9156},{"style":625},[9157],{"type":398,"value":944},{"type":393,"tag":613,"props":9159,"children":9160},{"class":615,"line":7364},[9161,9165,9169,9174],{"type":393,"tag":613,"props":9162,"children":9163},{"style":690},[9164],{"type":398,"value":929},{"type":393,"tag":613,"props":9166,"children":9167},{"style":625},[9168],{"type":398,"value":934},{"type":393,"tag":613,"props":9170,"children":9171},{"style":679},[9172],{"type":398,"value":9173},"\"- Unified department names\"",{"type":393,"tag":613,"props":9175,"children":9176},{"style":625},[9177],{"type":398,"value":944},{"type":393,"tag":613,"props":9179,"children":9180},{"class":615,"line":7385},[9181,9185,9189,9194],{"type":393,"tag":613,"props":9182,"children":9183},{"style":690},[9184],{"type":398,"value":929},{"type":393,"tag":613,"props":9186,"children":9187},{"style":625},[9188],{"type":398,"value":934},{"type":393,"tag":613,"props":9190,"children":9191},{"style":679},[9192],{"type":398,"value":9193},"\"- Professional phone number format\"",{"type":393,"tag":613,"props":9195,"children":9196},{"style":625},[9197],{"type":398,"value":944},{"type":393,"tag":613,"props":9199,"children":9201},{"class":615,"line":9200},67,[9202,9206,9210,9215],{"type":393,"tag":613,"props":9203,"children":9204},{"style":690},[9205],{"type":398,"value":929},{"type":393,"tag":613,"props":9207,"children":9208},{"style":625},[9209],{"type":398,"value":934},{"type":393,"tag":613,"props":9211,"children":9212},{"style":679},[9213],{"type":398,"value":9214},"\"- Consistent job title formatting\"",{"type":393,"tag":613,"props":9216,"children":9217},{"style":625},[9218],{"type":398,"value":944},{"type":393,"tag":613,"props":9220,"children":9222},{"class":615,"line":9221},68,[9223,9227,9231,9236],{"type":393,"tag":613,"props":9224,"children":9225},{"style":690},[9226],{"type":398,"value":929},{"type":393,"tag":613,"props":9228,"children":9229},{"style":625},[9230],{"type":398,"value":934},{"type":393,"tag":613,"props":9232,"children":9233},{"style":679},[9234],{"type":398,"value":9235},"\"- Ready for company directory!\"",{"type":393,"tag":613,"props":9237,"children":9238},{"style":625},[9239],{"type":398,"value":944},{"type":393,"tag":587,"props":9241,"children":9243},{"id":9242},"whats-next",[9244],{"type":398,"value":9245},"🚀 What's Next?",{"type":393,"tag":401,"props":9247,"children":9248},{},[9249],{"type":398,"value":9250},"Excellent work! You've mastered all the essential data cleaning techniques. With clean data in hand, you're ready to move on to transforming and analyzing your data.",{"type":393,"tag":401,"props":9252,"children":9253},{},[9254,9259,9260],{"type":393,"tag":417,"props":9255,"children":9256},{},[9257],{"type":398,"value":9258},"Continue to",{"type":398,"value":4113},{"type":393,"tag":9261,"props":9262,"children":9263},"a",{"href":229},[9264],{"type":398,"value":230},{"type":393,"tag":401,"props":9266,"children":9267},{},[9268],{"type":398,"value":9269},"You're now a data cleaning expert! 📝✨",{"type":393,"tag":9271,"props":9272,"children":9273},"style",{},[9274],{"type":398,"value":9275},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":6,"searchDepth":36,"depth":36,"links":9277},[9278,9279,9280,9281,9282,9283,9284,9285,9286],{"id":589,"depth":27,"text":592},{"id":1465,"depth":27,"text":1468},{"id":2682,"depth":27,"text":2685},{"id":3558,"depth":27,"text":3561},{"id":4718,"depth":27,"text":4721},{"id":5921,"depth":27,"text":5924},{"id":7406,"depth":27,"text":7409},{"id":7752,"depth":27,"text":7755},{"id":9242,"depth":27,"text":9245},1782373723728]