[{"data":1,"prerenderedAt":5201},["ShallowReactive",2],{"tutorials-pandas":3,"category-items-pandas":387,"content-/pandas/data-cleaning":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},"/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},"/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",[181],{"_path":182,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":183,"description":184,"slug":185,"order":186,"isParent":12,"icon":187,"body":389,"_type":14,"_id":188,"_source":16,"_file":189,"_stem":190,"_extension":19},{"type":390,"children":391,"toc":5190},"root",[392,400,406,480,487,492,1041,1046,1482,1488,1674,1680,1685,2480,2486,2491,2539,2545,2550,3406,3412,3417,4194,4200,4391,4397,4402,5154,5160,5165,5179,5184],{"type":393,"tag":394,"props":395,"children":396},"element","h1",{"id":185},[397],{"type":398,"value":399},"text","🧹 Data Cleaning",{"type":393,"tag":401,"props":402,"children":403},"p",{},[404],{"type":398,"value":405},"Data cleaning is like organizing a messy room before you can find anything useful! Real-world data is rarely perfect - it has missing values, duplicates, wrong types, and messy text. Learning to clean data is essential because good analysis starts with clean data.",{"type":393,"tag":407,"props":408,"children":412},"info-box",{"emoji":409,"title":410,"type":411},"🧹","What Is Data Cleaning?","info",[413,422,430,460,470],{"type":393,"tag":401,"props":414,"children":415},{},[416],{"type":393,"tag":417,"props":418,"children":419},"strong",{},[420],{"type":398,"value":421},"Data Cleaning = Making Messy Data Analysis-Ready",{"type":393,"tag":401,"props":423,"children":424},{},[425],{"type":393,"tag":417,"props":426,"children":427},{},[428],{"type":398,"value":429},"Common Data Problems:",{"type":393,"tag":431,"props":432,"children":433},"ul",{},[434,440,445,450,455],{"type":393,"tag":435,"props":436,"children":437},"li",{},[438],{"type":398,"value":439},"Missing values (empty cells)",{"type":393,"tag":435,"props":441,"children":442},{},[443],{"type":398,"value":444},"Duplicate rows",{"type":393,"tag":435,"props":446,"children":447},{},[448],{"type":398,"value":449},"Wrong data types (numbers stored as text)",{"type":393,"tag":435,"props":451,"children":452},{},[453],{"type":398,"value":454},"Messy text (extra spaces, wrong case)",{"type":393,"tag":435,"props":456,"children":457},{},[458],{"type":398,"value":459},"Inconsistent formats",{"type":393,"tag":401,"props":461,"children":462},{},[463,468],{"type":393,"tag":417,"props":464,"children":465},{},[466],{"type":398,"value":467},"Think of it like:",{"type":398,"value":469}," Cleaning your kitchen before cooking - you need clean tools and organized ingredients to make a good meal!",{"type":393,"tag":401,"props":471,"children":472},{},[473,478],{"type":393,"tag":417,"props":474,"children":475},{},[476],{"type":398,"value":477},"Goal:",{"type":398,"value":479}," Transform messy data into clean, consistent data ready for analysis.",{"type":393,"tag":481,"props":482,"children":484},"h2",{"id":483},"why-data-cleaning-matters",[485],{"type":398,"value":486},"🎯 Why Data Cleaning Matters",{"type":393,"tag":401,"props":488,"children":489},{},[490],{"type":398,"value":491},"Real data is messy. Here's what you typically encounter:",{"type":393,"tag":493,"props":494,"children":495},"code-try",{},[496],{"type":393,"tag":497,"props":498,"children":502},"pre",{"className":499,"code":500,"language":501,"meta":6,"style":6},"language-python shiki shiki-themes github-light github-dark","import pandas as pd\nimport numpy as np\n\n# Typical messy dataset\nmessy_data = pd.DataFrame({\n    'name': ['Alice', '  bob  ', 'CHARLIE', 'Alice', 'diana'],\n    'age': [25, None, 30, 25, '28'],\n    'email': ['alice@email.com', 'BOB@EMAIL.COM', 'charlie@email.com', 'alice@email.com', ''],\n    'salary': [50000, 60000, None, 50000, 45000]\n})\n\nprint(\"📊 Messy Data (Typical Real-World Dataset):\")\nprint(messy_data)\nprint()\nprint(\"Problems:\")\nprint(\"- Extra spaces in names\")\nprint(\"- Missing age and salary values\")\nprint(\"- Inconsistent name capitalization\")\nprint(\"- Age stored as text ('28')\")\nprint(\"- Duplicate rows (Alice)\")\nprint(\"- Empty email field\")\nprint(\"- Inconsistent email case\")\n","python",[503],{"type":393,"tag":504,"props":505,"children":506},"code",{"__ignoreMap":6},[507,534,555,563,572,590,650,707,763,819,827,834,857,869,881,901,921,941,961,981,1001,1021],{"type":393,"tag":508,"props":509,"children":511},"span",{"class":510,"line":11},"line",[512,518,524,529],{"type":393,"tag":508,"props":513,"children":515},{"style":514},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[516],{"type":398,"value":517},"import",{"type":393,"tag":508,"props":519,"children":521},{"style":520},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[522],{"type":398,"value":523}," pandas ",{"type":393,"tag":508,"props":525,"children":526},{"style":514},[527],{"type":398,"value":528},"as",{"type":393,"tag":508,"props":530,"children":531},{"style":520},[532],{"type":398,"value":533}," pd\n",{"type":393,"tag":508,"props":535,"children":536},{"class":510,"line":27},[537,541,546,550],{"type":393,"tag":508,"props":538,"children":539},{"style":514},[540],{"type":398,"value":517},{"type":393,"tag":508,"props":542,"children":543},{"style":520},[544],{"type":398,"value":545}," numpy ",{"type":393,"tag":508,"props":547,"children":548},{"style":514},[549],{"type":398,"value":528},{"type":393,"tag":508,"props":551,"children":552},{"style":520},[553],{"type":398,"value":554}," np\n",{"type":393,"tag":508,"props":556,"children":557},{"class":510,"line":36},[558],{"type":393,"tag":508,"props":559,"children":560},{"emptyLinePlaceholder":12},[561],{"type":398,"value":562},"\n",{"type":393,"tag":508,"props":564,"children":565},{"class":510,"line":45},[566],{"type":393,"tag":508,"props":567,"children":569},{"style":568},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[570],{"type":398,"value":571},"# Typical messy dataset\n",{"type":393,"tag":508,"props":573,"children":574},{"class":510,"line":54},[575,580,585],{"type":393,"tag":508,"props":576,"children":577},{"style":520},[578],{"type":398,"value":579},"messy_data ",{"type":393,"tag":508,"props":581,"children":582},{"style":514},[583],{"type":398,"value":584},"=",{"type":393,"tag":508,"props":586,"children":587},{"style":520},[588],{"type":398,"value":589}," pd.DataFrame({\n",{"type":393,"tag":508,"props":591,"children":592},{"class":510,"line":63},[593,599,604,609,614,619,623,628,632,636,640,645],{"type":393,"tag":508,"props":594,"children":596},{"style":595},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[597],{"type":398,"value":598},"    'name'",{"type":393,"tag":508,"props":600,"children":601},{"style":520},[602],{"type":398,"value":603},": [",{"type":393,"tag":508,"props":605,"children":606},{"style":595},[607],{"type":398,"value":608},"'Alice'",{"type":393,"tag":508,"props":610,"children":611},{"style":520},[612],{"type":398,"value":613},", ",{"type":393,"tag":508,"props":615,"children":616},{"style":595},[617],{"type":398,"value":618},"'  bob  '",{"type":393,"tag":508,"props":620,"children":621},{"style":520},[622],{"type":398,"value":613},{"type":393,"tag":508,"props":624,"children":625},{"style":595},[626],{"type":398,"value":627},"'CHARLIE'",{"type":393,"tag":508,"props":629,"children":630},{"style":520},[631],{"type":398,"value":613},{"type":393,"tag":508,"props":633,"children":634},{"style":595},[635],{"type":398,"value":608},{"type":393,"tag":508,"props":637,"children":638},{"style":520},[639],{"type":398,"value":613},{"type":393,"tag":508,"props":641,"children":642},{"style":595},[643],{"type":398,"value":644},"'diana'",{"type":393,"tag":508,"props":646,"children":647},{"style":520},[648],{"type":398,"value":649},"],\n",{"type":393,"tag":508,"props":651,"children":652},{"class":510,"line":72},[653,658,662,668,672,677,681,686,690,694,698,703],{"type":393,"tag":508,"props":654,"children":655},{"style":595},[656],{"type":398,"value":657},"    'age'",{"type":393,"tag":508,"props":659,"children":660},{"style":520},[661],{"type":398,"value":603},{"type":393,"tag":508,"props":663,"children":665},{"style":664},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[666],{"type":398,"value":667},"25",{"type":393,"tag":508,"props":669,"children":670},{"style":520},[671],{"type":398,"value":613},{"type":393,"tag":508,"props":673,"children":674},{"style":664},[675],{"type":398,"value":676},"None",{"type":393,"tag":508,"props":678,"children":679},{"style":520},[680],{"type":398,"value":613},{"type":393,"tag":508,"props":682,"children":683},{"style":664},[684],{"type":398,"value":685},"30",{"type":393,"tag":508,"props":687,"children":688},{"style":520},[689],{"type":398,"value":613},{"type":393,"tag":508,"props":691,"children":692},{"style":664},[693],{"type":398,"value":667},{"type":393,"tag":508,"props":695,"children":696},{"style":520},[697],{"type":398,"value":613},{"type":393,"tag":508,"props":699,"children":700},{"style":595},[701],{"type":398,"value":702},"'28'",{"type":393,"tag":508,"props":704,"children":705},{"style":520},[706],{"type":398,"value":649},{"type":393,"tag":508,"props":708,"children":709},{"class":510,"line":83},[710,715,719,724,728,733,737,742,746,750,754,759],{"type":393,"tag":508,"props":711,"children":712},{"style":595},[713],{"type":398,"value":714},"    'email'",{"type":393,"tag":508,"props":716,"children":717},{"style":520},[718],{"type":398,"value":603},{"type":393,"tag":508,"props":720,"children":721},{"style":595},[722],{"type":398,"value":723},"'alice@email.com'",{"type":393,"tag":508,"props":725,"children":726},{"style":520},[727],{"type":398,"value":613},{"type":393,"tag":508,"props":729,"children":730},{"style":595},[731],{"type":398,"value":732},"'BOB@EMAIL.COM'",{"type":393,"tag":508,"props":734,"children":735},{"style":520},[736],{"type":398,"value":613},{"type":393,"tag":508,"props":738,"children":739},{"style":595},[740],{"type":398,"value":741},"'charlie@email.com'",{"type":393,"tag":508,"props":743,"children":744},{"style":520},[745],{"type":398,"value":613},{"type":393,"tag":508,"props":747,"children":748},{"style":595},[749],{"type":398,"value":723},{"type":393,"tag":508,"props":751,"children":752},{"style":520},[753],{"type":398,"value":613},{"type":393,"tag":508,"props":755,"children":756},{"style":595},[757],{"type":398,"value":758},"''",{"type":393,"tag":508,"props":760,"children":761},{"style":520},[762],{"type":398,"value":649},{"type":393,"tag":508,"props":764,"children":765},{"class":510,"line":92},[766,771,775,780,784,789,793,797,801,805,809,814],{"type":393,"tag":508,"props":767,"children":768},{"style":595},[769],{"type":398,"value":770},"    'salary'",{"type":393,"tag":508,"props":772,"children":773},{"style":520},[774],{"type":398,"value":603},{"type":393,"tag":508,"props":776,"children":777},{"style":664},[778],{"type":398,"value":779},"50000",{"type":393,"tag":508,"props":781,"children":782},{"style":520},[783],{"type":398,"value":613},{"type":393,"tag":508,"props":785,"children":786},{"style":664},[787],{"type":398,"value":788},"60000",{"type":393,"tag":508,"props":790,"children":791},{"style":520},[792],{"type":398,"value":613},{"type":393,"tag":508,"props":794,"children":795},{"style":664},[796],{"type":398,"value":676},{"type":393,"tag":508,"props":798,"children":799},{"style":520},[800],{"type":398,"value":613},{"type":393,"tag":508,"props":802,"children":803},{"style":664},[804],{"type":398,"value":779},{"type":393,"tag":508,"props":806,"children":807},{"style":520},[808],{"type":398,"value":613},{"type":393,"tag":508,"props":810,"children":811},{"style":664},[812],{"type":398,"value":813},"45000",{"type":393,"tag":508,"props":815,"children":816},{"style":520},[817],{"type":398,"value":818},"]\n",{"type":393,"tag":508,"props":820,"children":821},{"class":510,"line":101},[822],{"type":393,"tag":508,"props":823,"children":824},{"style":520},[825],{"type":398,"value":826},"})\n",{"type":393,"tag":508,"props":828,"children":829},{"class":510,"line":110},[830],{"type":393,"tag":508,"props":831,"children":832},{"emptyLinePlaceholder":12},[833],{"type":398,"value":562},{"type":393,"tag":508,"props":835,"children":836},{"class":510,"line":121},[837,842,847,852],{"type":393,"tag":508,"props":838,"children":839},{"style":664},[840],{"type":398,"value":841},"print",{"type":393,"tag":508,"props":843,"children":844},{"style":520},[845],{"type":398,"value":846},"(",{"type":393,"tag":508,"props":848,"children":849},{"style":595},[850],{"type":398,"value":851},"\"📊 Messy Data (Typical Real-World Dataset):\"",{"type":393,"tag":508,"props":853,"children":854},{"style":520},[855],{"type":398,"value":856},")\n",{"type":393,"tag":508,"props":858,"children":859},{"class":510,"line":130},[860,864],{"type":393,"tag":508,"props":861,"children":862},{"style":664},[863],{"type":398,"value":841},{"type":393,"tag":508,"props":865,"children":866},{"style":520},[867],{"type":398,"value":868},"(messy_data)\n",{"type":393,"tag":508,"props":870,"children":871},{"class":510,"line":139},[872,876],{"type":393,"tag":508,"props":873,"children":874},{"style":664},[875],{"type":398,"value":841},{"type":393,"tag":508,"props":877,"children":878},{"style":520},[879],{"type":398,"value":880},"()\n",{"type":393,"tag":508,"props":882,"children":883},{"class":510,"line":148},[884,888,892,897],{"type":393,"tag":508,"props":885,"children":886},{"style":664},[887],{"type":398,"value":841},{"type":393,"tag":508,"props":889,"children":890},{"style":520},[891],{"type":398,"value":846},{"type":393,"tag":508,"props":893,"children":894},{"style":595},[895],{"type":398,"value":896},"\"Problems:\"",{"type":393,"tag":508,"props":898,"children":899},{"style":520},[900],{"type":398,"value":856},{"type":393,"tag":508,"props":902,"children":903},{"class":510,"line":159},[904,908,912,917],{"type":393,"tag":508,"props":905,"children":906},{"style":664},[907],{"type":398,"value":841},{"type":393,"tag":508,"props":909,"children":910},{"style":520},[911],{"type":398,"value":846},{"type":393,"tag":508,"props":913,"children":914},{"style":595},[915],{"type":398,"value":916},"\"- Extra spaces in names\"",{"type":393,"tag":508,"props":918,"children":919},{"style":520},[920],{"type":398,"value":856},{"type":393,"tag":508,"props":922,"children":923},{"class":510,"line":168},[924,928,932,937],{"type":393,"tag":508,"props":925,"children":926},{"style":664},[927],{"type":398,"value":841},{"type":393,"tag":508,"props":929,"children":930},{"style":520},[931],{"type":398,"value":846},{"type":393,"tag":508,"props":933,"children":934},{"style":595},[935],{"type":398,"value":936},"\"- Missing age and salary values\"",{"type":393,"tag":508,"props":938,"children":939},{"style":520},[940],{"type":398,"value":856},{"type":393,"tag":508,"props":942,"children":943},{"class":510,"line":177},[944,948,952,957],{"type":393,"tag":508,"props":945,"children":946},{"style":664},[947],{"type":398,"value":841},{"type":393,"tag":508,"props":949,"children":950},{"style":520},[951],{"type":398,"value":846},{"type":393,"tag":508,"props":953,"children":954},{"style":595},[955],{"type":398,"value":956},"\"- Inconsistent name capitalization\"",{"type":393,"tag":508,"props":958,"children":959},{"style":520},[960],{"type":398,"value":856},{"type":393,"tag":508,"props":962,"children":963},{"class":510,"line":186},[964,968,972,977],{"type":393,"tag":508,"props":965,"children":966},{"style":664},[967],{"type":398,"value":841},{"type":393,"tag":508,"props":969,"children":970},{"style":520},[971],{"type":398,"value":846},{"type":393,"tag":508,"props":973,"children":974},{"style":595},[975],{"type":398,"value":976},"\"- Age stored as text ('28')\"",{"type":393,"tag":508,"props":978,"children":979},{"style":520},[980],{"type":398,"value":856},{"type":393,"tag":508,"props":982,"children":983},{"class":510,"line":197},[984,988,992,997],{"type":393,"tag":508,"props":985,"children":986},{"style":664},[987],{"type":398,"value":841},{"type":393,"tag":508,"props":989,"children":990},{"style":520},[991],{"type":398,"value":846},{"type":393,"tag":508,"props":993,"children":994},{"style":595},[995],{"type":398,"value":996},"\"- Duplicate rows (Alice)\"",{"type":393,"tag":508,"props":998,"children":999},{"style":520},[1000],{"type":398,"value":856},{"type":393,"tag":508,"props":1002,"children":1003},{"class":510,"line":206},[1004,1008,1012,1017],{"type":393,"tag":508,"props":1005,"children":1006},{"style":664},[1007],{"type":398,"value":841},{"type":393,"tag":508,"props":1009,"children":1010},{"style":520},[1011],{"type":398,"value":846},{"type":393,"tag":508,"props":1013,"children":1014},{"style":595},[1015],{"type":398,"value":1016},"\"- Empty email field\"",{"type":393,"tag":508,"props":1018,"children":1019},{"style":520},[1020],{"type":398,"value":856},{"type":393,"tag":508,"props":1022,"children":1023},{"class":510,"line":215},[1024,1028,1032,1037],{"type":393,"tag":508,"props":1025,"children":1026},{"style":664},[1027],{"type":398,"value":841},{"type":393,"tag":508,"props":1029,"children":1030},{"style":520},[1031],{"type":398,"value":846},{"type":393,"tag":508,"props":1033,"children":1034},{"style":595},[1035],{"type":398,"value":1036},"\"- Inconsistent email case\"",{"type":393,"tag":508,"props":1038,"children":1039},{"style":520},[1040],{"type":398,"value":856},{"type":393,"tag":401,"props":1042,"children":1043},{},[1044],{"type":398,"value":1045},"After cleaning, your data should look organized and consistent:",{"type":393,"tag":493,"props":1047,"children":1048},{},[1049],{"type":393,"tag":497,"props":1050,"children":1052},{"className":499,"code":1051,"language":501,"meta":6,"style":6},"import pandas as pd\n\n# Clean version of the same data\nclean_data = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie', 'Diana'],\n    'age': [25, 30, 30, 28],\n    'email': ['alice@email.com', 'bob@email.com', 'charlie@email.com', 'diana@email.com'],\n    'salary': [50000, 60000, 55000, 45000]\n})\n\nprint(\"✨ Clean Data (After Cleaning):\")\nprint(clean_data)\nprint()\nprint(\"Fixed:\")\nprint(\"✅ Consistent name formatting\")\nprint(\"✅ No missing values\")\nprint(\"✅ Proper data types\")\nprint(\"✅ No duplicates\")\nprint(\"✅ Standardized email format\")\nprint(\"✅ Ready for analysis!\")\n",[1053],{"type":393,"tag":504,"props":1054,"children":1055},{"__ignoreMap":6},[1056,1075,1082,1090,1106,1152,1196,1241,1285,1292,1299,1319,1331,1342,1362,1382,1402,1422,1442,1462],{"type":393,"tag":508,"props":1057,"children":1058},{"class":510,"line":11},[1059,1063,1067,1071],{"type":393,"tag":508,"props":1060,"children":1061},{"style":514},[1062],{"type":398,"value":517},{"type":393,"tag":508,"props":1064,"children":1065},{"style":520},[1066],{"type":398,"value":523},{"type":393,"tag":508,"props":1068,"children":1069},{"style":514},[1070],{"type":398,"value":528},{"type":393,"tag":508,"props":1072,"children":1073},{"style":520},[1074],{"type":398,"value":533},{"type":393,"tag":508,"props":1076,"children":1077},{"class":510,"line":27},[1078],{"type":393,"tag":508,"props":1079,"children":1080},{"emptyLinePlaceholder":12},[1081],{"type":398,"value":562},{"type":393,"tag":508,"props":1083,"children":1084},{"class":510,"line":36},[1085],{"type":393,"tag":508,"props":1086,"children":1087},{"style":568},[1088],{"type":398,"value":1089},"# Clean version of the same data\n",{"type":393,"tag":508,"props":1091,"children":1092},{"class":510,"line":45},[1093,1098,1102],{"type":393,"tag":508,"props":1094,"children":1095},{"style":520},[1096],{"type":398,"value":1097},"clean_data ",{"type":393,"tag":508,"props":1099,"children":1100},{"style":514},[1101],{"type":398,"value":584},{"type":393,"tag":508,"props":1103,"children":1104},{"style":520},[1105],{"type":398,"value":589},{"type":393,"tag":508,"props":1107,"children":1108},{"class":510,"line":54},[1109,1113,1117,1121,1125,1130,1134,1139,1143,1148],{"type":393,"tag":508,"props":1110,"children":1111},{"style":595},[1112],{"type":398,"value":598},{"type":393,"tag":508,"props":1114,"children":1115},{"style":520},[1116],{"type":398,"value":603},{"type":393,"tag":508,"props":1118,"children":1119},{"style":595},[1120],{"type":398,"value":608},{"type":393,"tag":508,"props":1122,"children":1123},{"style":520},[1124],{"type":398,"value":613},{"type":393,"tag":508,"props":1126,"children":1127},{"style":595},[1128],{"type":398,"value":1129},"'Bob'",{"type":393,"tag":508,"props":1131,"children":1132},{"style":520},[1133],{"type":398,"value":613},{"type":393,"tag":508,"props":1135,"children":1136},{"style":595},[1137],{"type":398,"value":1138},"'Charlie'",{"type":393,"tag":508,"props":1140,"children":1141},{"style":520},[1142],{"type":398,"value":613},{"type":393,"tag":508,"props":1144,"children":1145},{"style":595},[1146],{"type":398,"value":1147},"'Diana'",{"type":393,"tag":508,"props":1149,"children":1150},{"style":520},[1151],{"type":398,"value":649},{"type":393,"tag":508,"props":1153,"children":1154},{"class":510,"line":63},[1155,1159,1163,1167,1171,1175,1179,1183,1187,1192],{"type":393,"tag":508,"props":1156,"children":1157},{"style":595},[1158],{"type":398,"value":657},{"type":393,"tag":508,"props":1160,"children":1161},{"style":520},[1162],{"type":398,"value":603},{"type":393,"tag":508,"props":1164,"children":1165},{"style":664},[1166],{"type":398,"value":667},{"type":393,"tag":508,"props":1168,"children":1169},{"style":520},[1170],{"type":398,"value":613},{"type":393,"tag":508,"props":1172,"children":1173},{"style":664},[1174],{"type":398,"value":685},{"type":393,"tag":508,"props":1176,"children":1177},{"style":520},[1178],{"type":398,"value":613},{"type":393,"tag":508,"props":1180,"children":1181},{"style":664},[1182],{"type":398,"value":685},{"type":393,"tag":508,"props":1184,"children":1185},{"style":520},[1186],{"type":398,"value":613},{"type":393,"tag":508,"props":1188,"children":1189},{"style":664},[1190],{"type":398,"value":1191},"28",{"type":393,"tag":508,"props":1193,"children":1194},{"style":520},[1195],{"type":398,"value":649},{"type":393,"tag":508,"props":1197,"children":1198},{"class":510,"line":72},[1199,1203,1207,1211,1215,1220,1224,1228,1232,1237],{"type":393,"tag":508,"props":1200,"children":1201},{"style":595},[1202],{"type":398,"value":714},{"type":393,"tag":508,"props":1204,"children":1205},{"style":520},[1206],{"type":398,"value":603},{"type":393,"tag":508,"props":1208,"children":1209},{"style":595},[1210],{"type":398,"value":723},{"type":393,"tag":508,"props":1212,"children":1213},{"style":520},[1214],{"type":398,"value":613},{"type":393,"tag":508,"props":1216,"children":1217},{"style":595},[1218],{"type":398,"value":1219},"'bob@email.com'",{"type":393,"tag":508,"props":1221,"children":1222},{"style":520},[1223],{"type":398,"value":613},{"type":393,"tag":508,"props":1225,"children":1226},{"style":595},[1227],{"type":398,"value":741},{"type":393,"tag":508,"props":1229,"children":1230},{"style":520},[1231],{"type":398,"value":613},{"type":393,"tag":508,"props":1233,"children":1234},{"style":595},[1235],{"type":398,"value":1236},"'diana@email.com'",{"type":393,"tag":508,"props":1238,"children":1239},{"style":520},[1240],{"type":398,"value":649},{"type":393,"tag":508,"props":1242,"children":1243},{"class":510,"line":83},[1244,1248,1252,1256,1260,1264,1268,1273,1277,1281],{"type":393,"tag":508,"props":1245,"children":1246},{"style":595},[1247],{"type":398,"value":770},{"type":393,"tag":508,"props":1249,"children":1250},{"style":520},[1251],{"type":398,"value":603},{"type":393,"tag":508,"props":1253,"children":1254},{"style":664},[1255],{"type":398,"value":779},{"type":393,"tag":508,"props":1257,"children":1258},{"style":520},[1259],{"type":398,"value":613},{"type":393,"tag":508,"props":1261,"children":1262},{"style":664},[1263],{"type":398,"value":788},{"type":393,"tag":508,"props":1265,"children":1266},{"style":520},[1267],{"type":398,"value":613},{"type":393,"tag":508,"props":1269,"children":1270},{"style":664},[1271],{"type":398,"value":1272},"55000",{"type":393,"tag":508,"props":1274,"children":1275},{"style":520},[1276],{"type":398,"value":613},{"type":393,"tag":508,"props":1278,"children":1279},{"style":664},[1280],{"type":398,"value":813},{"type":393,"tag":508,"props":1282,"children":1283},{"style":520},[1284],{"type":398,"value":818},{"type":393,"tag":508,"props":1286,"children":1287},{"class":510,"line":92},[1288],{"type":393,"tag":508,"props":1289,"children":1290},{"style":520},[1291],{"type":398,"value":826},{"type":393,"tag":508,"props":1293,"children":1294},{"class":510,"line":101},[1295],{"type":393,"tag":508,"props":1296,"children":1297},{"emptyLinePlaceholder":12},[1298],{"type":398,"value":562},{"type":393,"tag":508,"props":1300,"children":1301},{"class":510,"line":110},[1302,1306,1310,1315],{"type":393,"tag":508,"props":1303,"children":1304},{"style":664},[1305],{"type":398,"value":841},{"type":393,"tag":508,"props":1307,"children":1308},{"style":520},[1309],{"type":398,"value":846},{"type":393,"tag":508,"props":1311,"children":1312},{"style":595},[1313],{"type":398,"value":1314},"\"✨ Clean Data (After Cleaning):\"",{"type":393,"tag":508,"props":1316,"children":1317},{"style":520},[1318],{"type":398,"value":856},{"type":393,"tag":508,"props":1320,"children":1321},{"class":510,"line":121},[1322,1326],{"type":393,"tag":508,"props":1323,"children":1324},{"style":664},[1325],{"type":398,"value":841},{"type":393,"tag":508,"props":1327,"children":1328},{"style":520},[1329],{"type":398,"value":1330},"(clean_data)\n",{"type":393,"tag":508,"props":1332,"children":1333},{"class":510,"line":130},[1334,1338],{"type":393,"tag":508,"props":1335,"children":1336},{"style":664},[1337],{"type":398,"value":841},{"type":393,"tag":508,"props":1339,"children":1340},{"style":520},[1341],{"type":398,"value":880},{"type":393,"tag":508,"props":1343,"children":1344},{"class":510,"line":139},[1345,1349,1353,1358],{"type":393,"tag":508,"props":1346,"children":1347},{"style":664},[1348],{"type":398,"value":841},{"type":393,"tag":508,"props":1350,"children":1351},{"style":520},[1352],{"type":398,"value":846},{"type":393,"tag":508,"props":1354,"children":1355},{"style":595},[1356],{"type":398,"value":1357},"\"Fixed:\"",{"type":393,"tag":508,"props":1359,"children":1360},{"style":520},[1361],{"type":398,"value":856},{"type":393,"tag":508,"props":1363,"children":1364},{"class":510,"line":148},[1365,1369,1373,1378],{"type":393,"tag":508,"props":1366,"children":1367},{"style":664},[1368],{"type":398,"value":841},{"type":393,"tag":508,"props":1370,"children":1371},{"style":520},[1372],{"type":398,"value":846},{"type":393,"tag":508,"props":1374,"children":1375},{"style":595},[1376],{"type":398,"value":1377},"\"✅ Consistent name formatting\"",{"type":393,"tag":508,"props":1379,"children":1380},{"style":520},[1381],{"type":398,"value":856},{"type":393,"tag":508,"props":1383,"children":1384},{"class":510,"line":159},[1385,1389,1393,1398],{"type":393,"tag":508,"props":1386,"children":1387},{"style":664},[1388],{"type":398,"value":841},{"type":393,"tag":508,"props":1390,"children":1391},{"style":520},[1392],{"type":398,"value":846},{"type":393,"tag":508,"props":1394,"children":1395},{"style":595},[1396],{"type":398,"value":1397},"\"✅ No missing values\"",{"type":393,"tag":508,"props":1399,"children":1400},{"style":520},[1401],{"type":398,"value":856},{"type":393,"tag":508,"props":1403,"children":1404},{"class":510,"line":168},[1405,1409,1413,1418],{"type":393,"tag":508,"props":1406,"children":1407},{"style":664},[1408],{"type":398,"value":841},{"type":393,"tag":508,"props":1410,"children":1411},{"style":520},[1412],{"type":398,"value":846},{"type":393,"tag":508,"props":1414,"children":1415},{"style":595},[1416],{"type":398,"value":1417},"\"✅ Proper data types\"",{"type":393,"tag":508,"props":1419,"children":1420},{"style":520},[1421],{"type":398,"value":856},{"type":393,"tag":508,"props":1423,"children":1424},{"class":510,"line":177},[1425,1429,1433,1438],{"type":393,"tag":508,"props":1426,"children":1427},{"style":664},[1428],{"type":398,"value":841},{"type":393,"tag":508,"props":1430,"children":1431},{"style":520},[1432],{"type":398,"value":846},{"type":393,"tag":508,"props":1434,"children":1435},{"style":595},[1436],{"type":398,"value":1437},"\"✅ No duplicates\"",{"type":393,"tag":508,"props":1439,"children":1440},{"style":520},[1441],{"type":398,"value":856},{"type":393,"tag":508,"props":1443,"children":1444},{"class":510,"line":186},[1445,1449,1453,1458],{"type":393,"tag":508,"props":1446,"children":1447},{"style":664},[1448],{"type":398,"value":841},{"type":393,"tag":508,"props":1450,"children":1451},{"style":520},[1452],{"type":398,"value":846},{"type":393,"tag":508,"props":1454,"children":1455},{"style":595},[1456],{"type":398,"value":1457},"\"✅ Standardized email format\"",{"type":393,"tag":508,"props":1459,"children":1460},{"style":520},[1461],{"type":398,"value":856},{"type":393,"tag":508,"props":1463,"children":1464},{"class":510,"line":197},[1465,1469,1473,1478],{"type":393,"tag":508,"props":1466,"children":1467},{"style":664},[1468],{"type":398,"value":841},{"type":393,"tag":508,"props":1470,"children":1471},{"style":520},[1472],{"type":398,"value":846},{"type":393,"tag":508,"props":1474,"children":1475},{"style":595},[1476],{"type":398,"value":1477},"\"✅ Ready for analysis!\"",{"type":393,"tag":508,"props":1479,"children":1480},{"style":520},[1481],{"type":398,"value":856},{"type":393,"tag":481,"props":1483,"children":1485},{"id":1484},"️-data-cleaning-checklist",[1486],{"type":398,"value":1487},"🛠️ Data Cleaning Checklist",{"type":393,"tag":1489,"props":1490,"children":1491},"table",{},[1492,1516],{"type":393,"tag":1493,"props":1494,"children":1495},"thead",{},[1496],{"type":393,"tag":1497,"props":1498,"children":1499},"tr",{},[1500,1506,1511],{"type":393,"tag":1501,"props":1502,"children":1503},"th",{},[1504],{"type":398,"value":1505},"Problem",{"type":393,"tag":1501,"props":1507,"children":1508},{},[1509],{"type":398,"value":1510},"Solution",{"type":393,"tag":1501,"props":1512,"children":1513},{},[1514],{"type":398,"value":1515},"Pandas Method",{"type":393,"tag":1517,"props":1518,"children":1519},"tbody",{},[1520,1553,1578,1610,1642],{"type":393,"tag":1497,"props":1521,"children":1522},{},[1523,1532,1537],{"type":393,"tag":1524,"props":1525,"children":1526},"td",{},[1527],{"type":393,"tag":417,"props":1528,"children":1529},{},[1530],{"type":398,"value":1531},"Missing Values",{"type":393,"tag":1524,"props":1533,"children":1534},{},[1535],{"type":398,"value":1536},"Fill or remove",{"type":393,"tag":1524,"props":1538,"children":1539},{},[1540,1546,1547],{"type":393,"tag":504,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":398,"value":1545},".fillna()",{"type":398,"value":613},{"type":393,"tag":504,"props":1548,"children":1550},{"className":1549},[],[1551],{"type":398,"value":1552},".dropna()",{"type":393,"tag":1497,"props":1554,"children":1555},{},[1556,1564,1569],{"type":393,"tag":1524,"props":1557,"children":1558},{},[1559],{"type":393,"tag":417,"props":1560,"children":1561},{},[1562],{"type":398,"value":1563},"Duplicates",{"type":393,"tag":1524,"props":1565,"children":1566},{},[1567],{"type":398,"value":1568},"Remove duplicates",{"type":393,"tag":1524,"props":1570,"children":1571},{},[1572],{"type":393,"tag":504,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":398,"value":1577},".drop_duplicates()",{"type":393,"tag":1497,"props":1579,"children":1580},{},[1581,1589,1594],{"type":393,"tag":1524,"props":1582,"children":1583},{},[1584],{"type":393,"tag":417,"props":1585,"children":1586},{},[1587],{"type":398,"value":1588},"Wrong Types",{"type":393,"tag":1524,"props":1590,"children":1591},{},[1592],{"type":398,"value":1593},"Convert types",{"type":393,"tag":1524,"props":1595,"children":1596},{},[1597,1603,1604],{"type":393,"tag":504,"props":1598,"children":1600},{"className":1599},[],[1601],{"type":398,"value":1602},".astype()",{"type":398,"value":613},{"type":393,"tag":504,"props":1605,"children":1607},{"className":1606},[],[1608],{"type":398,"value":1609},"pd.to_numeric()",{"type":393,"tag":1497,"props":1611,"children":1612},{},[1613,1621,1626],{"type":393,"tag":1524,"props":1614,"children":1615},{},[1616],{"type":393,"tag":417,"props":1617,"children":1618},{},[1619],{"type":398,"value":1620},"Messy Text",{"type":393,"tag":1524,"props":1622,"children":1623},{},[1624],{"type":398,"value":1625},"Clean strings",{"type":393,"tag":1524,"props":1627,"children":1628},{},[1629,1635,1636],{"type":393,"tag":504,"props":1630,"children":1632},{"className":1631},[],[1633],{"type":398,"value":1634},".str.strip()",{"type":398,"value":613},{"type":393,"tag":504,"props":1637,"children":1639},{"className":1638},[],[1640],{"type":398,"value":1641},".str.lower()",{"type":393,"tag":1497,"props":1643,"children":1644},{},[1645,1653,1658],{"type":393,"tag":1524,"props":1646,"children":1647},{},[1648],{"type":393,"tag":417,"props":1649,"children":1650},{},[1651],{"type":398,"value":1652},"Inconsistent Format",{"type":393,"tag":1524,"props":1654,"children":1655},{},[1656],{"type":398,"value":1657},"Standardize",{"type":393,"tag":1524,"props":1659,"children":1660},{},[1661,1667,1668],{"type":393,"tag":504,"props":1662,"children":1664},{"className":1663},[],[1665],{"type":398,"value":1666},".str.replace()",{"type":398,"value":613},{"type":393,"tag":504,"props":1669,"children":1671},{"className":1670},[],[1672],{"type":398,"value":1673},".str.title()",{"type":393,"tag":481,"props":1675,"children":1677},{"id":1676},"quick-cleaning-preview",[1678],{"type":398,"value":1679},"👀 Quick Cleaning Preview",{"type":393,"tag":401,"props":1681,"children":1682},{},[1683],{"type":398,"value":1684},"Here's what data cleaning looks like in action:",{"type":393,"tag":493,"props":1686,"children":1687},{},[1688],{"type":393,"tag":497,"props":1689,"children":1691},{"className":499,"code":1690,"language":501,"meta":6,"style":6},"import pandas as pd\nimport numpy as np\n\n# Sample messy customer data\ncustomers = pd.DataFrame({\n    'customer_id': [1, 2, 3, 2, 4],\n    'name': [' Alice ', 'bob', 'CHARLIE', 'bob', '  diana  '],\n    'phone': ['123-456-7890', '(555) 123-4567', '555.123.4567', '(555) 123-4567', ''],\n    'purchase_amount': ['100.50', '250', None, '250', '75.25']\n})\n\nprint(\"Messy Customer Data:\")\nprint(customers)\nprint()\n\n# Quick cleaning demo\nprint(\"🧹 Cleaning Steps:\")\nprint()\n\n# Step 1: Remove duplicates\nprint(\"1️⃣ Remove duplicates:\")\ncleaned = customers.drop_duplicates()\nprint(f\"Rows: {len(customers)} → {len(cleaned)}\")\nprint()\n\n# Step 2: Clean names\nprint(\"2️⃣ Clean names:\")\ncleaned['name'] = cleaned['name'].str.strip().str.title()\nprint(cleaned[['customer_id', 'name']].to_string(index=False))\nprint()\n\n# Step 3: Handle missing values\nprint(\"3️⃣ Handle missing purchase amounts:\")\ncleaned['purchase_amount'] = cleaned['purchase_amount'].fillna('0')\nprint(\"Missing values filled with 0\")\nprint()\n\nprint(\"🎯 Result: Clean, consistent data ready for analysis!\")\n",[1692],{"type":393,"tag":504,"props":1693,"children":1694},{"__ignoreMap":6},[1695,1714,1733,1740,1748,1764,1820,1874,1929,1984,1991,1998,2018,2030,2041,2048,2056,2076,2087,2094,2102,2122,2139,2202,2213,2220,2228,2248,2284,2334,2345,2352,2360,2380,2422,2442,2453,2460],{"type":393,"tag":508,"props":1696,"children":1697},{"class":510,"line":11},[1698,1702,1706,1710],{"type":393,"tag":508,"props":1699,"children":1700},{"style":514},[1701],{"type":398,"value":517},{"type":393,"tag":508,"props":1703,"children":1704},{"style":520},[1705],{"type":398,"value":523},{"type":393,"tag":508,"props":1707,"children":1708},{"style":514},[1709],{"type":398,"value":528},{"type":393,"tag":508,"props":1711,"children":1712},{"style":520},[1713],{"type":398,"value":533},{"type":393,"tag":508,"props":1715,"children":1716},{"class":510,"line":27},[1717,1721,1725,1729],{"type":393,"tag":508,"props":1718,"children":1719},{"style":514},[1720],{"type":398,"value":517},{"type":393,"tag":508,"props":1722,"children":1723},{"style":520},[1724],{"type":398,"value":545},{"type":393,"tag":508,"props":1726,"children":1727},{"style":514},[1728],{"type":398,"value":528},{"type":393,"tag":508,"props":1730,"children":1731},{"style":520},[1732],{"type":398,"value":554},{"type":393,"tag":508,"props":1734,"children":1735},{"class":510,"line":36},[1736],{"type":393,"tag":508,"props":1737,"children":1738},{"emptyLinePlaceholder":12},[1739],{"type":398,"value":562},{"type":393,"tag":508,"props":1741,"children":1742},{"class":510,"line":45},[1743],{"type":393,"tag":508,"props":1744,"children":1745},{"style":568},[1746],{"type":398,"value":1747},"# Sample messy customer data\n",{"type":393,"tag":508,"props":1749,"children":1750},{"class":510,"line":54},[1751,1756,1760],{"type":393,"tag":508,"props":1752,"children":1753},{"style":520},[1754],{"type":398,"value":1755},"customers ",{"type":393,"tag":508,"props":1757,"children":1758},{"style":514},[1759],{"type":398,"value":584},{"type":393,"tag":508,"props":1761,"children":1762},{"style":520},[1763],{"type":398,"value":589},{"type":393,"tag":508,"props":1765,"children":1766},{"class":510,"line":63},[1767,1772,1776,1781,1785,1790,1794,1799,1803,1807,1811,1816],{"type":393,"tag":508,"props":1768,"children":1769},{"style":595},[1770],{"type":398,"value":1771},"    'customer_id'",{"type":393,"tag":508,"props":1773,"children":1774},{"style":520},[1775],{"type":398,"value":603},{"type":393,"tag":508,"props":1777,"children":1778},{"style":664},[1779],{"type":398,"value":1780},"1",{"type":393,"tag":508,"props":1782,"children":1783},{"style":520},[1784],{"type":398,"value":613},{"type":393,"tag":508,"props":1786,"children":1787},{"style":664},[1788],{"type":398,"value":1789},"2",{"type":393,"tag":508,"props":1791,"children":1792},{"style":520},[1793],{"type":398,"value":613},{"type":393,"tag":508,"props":1795,"children":1796},{"style":664},[1797],{"type":398,"value":1798},"3",{"type":393,"tag":508,"props":1800,"children":1801},{"style":520},[1802],{"type":398,"value":613},{"type":393,"tag":508,"props":1804,"children":1805},{"style":664},[1806],{"type":398,"value":1789},{"type":393,"tag":508,"props":1808,"children":1809},{"style":520},[1810],{"type":398,"value":613},{"type":393,"tag":508,"props":1812,"children":1813},{"style":664},[1814],{"type":398,"value":1815},"4",{"type":393,"tag":508,"props":1817,"children":1818},{"style":520},[1819],{"type":398,"value":649},{"type":393,"tag":508,"props":1821,"children":1822},{"class":510,"line":72},[1823,1827,1831,1836,1840,1845,1849,1853,1857,1861,1865,1870],{"type":393,"tag":508,"props":1824,"children":1825},{"style":595},[1826],{"type":398,"value":598},{"type":393,"tag":508,"props":1828,"children":1829},{"style":520},[1830],{"type":398,"value":603},{"type":393,"tag":508,"props":1832,"children":1833},{"style":595},[1834],{"type":398,"value":1835},"' Alice '",{"type":393,"tag":508,"props":1837,"children":1838},{"style":520},[1839],{"type":398,"value":613},{"type":393,"tag":508,"props":1841,"children":1842},{"style":595},[1843],{"type":398,"value":1844},"'bob'",{"type":393,"tag":508,"props":1846,"children":1847},{"style":520},[1848],{"type":398,"value":613},{"type":393,"tag":508,"props":1850,"children":1851},{"style":595},[1852],{"type":398,"value":627},{"type":393,"tag":508,"props":1854,"children":1855},{"style":520},[1856],{"type":398,"value":613},{"type":393,"tag":508,"props":1858,"children":1859},{"style":595},[1860],{"type":398,"value":1844},{"type":393,"tag":508,"props":1862,"children":1863},{"style":520},[1864],{"type":398,"value":613},{"type":393,"tag":508,"props":1866,"children":1867},{"style":595},[1868],{"type":398,"value":1869},"'  diana  '",{"type":393,"tag":508,"props":1871,"children":1872},{"style":520},[1873],{"type":398,"value":649},{"type":393,"tag":508,"props":1875,"children":1876},{"class":510,"line":83},[1877,1882,1886,1891,1895,1900,1904,1909,1913,1917,1921,1925],{"type":393,"tag":508,"props":1878,"children":1879},{"style":595},[1880],{"type":398,"value":1881},"    'phone'",{"type":393,"tag":508,"props":1883,"children":1884},{"style":520},[1885],{"type":398,"value":603},{"type":393,"tag":508,"props":1887,"children":1888},{"style":595},[1889],{"type":398,"value":1890},"'123-456-7890'",{"type":393,"tag":508,"props":1892,"children":1893},{"style":520},[1894],{"type":398,"value":613},{"type":393,"tag":508,"props":1896,"children":1897},{"style":595},[1898],{"type":398,"value":1899},"'(555) 123-4567'",{"type":393,"tag":508,"props":1901,"children":1902},{"style":520},[1903],{"type":398,"value":613},{"type":393,"tag":508,"props":1905,"children":1906},{"style":595},[1907],{"type":398,"value":1908},"'555.123.4567'",{"type":393,"tag":508,"props":1910,"children":1911},{"style":520},[1912],{"type":398,"value":613},{"type":393,"tag":508,"props":1914,"children":1915},{"style":595},[1916],{"type":398,"value":1899},{"type":393,"tag":508,"props":1918,"children":1919},{"style":520},[1920],{"type":398,"value":613},{"type":393,"tag":508,"props":1922,"children":1923},{"style":595},[1924],{"type":398,"value":758},{"type":393,"tag":508,"props":1926,"children":1927},{"style":520},[1928],{"type":398,"value":649},{"type":393,"tag":508,"props":1930,"children":1931},{"class":510,"line":92},[1932,1937,1941,1946,1950,1955,1959,1963,1967,1971,1975,1980],{"type":393,"tag":508,"props":1933,"children":1934},{"style":595},[1935],{"type":398,"value":1936},"    'purchase_amount'",{"type":393,"tag":508,"props":1938,"children":1939},{"style":520},[1940],{"type":398,"value":603},{"type":393,"tag":508,"props":1942,"children":1943},{"style":595},[1944],{"type":398,"value":1945},"'100.50'",{"type":393,"tag":508,"props":1947,"children":1948},{"style":520},[1949],{"type":398,"value":613},{"type":393,"tag":508,"props":1951,"children":1952},{"style":595},[1953],{"type":398,"value":1954},"'250'",{"type":393,"tag":508,"props":1956,"children":1957},{"style":520},[1958],{"type":398,"value":613},{"type":393,"tag":508,"props":1960,"children":1961},{"style":664},[1962],{"type":398,"value":676},{"type":393,"tag":508,"props":1964,"children":1965},{"style":520},[1966],{"type":398,"value":613},{"type":393,"tag":508,"props":1968,"children":1969},{"style":595},[1970],{"type":398,"value":1954},{"type":393,"tag":508,"props":1972,"children":1973},{"style":520},[1974],{"type":398,"value":613},{"type":393,"tag":508,"props":1976,"children":1977},{"style":595},[1978],{"type":398,"value":1979},"'75.25'",{"type":393,"tag":508,"props":1981,"children":1982},{"style":520},[1983],{"type":398,"value":818},{"type":393,"tag":508,"props":1985,"children":1986},{"class":510,"line":101},[1987],{"type":393,"tag":508,"props":1988,"children":1989},{"style":520},[1990],{"type":398,"value":826},{"type":393,"tag":508,"props":1992,"children":1993},{"class":510,"line":110},[1994],{"type":393,"tag":508,"props":1995,"children":1996},{"emptyLinePlaceholder":12},[1997],{"type":398,"value":562},{"type":393,"tag":508,"props":1999,"children":2000},{"class":510,"line":121},[2001,2005,2009,2014],{"type":393,"tag":508,"props":2002,"children":2003},{"style":664},[2004],{"type":398,"value":841},{"type":393,"tag":508,"props":2006,"children":2007},{"style":520},[2008],{"type":398,"value":846},{"type":393,"tag":508,"props":2010,"children":2011},{"style":595},[2012],{"type":398,"value":2013},"\"Messy Customer Data:\"",{"type":393,"tag":508,"props":2015,"children":2016},{"style":520},[2017],{"type":398,"value":856},{"type":393,"tag":508,"props":2019,"children":2020},{"class":510,"line":130},[2021,2025],{"type":393,"tag":508,"props":2022,"children":2023},{"style":664},[2024],{"type":398,"value":841},{"type":393,"tag":508,"props":2026,"children":2027},{"style":520},[2028],{"type":398,"value":2029},"(customers)\n",{"type":393,"tag":508,"props":2031,"children":2032},{"class":510,"line":139},[2033,2037],{"type":393,"tag":508,"props":2034,"children":2035},{"style":664},[2036],{"type":398,"value":841},{"type":393,"tag":508,"props":2038,"children":2039},{"style":520},[2040],{"type":398,"value":880},{"type":393,"tag":508,"props":2042,"children":2043},{"class":510,"line":148},[2044],{"type":393,"tag":508,"props":2045,"children":2046},{"emptyLinePlaceholder":12},[2047],{"type":398,"value":562},{"type":393,"tag":508,"props":2049,"children":2050},{"class":510,"line":159},[2051],{"type":393,"tag":508,"props":2052,"children":2053},{"style":568},[2054],{"type":398,"value":2055},"# Quick cleaning demo\n",{"type":393,"tag":508,"props":2057,"children":2058},{"class":510,"line":168},[2059,2063,2067,2072],{"type":393,"tag":508,"props":2060,"children":2061},{"style":664},[2062],{"type":398,"value":841},{"type":393,"tag":508,"props":2064,"children":2065},{"style":520},[2066],{"type":398,"value":846},{"type":393,"tag":508,"props":2068,"children":2069},{"style":595},[2070],{"type":398,"value":2071},"\"🧹 Cleaning Steps:\"",{"type":393,"tag":508,"props":2073,"children":2074},{"style":520},[2075],{"type":398,"value":856},{"type":393,"tag":508,"props":2077,"children":2078},{"class":510,"line":177},[2079,2083],{"type":393,"tag":508,"props":2080,"children":2081},{"style":664},[2082],{"type":398,"value":841},{"type":393,"tag":508,"props":2084,"children":2085},{"style":520},[2086],{"type":398,"value":880},{"type":393,"tag":508,"props":2088,"children":2089},{"class":510,"line":186},[2090],{"type":393,"tag":508,"props":2091,"children":2092},{"emptyLinePlaceholder":12},[2093],{"type":398,"value":562},{"type":393,"tag":508,"props":2095,"children":2096},{"class":510,"line":197},[2097],{"type":393,"tag":508,"props":2098,"children":2099},{"style":568},[2100],{"type":398,"value":2101},"# Step 1: Remove duplicates\n",{"type":393,"tag":508,"props":2103,"children":2104},{"class":510,"line":206},[2105,2109,2113,2118],{"type":393,"tag":508,"props":2106,"children":2107},{"style":664},[2108],{"type":398,"value":841},{"type":393,"tag":508,"props":2110,"children":2111},{"style":520},[2112],{"type":398,"value":846},{"type":393,"tag":508,"props":2114,"children":2115},{"style":595},[2116],{"type":398,"value":2117},"\"1️⃣ Remove duplicates:\"",{"type":393,"tag":508,"props":2119,"children":2120},{"style":520},[2121],{"type":398,"value":856},{"type":393,"tag":508,"props":2123,"children":2124},{"class":510,"line":215},[2125,2130,2134],{"type":393,"tag":508,"props":2126,"children":2127},{"style":520},[2128],{"type":398,"value":2129},"cleaned ",{"type":393,"tag":508,"props":2131,"children":2132},{"style":514},[2133],{"type":398,"value":584},{"type":393,"tag":508,"props":2135,"children":2136},{"style":520},[2137],{"type":398,"value":2138}," customers.drop_duplicates()\n",{"type":393,"tag":508,"props":2140,"children":2141},{"class":510,"line":224},[2142,2146,2150,2155,2160,2165,2170,2175,2180,2184,2189,2193,2198],{"type":393,"tag":508,"props":2143,"children":2144},{"style":664},[2145],{"type":398,"value":841},{"type":393,"tag":508,"props":2147,"children":2148},{"style":520},[2149],{"type":398,"value":846},{"type":393,"tag":508,"props":2151,"children":2152},{"style":514},[2153],{"type":398,"value":2154},"f",{"type":393,"tag":508,"props":2156,"children":2157},{"style":595},[2158],{"type":398,"value":2159},"\"Rows: ",{"type":393,"tag":508,"props":2161,"children":2162},{"style":664},[2163],{"type":398,"value":2164},"{len",{"type":393,"tag":508,"props":2166,"children":2167},{"style":520},[2168],{"type":398,"value":2169},"(customers)",{"type":393,"tag":508,"props":2171,"children":2172},{"style":664},[2173],{"type":398,"value":2174},"}",{"type":393,"tag":508,"props":2176,"children":2177},{"style":595},[2178],{"type":398,"value":2179}," → ",{"type":393,"tag":508,"props":2181,"children":2182},{"style":664},[2183],{"type":398,"value":2164},{"type":393,"tag":508,"props":2185,"children":2186},{"style":520},[2187],{"type":398,"value":2188},"(cleaned)",{"type":393,"tag":508,"props":2190,"children":2191},{"style":664},[2192],{"type":398,"value":2174},{"type":393,"tag":508,"props":2194,"children":2195},{"style":595},[2196],{"type":398,"value":2197},"\"",{"type":393,"tag":508,"props":2199,"children":2200},{"style":520},[2201],{"type":398,"value":856},{"type":393,"tag":508,"props":2203,"children":2204},{"class":510,"line":233},[2205,2209],{"type":393,"tag":508,"props":2206,"children":2207},{"style":664},[2208],{"type":398,"value":841},{"type":393,"tag":508,"props":2210,"children":2211},{"style":520},[2212],{"type":398,"value":880},{"type":393,"tag":508,"props":2214,"children":2215},{"class":510,"line":244},[2216],{"type":393,"tag":508,"props":2217,"children":2218},{"emptyLinePlaceholder":12},[2219],{"type":398,"value":562},{"type":393,"tag":508,"props":2221,"children":2222},{"class":510,"line":253},[2223],{"type":393,"tag":508,"props":2224,"children":2225},{"style":568},[2226],{"type":398,"value":2227},"# Step 2: Clean names\n",{"type":393,"tag":508,"props":2229,"children":2230},{"class":510,"line":262},[2231,2235,2239,2244],{"type":393,"tag":508,"props":2232,"children":2233},{"style":664},[2234],{"type":398,"value":841},{"type":393,"tag":508,"props":2236,"children":2237},{"style":520},[2238],{"type":398,"value":846},{"type":393,"tag":508,"props":2240,"children":2241},{"style":595},[2242],{"type":398,"value":2243},"\"2️⃣ Clean names:\"",{"type":393,"tag":508,"props":2245,"children":2246},{"style":520},[2247],{"type":398,"value":856},{"type":393,"tag":508,"props":2249,"children":2250},{"class":510,"line":271},[2251,2256,2261,2266,2270,2275,2279],{"type":393,"tag":508,"props":2252,"children":2253},{"style":520},[2254],{"type":398,"value":2255},"cleaned[",{"type":393,"tag":508,"props":2257,"children":2258},{"style":595},[2259],{"type":398,"value":2260},"'name'",{"type":393,"tag":508,"props":2262,"children":2263},{"style":520},[2264],{"type":398,"value":2265},"] ",{"type":393,"tag":508,"props":2267,"children":2268},{"style":514},[2269],{"type":398,"value":584},{"type":393,"tag":508,"props":2271,"children":2272},{"style":520},[2273],{"type":398,"value":2274}," cleaned[",{"type":393,"tag":508,"props":2276,"children":2277},{"style":595},[2278],{"type":398,"value":2260},{"type":393,"tag":508,"props":2280,"children":2281},{"style":520},[2282],{"type":398,"value":2283},"].str.strip().str.title()\n",{"type":393,"tag":508,"props":2285,"children":2286},{"class":510,"line":281},[2287,2291,2296,2301,2305,2309,2314,2320,2324,2329],{"type":393,"tag":508,"props":2288,"children":2289},{"style":664},[2290],{"type":398,"value":841},{"type":393,"tag":508,"props":2292,"children":2293},{"style":520},[2294],{"type":398,"value":2295},"(cleaned[[",{"type":393,"tag":508,"props":2297,"children":2298},{"style":595},[2299],{"type":398,"value":2300},"'customer_id'",{"type":393,"tag":508,"props":2302,"children":2303},{"style":520},[2304],{"type":398,"value":613},{"type":393,"tag":508,"props":2306,"children":2307},{"style":595},[2308],{"type":398,"value":2260},{"type":393,"tag":508,"props":2310,"children":2311},{"style":520},[2312],{"type":398,"value":2313},"]].to_string(",{"type":393,"tag":508,"props":2315,"children":2317},{"style":2316},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2318],{"type":398,"value":2319},"index",{"type":393,"tag":508,"props":2321,"children":2322},{"style":514},[2323],{"type":398,"value":584},{"type":393,"tag":508,"props":2325,"children":2326},{"style":664},[2327],{"type":398,"value":2328},"False",{"type":393,"tag":508,"props":2330,"children":2331},{"style":520},[2332],{"type":398,"value":2333},"))\n",{"type":393,"tag":508,"props":2335,"children":2336},{"class":510,"line":290},[2337,2341],{"type":393,"tag":508,"props":2338,"children":2339},{"style":664},[2340],{"type":398,"value":841},{"type":393,"tag":508,"props":2342,"children":2343},{"style":520},[2344],{"type":398,"value":880},{"type":393,"tag":508,"props":2346,"children":2347},{"class":510,"line":299},[2348],{"type":393,"tag":508,"props":2349,"children":2350},{"emptyLinePlaceholder":12},[2351],{"type":398,"value":562},{"type":393,"tag":508,"props":2353,"children":2354},{"class":510,"line":308},[2355],{"type":393,"tag":508,"props":2356,"children":2357},{"style":568},[2358],{"type":398,"value":2359},"# Step 3: Handle missing values\n",{"type":393,"tag":508,"props":2361,"children":2362},{"class":510,"line":318},[2363,2367,2371,2376],{"type":393,"tag":508,"props":2364,"children":2365},{"style":664},[2366],{"type":398,"value":841},{"type":393,"tag":508,"props":2368,"children":2369},{"style":520},[2370],{"type":398,"value":846},{"type":393,"tag":508,"props":2372,"children":2373},{"style":595},[2374],{"type":398,"value":2375},"\"3️⃣ Handle missing purchase amounts:\"",{"type":393,"tag":508,"props":2377,"children":2378},{"style":520},[2379],{"type":398,"value":856},{"type":393,"tag":508,"props":2381,"children":2382},{"class":510,"line":327},[2383,2387,2392,2396,2400,2404,2408,2413,2418],{"type":393,"tag":508,"props":2384,"children":2385},{"style":520},[2386],{"type":398,"value":2255},{"type":393,"tag":508,"props":2388,"children":2389},{"style":595},[2390],{"type":398,"value":2391},"'purchase_amount'",{"type":393,"tag":508,"props":2393,"children":2394},{"style":520},[2395],{"type":398,"value":2265},{"type":393,"tag":508,"props":2397,"children":2398},{"style":514},[2399],{"type":398,"value":584},{"type":393,"tag":508,"props":2401,"children":2402},{"style":520},[2403],{"type":398,"value":2274},{"type":393,"tag":508,"props":2405,"children":2406},{"style":595},[2407],{"type":398,"value":2391},{"type":393,"tag":508,"props":2409,"children":2410},{"style":520},[2411],{"type":398,"value":2412},"].fillna(",{"type":393,"tag":508,"props":2414,"children":2415},{"style":595},[2416],{"type":398,"value":2417},"'0'",{"type":393,"tag":508,"props":2419,"children":2420},{"style":520},[2421],{"type":398,"value":856},{"type":393,"tag":508,"props":2423,"children":2424},{"class":510,"line":336},[2425,2429,2433,2438],{"type":393,"tag":508,"props":2426,"children":2427},{"style":664},[2428],{"type":398,"value":841},{"type":393,"tag":508,"props":2430,"children":2431},{"style":520},[2432],{"type":398,"value":846},{"type":393,"tag":508,"props":2434,"children":2435},{"style":595},[2436],{"type":398,"value":2437},"\"Missing values filled with 0\"",{"type":393,"tag":508,"props":2439,"children":2440},{"style":520},[2441],{"type":398,"value":856},{"type":393,"tag":508,"props":2443,"children":2444},{"class":510,"line":346},[2445,2449],{"type":393,"tag":508,"props":2446,"children":2447},{"style":664},[2448],{"type":398,"value":841},{"type":393,"tag":508,"props":2450,"children":2451},{"style":520},[2452],{"type":398,"value":880},{"type":393,"tag":508,"props":2454,"children":2455},{"class":510,"line":355},[2456],{"type":393,"tag":508,"props":2457,"children":2458},{"emptyLinePlaceholder":12},[2459],{"type":398,"value":562},{"type":393,"tag":508,"props":2461,"children":2462},{"class":510,"line":364},[2463,2467,2471,2476],{"type":393,"tag":508,"props":2464,"children":2465},{"style":664},[2466],{"type":398,"value":841},{"type":393,"tag":508,"props":2468,"children":2469},{"style":520},[2470],{"type":398,"value":846},{"type":393,"tag":508,"props":2472,"children":2473},{"style":595},[2474],{"type":398,"value":2475},"\"🎯 Result: Clean, consistent data ready for analysis!\"",{"type":393,"tag":508,"props":2477,"children":2478},{"style":520},[2479],{"type":398,"value":856},{"type":393,"tag":481,"props":2481,"children":2483},{"id":2482},"what-youll-learn-in-this-section",[2484],{"type":398,"value":2485},"📊 What You'll Learn in This Section",{"type":393,"tag":401,"props":2487,"children":2488},{},[2489],{"type":398,"value":2490},"Master the essential data cleaning techniques:",{"type":393,"tag":431,"props":2492,"children":2493},{},[2494,2506,2517,2528],{"type":393,"tag":435,"props":2495,"children":2496},{},[2497,2499,2504],{"type":398,"value":2498},"🔍 ",{"type":393,"tag":2500,"props":2501,"children":2502},"a",{"href":193},[2503],{"type":398,"value":194},{"type":398,"value":2505}," Learn to identify, fill, or remove missing values effectively.",{"type":393,"tag":435,"props":2507,"children":2508},{},[2509,2511,2515],{"type":398,"value":2510},"🧹 ",{"type":393,"tag":2500,"props":2512,"children":2513},{"href":202},[2514],{"type":398,"value":203},{"type":398,"value":2516}," Find and eliminate duplicate rows from your datasets.",{"type":393,"tag":435,"props":2518,"children":2519},{},[2520,2522,2526],{"type":398,"value":2521},"🔄 ",{"type":393,"tag":2500,"props":2523,"children":2524},{"href":211},[2525],{"type":398,"value":212},{"type":398,"value":2527}," Convert data to the right types for proper analysis.",{"type":393,"tag":435,"props":2529,"children":2530},{},[2531,2533,2537],{"type":398,"value":2532},"📝 ",{"type":393,"tag":2500,"props":2534,"children":2535},{"href":220},[2536],{"type":398,"value":221},{"type":398,"value":2538}," Clean and standardize text data for consistency.",{"type":393,"tag":481,"props":2540,"children":2542},{"id":2541},"common-data-quality-issues",[2543],{"type":398,"value":2544},"🎯 Common Data Quality Issues",{"type":393,"tag":401,"props":2546,"children":2547},{},[2548],{"type":398,"value":2549},"Real datasets have predictable problems:",{"type":393,"tag":493,"props":2551,"children":2552},{},[2553],{"type":393,"tag":497,"props":2554,"children":2556},{"className":499,"code":2555,"language":501,"meta":6,"style":6},"import pandas as pd\nimport numpy as np\n\n# Survey data with common issues\nsurvey = pd.DataFrame({\n    'response_id': [1, 2, 3, 4, 5, 3],  # Duplicate ID\n    'age': [25, None, 35, '30', 45, 35],  # Missing and wrong type\n    'city': ['  NYC  ', 'los angeles', 'CHICAGO', '  NYC  ', '', 'CHICAGO'],  # Inconsistent format\n    'rating': [5, 4, None, 3, 2, None],  # Missing ratings\n    'feedback': ['Great!', 'good', 'EXCELLENT', 'okay', '', 'EXCELLENT']  # Inconsistent case\n})\n\nprint(\"📋 Survey Data - Common Issues:\")\nprint(survey)\nprint()\n\nprint(\"🔍 Data Quality Check:\")\nprint(f\"Total responses: {len(survey)}\")\nprint(f\"Duplicate IDs: {survey['response_id'].duplicated().sum()}\")\nprint(f\"Missing ages: {survey['age'].isna().sum()}\")\nprint(f\"Missing ratings: {survey['rating'].isna().sum()}\")\nprint(f\"Empty cities: {(survey['city'] == '').sum()}\")\nprint(f\"Empty feedback: {(survey['feedback'] == '').sum()}\")\nprint()\n\nprint(\"🎯 This section will teach you to fix all these issues!\")\n",[2557],{"type":393,"tag":504,"props":2558,"children":2559},{"__ignoreMap":6},[2560,2579,2598,2605,2613,2629,2696,2763,2831,2896,2966,2973,2980,3000,3012,3023,3030,3050,3091,3143,3193,3242,3307,3368,3379,3386],{"type":393,"tag":508,"props":2561,"children":2562},{"class":510,"line":11},[2563,2567,2571,2575],{"type":393,"tag":508,"props":2564,"children":2565},{"style":514},[2566],{"type":398,"value":517},{"type":393,"tag":508,"props":2568,"children":2569},{"style":520},[2570],{"type":398,"value":523},{"type":393,"tag":508,"props":2572,"children":2573},{"style":514},[2574],{"type":398,"value":528},{"type":393,"tag":508,"props":2576,"children":2577},{"style":520},[2578],{"type":398,"value":533},{"type":393,"tag":508,"props":2580,"children":2581},{"class":510,"line":27},[2582,2586,2590,2594],{"type":393,"tag":508,"props":2583,"children":2584},{"style":514},[2585],{"type":398,"value":517},{"type":393,"tag":508,"props":2587,"children":2588},{"style":520},[2589],{"type":398,"value":545},{"type":393,"tag":508,"props":2591,"children":2592},{"style":514},[2593],{"type":398,"value":528},{"type":393,"tag":508,"props":2595,"children":2596},{"style":520},[2597],{"type":398,"value":554},{"type":393,"tag":508,"props":2599,"children":2600},{"class":510,"line":36},[2601],{"type":393,"tag":508,"props":2602,"children":2603},{"emptyLinePlaceholder":12},[2604],{"type":398,"value":562},{"type":393,"tag":508,"props":2606,"children":2607},{"class":510,"line":45},[2608],{"type":393,"tag":508,"props":2609,"children":2610},{"style":568},[2611],{"type":398,"value":2612},"# Survey data with common issues\n",{"type":393,"tag":508,"props":2614,"children":2615},{"class":510,"line":54},[2616,2621,2625],{"type":393,"tag":508,"props":2617,"children":2618},{"style":520},[2619],{"type":398,"value":2620},"survey ",{"type":393,"tag":508,"props":2622,"children":2623},{"style":514},[2624],{"type":398,"value":584},{"type":393,"tag":508,"props":2626,"children":2627},{"style":520},[2628],{"type":398,"value":589},{"type":393,"tag":508,"props":2630,"children":2631},{"class":510,"line":63},[2632,2637,2641,2645,2649,2653,2657,2661,2665,2669,2673,2678,2682,2686,2691],{"type":393,"tag":508,"props":2633,"children":2634},{"style":595},[2635],{"type":398,"value":2636},"    'response_id'",{"type":393,"tag":508,"props":2638,"children":2639},{"style":520},[2640],{"type":398,"value":603},{"type":393,"tag":508,"props":2642,"children":2643},{"style":664},[2644],{"type":398,"value":1780},{"type":393,"tag":508,"props":2646,"children":2647},{"style":520},[2648],{"type":398,"value":613},{"type":393,"tag":508,"props":2650,"children":2651},{"style":664},[2652],{"type":398,"value":1789},{"type":393,"tag":508,"props":2654,"children":2655},{"style":520},[2656],{"type":398,"value":613},{"type":393,"tag":508,"props":2658,"children":2659},{"style":664},[2660],{"type":398,"value":1798},{"type":393,"tag":508,"props":2662,"children":2663},{"style":520},[2664],{"type":398,"value":613},{"type":393,"tag":508,"props":2666,"children":2667},{"style":664},[2668],{"type":398,"value":1815},{"type":393,"tag":508,"props":2670,"children":2671},{"style":520},[2672],{"type":398,"value":613},{"type":393,"tag":508,"props":2674,"children":2675},{"style":664},[2676],{"type":398,"value":2677},"5",{"type":393,"tag":508,"props":2679,"children":2680},{"style":520},[2681],{"type":398,"value":613},{"type":393,"tag":508,"props":2683,"children":2684},{"style":664},[2685],{"type":398,"value":1798},{"type":393,"tag":508,"props":2687,"children":2688},{"style":520},[2689],{"type":398,"value":2690},"],  ",{"type":393,"tag":508,"props":2692,"children":2693},{"style":568},[2694],{"type":398,"value":2695},"# Duplicate ID\n",{"type":393,"tag":508,"props":2697,"children":2698},{"class":510,"line":72},[2699,2703,2707,2711,2715,2719,2723,2728,2732,2737,2741,2746,2750,2754,2758],{"type":393,"tag":508,"props":2700,"children":2701},{"style":595},[2702],{"type":398,"value":657},{"type":393,"tag":508,"props":2704,"children":2705},{"style":520},[2706],{"type":398,"value":603},{"type":393,"tag":508,"props":2708,"children":2709},{"style":664},[2710],{"type":398,"value":667},{"type":393,"tag":508,"props":2712,"children":2713},{"style":520},[2714],{"type":398,"value":613},{"type":393,"tag":508,"props":2716,"children":2717},{"style":664},[2718],{"type":398,"value":676},{"type":393,"tag":508,"props":2720,"children":2721},{"style":520},[2722],{"type":398,"value":613},{"type":393,"tag":508,"props":2724,"children":2725},{"style":664},[2726],{"type":398,"value":2727},"35",{"type":393,"tag":508,"props":2729,"children":2730},{"style":520},[2731],{"type":398,"value":613},{"type":393,"tag":508,"props":2733,"children":2734},{"style":595},[2735],{"type":398,"value":2736},"'30'",{"type":393,"tag":508,"props":2738,"children":2739},{"style":520},[2740],{"type":398,"value":613},{"type":393,"tag":508,"props":2742,"children":2743},{"style":664},[2744],{"type":398,"value":2745},"45",{"type":393,"tag":508,"props":2747,"children":2748},{"style":520},[2749],{"type":398,"value":613},{"type":393,"tag":508,"props":2751,"children":2752},{"style":664},[2753],{"type":398,"value":2727},{"type":393,"tag":508,"props":2755,"children":2756},{"style":520},[2757],{"type":398,"value":2690},{"type":393,"tag":508,"props":2759,"children":2760},{"style":568},[2761],{"type":398,"value":2762},"# Missing and wrong type\n",{"type":393,"tag":508,"props":2764,"children":2765},{"class":510,"line":83},[2766,2771,2775,2780,2784,2789,2793,2798,2802,2806,2810,2814,2818,2822,2826],{"type":393,"tag":508,"props":2767,"children":2768},{"style":595},[2769],{"type":398,"value":2770},"    'city'",{"type":393,"tag":508,"props":2772,"children":2773},{"style":520},[2774],{"type":398,"value":603},{"type":393,"tag":508,"props":2776,"children":2777},{"style":595},[2778],{"type":398,"value":2779},"'  NYC  '",{"type":393,"tag":508,"props":2781,"children":2782},{"style":520},[2783],{"type":398,"value":613},{"type":393,"tag":508,"props":2785,"children":2786},{"style":595},[2787],{"type":398,"value":2788},"'los angeles'",{"type":393,"tag":508,"props":2790,"children":2791},{"style":520},[2792],{"type":398,"value":613},{"type":393,"tag":508,"props":2794,"children":2795},{"style":595},[2796],{"type":398,"value":2797},"'CHICAGO'",{"type":393,"tag":508,"props":2799,"children":2800},{"style":520},[2801],{"type":398,"value":613},{"type":393,"tag":508,"props":2803,"children":2804},{"style":595},[2805],{"type":398,"value":2779},{"type":393,"tag":508,"props":2807,"children":2808},{"style":520},[2809],{"type":398,"value":613},{"type":393,"tag":508,"props":2811,"children":2812},{"style":595},[2813],{"type":398,"value":758},{"type":393,"tag":508,"props":2815,"children":2816},{"style":520},[2817],{"type":398,"value":613},{"type":393,"tag":508,"props":2819,"children":2820},{"style":595},[2821],{"type":398,"value":2797},{"type":393,"tag":508,"props":2823,"children":2824},{"style":520},[2825],{"type":398,"value":2690},{"type":393,"tag":508,"props":2827,"children":2828},{"style":568},[2829],{"type":398,"value":2830},"# Inconsistent format\n",{"type":393,"tag":508,"props":2832,"children":2833},{"class":510,"line":92},[2834,2839,2843,2847,2851,2855,2859,2863,2867,2871,2875,2879,2883,2887,2891],{"type":393,"tag":508,"props":2835,"children":2836},{"style":595},[2837],{"type":398,"value":2838},"    'rating'",{"type":393,"tag":508,"props":2840,"children":2841},{"style":520},[2842],{"type":398,"value":603},{"type":393,"tag":508,"props":2844,"children":2845},{"style":664},[2846],{"type":398,"value":2677},{"type":393,"tag":508,"props":2848,"children":2849},{"style":520},[2850],{"type":398,"value":613},{"type":393,"tag":508,"props":2852,"children":2853},{"style":664},[2854],{"type":398,"value":1815},{"type":393,"tag":508,"props":2856,"children":2857},{"style":520},[2858],{"type":398,"value":613},{"type":393,"tag":508,"props":2860,"children":2861},{"style":664},[2862],{"type":398,"value":676},{"type":393,"tag":508,"props":2864,"children":2865},{"style":520},[2866],{"type":398,"value":613},{"type":393,"tag":508,"props":2868,"children":2869},{"style":664},[2870],{"type":398,"value":1798},{"type":393,"tag":508,"props":2872,"children":2873},{"style":520},[2874],{"type":398,"value":613},{"type":393,"tag":508,"props":2876,"children":2877},{"style":664},[2878],{"type":398,"value":1789},{"type":393,"tag":508,"props":2880,"children":2881},{"style":520},[2882],{"type":398,"value":613},{"type":393,"tag":508,"props":2884,"children":2885},{"style":664},[2886],{"type":398,"value":676},{"type":393,"tag":508,"props":2888,"children":2889},{"style":520},[2890],{"type":398,"value":2690},{"type":393,"tag":508,"props":2892,"children":2893},{"style":568},[2894],{"type":398,"value":2895},"# Missing ratings\n",{"type":393,"tag":508,"props":2897,"children":2898},{"class":510,"line":101},[2899,2904,2908,2913,2917,2922,2926,2931,2935,2940,2944,2948,2952,2956,2961],{"type":393,"tag":508,"props":2900,"children":2901},{"style":595},[2902],{"type":398,"value":2903},"    'feedback'",{"type":393,"tag":508,"props":2905,"children":2906},{"style":520},[2907],{"type":398,"value":603},{"type":393,"tag":508,"props":2909,"children":2910},{"style":595},[2911],{"type":398,"value":2912},"'Great!'",{"type":393,"tag":508,"props":2914,"children":2915},{"style":520},[2916],{"type":398,"value":613},{"type":393,"tag":508,"props":2918,"children":2919},{"style":595},[2920],{"type":398,"value":2921},"'good'",{"type":393,"tag":508,"props":2923,"children":2924},{"style":520},[2925],{"type":398,"value":613},{"type":393,"tag":508,"props":2927,"children":2928},{"style":595},[2929],{"type":398,"value":2930},"'EXCELLENT'",{"type":393,"tag":508,"props":2932,"children":2933},{"style":520},[2934],{"type":398,"value":613},{"type":393,"tag":508,"props":2936,"children":2937},{"style":595},[2938],{"type":398,"value":2939},"'okay'",{"type":393,"tag":508,"props":2941,"children":2942},{"style":520},[2943],{"type":398,"value":613},{"type":393,"tag":508,"props":2945,"children":2946},{"style":595},[2947],{"type":398,"value":758},{"type":393,"tag":508,"props":2949,"children":2950},{"style":520},[2951],{"type":398,"value":613},{"type":393,"tag":508,"props":2953,"children":2954},{"style":595},[2955],{"type":398,"value":2930},{"type":393,"tag":508,"props":2957,"children":2958},{"style":520},[2959],{"type":398,"value":2960},"]  ",{"type":393,"tag":508,"props":2962,"children":2963},{"style":568},[2964],{"type":398,"value":2965},"# Inconsistent case\n",{"type":393,"tag":508,"props":2967,"children":2968},{"class":510,"line":110},[2969],{"type":393,"tag":508,"props":2970,"children":2971},{"style":520},[2972],{"type":398,"value":826},{"type":393,"tag":508,"props":2974,"children":2975},{"class":510,"line":121},[2976],{"type":393,"tag":508,"props":2977,"children":2978},{"emptyLinePlaceholder":12},[2979],{"type":398,"value":562},{"type":393,"tag":508,"props":2981,"children":2982},{"class":510,"line":130},[2983,2987,2991,2996],{"type":393,"tag":508,"props":2984,"children":2985},{"style":664},[2986],{"type":398,"value":841},{"type":393,"tag":508,"props":2988,"children":2989},{"style":520},[2990],{"type":398,"value":846},{"type":393,"tag":508,"props":2992,"children":2993},{"style":595},[2994],{"type":398,"value":2995},"\"📋 Survey Data - Common Issues:\"",{"type":393,"tag":508,"props":2997,"children":2998},{"style":520},[2999],{"type":398,"value":856},{"type":393,"tag":508,"props":3001,"children":3002},{"class":510,"line":139},[3003,3007],{"type":393,"tag":508,"props":3004,"children":3005},{"style":664},[3006],{"type":398,"value":841},{"type":393,"tag":508,"props":3008,"children":3009},{"style":520},[3010],{"type":398,"value":3011},"(survey)\n",{"type":393,"tag":508,"props":3013,"children":3014},{"class":510,"line":148},[3015,3019],{"type":393,"tag":508,"props":3016,"children":3017},{"style":664},[3018],{"type":398,"value":841},{"type":393,"tag":508,"props":3020,"children":3021},{"style":520},[3022],{"type":398,"value":880},{"type":393,"tag":508,"props":3024,"children":3025},{"class":510,"line":159},[3026],{"type":393,"tag":508,"props":3027,"children":3028},{"emptyLinePlaceholder":12},[3029],{"type":398,"value":562},{"type":393,"tag":508,"props":3031,"children":3032},{"class":510,"line":168},[3033,3037,3041,3046],{"type":393,"tag":508,"props":3034,"children":3035},{"style":664},[3036],{"type":398,"value":841},{"type":393,"tag":508,"props":3038,"children":3039},{"style":520},[3040],{"type":398,"value":846},{"type":393,"tag":508,"props":3042,"children":3043},{"style":595},[3044],{"type":398,"value":3045},"\"🔍 Data Quality Check:\"",{"type":393,"tag":508,"props":3047,"children":3048},{"style":520},[3049],{"type":398,"value":856},{"type":393,"tag":508,"props":3051,"children":3052},{"class":510,"line":177},[3053,3057,3061,3065,3070,3074,3079,3083,3087],{"type":393,"tag":508,"props":3054,"children":3055},{"style":664},[3056],{"type":398,"value":841},{"type":393,"tag":508,"props":3058,"children":3059},{"style":520},[3060],{"type":398,"value":846},{"type":393,"tag":508,"props":3062,"children":3063},{"style":514},[3064],{"type":398,"value":2154},{"type":393,"tag":508,"props":3066,"children":3067},{"style":595},[3068],{"type":398,"value":3069},"\"Total responses: ",{"type":393,"tag":508,"props":3071,"children":3072},{"style":664},[3073],{"type":398,"value":2164},{"type":393,"tag":508,"props":3075,"children":3076},{"style":520},[3077],{"type":398,"value":3078},"(survey)",{"type":393,"tag":508,"props":3080,"children":3081},{"style":664},[3082],{"type":398,"value":2174},{"type":393,"tag":508,"props":3084,"children":3085},{"style":595},[3086],{"type":398,"value":2197},{"type":393,"tag":508,"props":3088,"children":3089},{"style":520},[3090],{"type":398,"value":856},{"type":393,"tag":508,"props":3092,"children":3093},{"class":510,"line":186},[3094,3098,3102,3106,3111,3116,3121,3126,3131,3135,3139],{"type":393,"tag":508,"props":3095,"children":3096},{"style":664},[3097],{"type":398,"value":841},{"type":393,"tag":508,"props":3099,"children":3100},{"style":520},[3101],{"type":398,"value":846},{"type":393,"tag":508,"props":3103,"children":3104},{"style":514},[3105],{"type":398,"value":2154},{"type":393,"tag":508,"props":3107,"children":3108},{"style":595},[3109],{"type":398,"value":3110},"\"Duplicate IDs: ",{"type":393,"tag":508,"props":3112,"children":3113},{"style":664},[3114],{"type":398,"value":3115},"{",{"type":393,"tag":508,"props":3117,"children":3118},{"style":520},[3119],{"type":398,"value":3120},"survey[",{"type":393,"tag":508,"props":3122,"children":3123},{"style":595},[3124],{"type":398,"value":3125},"'response_id'",{"type":393,"tag":508,"props":3127,"children":3128},{"style":520},[3129],{"type":398,"value":3130},"].duplicated().sum()",{"type":393,"tag":508,"props":3132,"children":3133},{"style":664},[3134],{"type":398,"value":2174},{"type":393,"tag":508,"props":3136,"children":3137},{"style":595},[3138],{"type":398,"value":2197},{"type":393,"tag":508,"props":3140,"children":3141},{"style":520},[3142],{"type":398,"value":856},{"type":393,"tag":508,"props":3144,"children":3145},{"class":510,"line":197},[3146,3150,3154,3158,3163,3167,3171,3176,3181,3185,3189],{"type":393,"tag":508,"props":3147,"children":3148},{"style":664},[3149],{"type":398,"value":841},{"type":393,"tag":508,"props":3151,"children":3152},{"style":520},[3153],{"type":398,"value":846},{"type":393,"tag":508,"props":3155,"children":3156},{"style":514},[3157],{"type":398,"value":2154},{"type":393,"tag":508,"props":3159,"children":3160},{"style":595},[3161],{"type":398,"value":3162},"\"Missing ages: ",{"type":393,"tag":508,"props":3164,"children":3165},{"style":664},[3166],{"type":398,"value":3115},{"type":393,"tag":508,"props":3168,"children":3169},{"style":520},[3170],{"type":398,"value":3120},{"type":393,"tag":508,"props":3172,"children":3173},{"style":595},[3174],{"type":398,"value":3175},"'age'",{"type":393,"tag":508,"props":3177,"children":3178},{"style":520},[3179],{"type":398,"value":3180},"].isna().sum()",{"type":393,"tag":508,"props":3182,"children":3183},{"style":664},[3184],{"type":398,"value":2174},{"type":393,"tag":508,"props":3186,"children":3187},{"style":595},[3188],{"type":398,"value":2197},{"type":393,"tag":508,"props":3190,"children":3191},{"style":520},[3192],{"type":398,"value":856},{"type":393,"tag":508,"props":3194,"children":3195},{"class":510,"line":206},[3196,3200,3204,3208,3213,3217,3221,3226,3230,3234,3238],{"type":393,"tag":508,"props":3197,"children":3198},{"style":664},[3199],{"type":398,"value":841},{"type":393,"tag":508,"props":3201,"children":3202},{"style":520},[3203],{"type":398,"value":846},{"type":393,"tag":508,"props":3205,"children":3206},{"style":514},[3207],{"type":398,"value":2154},{"type":393,"tag":508,"props":3209,"children":3210},{"style":595},[3211],{"type":398,"value":3212},"\"Missing ratings: ",{"type":393,"tag":508,"props":3214,"children":3215},{"style":664},[3216],{"type":398,"value":3115},{"type":393,"tag":508,"props":3218,"children":3219},{"style":520},[3220],{"type":398,"value":3120},{"type":393,"tag":508,"props":3222,"children":3223},{"style":595},[3224],{"type":398,"value":3225},"'rating'",{"type":393,"tag":508,"props":3227,"children":3228},{"style":520},[3229],{"type":398,"value":3180},{"type":393,"tag":508,"props":3231,"children":3232},{"style":664},[3233],{"type":398,"value":2174},{"type":393,"tag":508,"props":3235,"children":3236},{"style":595},[3237],{"type":398,"value":2197},{"type":393,"tag":508,"props":3239,"children":3240},{"style":520},[3241],{"type":398,"value":856},{"type":393,"tag":508,"props":3243,"children":3244},{"class":510,"line":215},[3245,3249,3253,3257,3262,3266,3271,3276,3280,3285,3290,3295,3299,3303],{"type":393,"tag":508,"props":3246,"children":3247},{"style":664},[3248],{"type":398,"value":841},{"type":393,"tag":508,"props":3250,"children":3251},{"style":520},[3252],{"type":398,"value":846},{"type":393,"tag":508,"props":3254,"children":3255},{"style":514},[3256],{"type":398,"value":2154},{"type":393,"tag":508,"props":3258,"children":3259},{"style":595},[3260],{"type":398,"value":3261},"\"Empty cities: ",{"type":393,"tag":508,"props":3263,"children":3264},{"style":664},[3265],{"type":398,"value":3115},{"type":393,"tag":508,"props":3267,"children":3268},{"style":520},[3269],{"type":398,"value":3270},"(survey[",{"type":393,"tag":508,"props":3272,"children":3273},{"style":595},[3274],{"type":398,"value":3275},"'city'",{"type":393,"tag":508,"props":3277,"children":3278},{"style":520},[3279],{"type":398,"value":2265},{"type":393,"tag":508,"props":3281,"children":3282},{"style":514},[3283],{"type":398,"value":3284},"==",{"type":393,"tag":508,"props":3286,"children":3287},{"style":595},[3288],{"type":398,"value":3289}," ''",{"type":393,"tag":508,"props":3291,"children":3292},{"style":520},[3293],{"type":398,"value":3294},").sum()",{"type":393,"tag":508,"props":3296,"children":3297},{"style":664},[3298],{"type":398,"value":2174},{"type":393,"tag":508,"props":3300,"children":3301},{"style":595},[3302],{"type":398,"value":2197},{"type":393,"tag":508,"props":3304,"children":3305},{"style":520},[3306],{"type":398,"value":856},{"type":393,"tag":508,"props":3308,"children":3309},{"class":510,"line":224},[3310,3314,3318,3322,3327,3331,3335,3340,3344,3348,3352,3356,3360,3364],{"type":393,"tag":508,"props":3311,"children":3312},{"style":664},[3313],{"type":398,"value":841},{"type":393,"tag":508,"props":3315,"children":3316},{"style":520},[3317],{"type":398,"value":846},{"type":393,"tag":508,"props":3319,"children":3320},{"style":514},[3321],{"type":398,"value":2154},{"type":393,"tag":508,"props":3323,"children":3324},{"style":595},[3325],{"type":398,"value":3326},"\"Empty feedback: ",{"type":393,"tag":508,"props":3328,"children":3329},{"style":664},[3330],{"type":398,"value":3115},{"type":393,"tag":508,"props":3332,"children":3333},{"style":520},[3334],{"type":398,"value":3270},{"type":393,"tag":508,"props":3336,"children":3337},{"style":595},[3338],{"type":398,"value":3339},"'feedback'",{"type":393,"tag":508,"props":3341,"children":3342},{"style":520},[3343],{"type":398,"value":2265},{"type":393,"tag":508,"props":3345,"children":3346},{"style":514},[3347],{"type":398,"value":3284},{"type":393,"tag":508,"props":3349,"children":3350},{"style":595},[3351],{"type":398,"value":3289},{"type":393,"tag":508,"props":3353,"children":3354},{"style":520},[3355],{"type":398,"value":3294},{"type":393,"tag":508,"props":3357,"children":3358},{"style":664},[3359],{"type":398,"value":2174},{"type":393,"tag":508,"props":3361,"children":3362},{"style":595},[3363],{"type":398,"value":2197},{"type":393,"tag":508,"props":3365,"children":3366},{"style":520},[3367],{"type":398,"value":856},{"type":393,"tag":508,"props":3369,"children":3370},{"class":510,"line":233},[3371,3375],{"type":393,"tag":508,"props":3372,"children":3373},{"style":664},[3374],{"type":398,"value":841},{"type":393,"tag":508,"props":3376,"children":3377},{"style":520},[3378],{"type":398,"value":880},{"type":393,"tag":508,"props":3380,"children":3381},{"class":510,"line":244},[3382],{"type":393,"tag":508,"props":3383,"children":3384},{"emptyLinePlaceholder":12},[3385],{"type":398,"value":562},{"type":393,"tag":508,"props":3387,"children":3388},{"class":510,"line":253},[3389,3393,3397,3402],{"type":393,"tag":508,"props":3390,"children":3391},{"style":664},[3392],{"type":398,"value":841},{"type":393,"tag":508,"props":3394,"children":3395},{"style":520},[3396],{"type":398,"value":846},{"type":393,"tag":508,"props":3398,"children":3399},{"style":595},[3400],{"type":398,"value":3401},"\"🎯 This section will teach you to fix all these issues!\"",{"type":393,"tag":508,"props":3403,"children":3404},{"style":520},[3405],{"type":398,"value":856},{"type":393,"tag":481,"props":3407,"children":3409},{"id":3408},"before-vs-after-cleaning",[3410],{"type":398,"value":3411},"🧪 Before vs After Cleaning",{"type":393,"tag":401,"props":3413,"children":3414},{},[3415],{"type":398,"value":3416},"See the transformation power of good data cleaning:",{"type":393,"tag":493,"props":3418,"children":3419},{},[3420],{"type":393,"tag":497,"props":3421,"children":3423},{"className":499,"code":3422,"language":501,"meta":6,"style":6},"import pandas as pd\nimport numpy as np\n\n# Product data - before cleaning\nproducts_messy = pd.DataFrame({\n    'product_name': ['  laptop  ', 'MOUSE', 'keyboard', '  laptop  ', 'monitor'],\n    'price': ['999.99', '25', None, '999.99', '300'],\n    'category': ['computer', 'ACCESSORY', 'accessory', 'computer', ''],\n    'in_stock': ['yes', 'YES', 'no', 'yes', 'No']\n})\n\nprint(\"❌ BEFORE Cleaning:\")\nprint(products_messy)\nprint()\n\n# After cleaning (preview of what you'll learn)\nproducts_clean = pd.DataFrame({\n    'product_name': ['Laptop', 'Mouse', 'Keyboard', 'Monitor'],\n    'price': [999.99, 25.0, 50.0, 300.0],  # Converted to numbers, filled missing\n    'category': ['Computer', 'Accessory', 'Accessory', 'Computer'],\n    'in_stock': [True, True, False, False]  # Converted to boolean\n})\n\nprint(\"✅ AFTER Cleaning:\")\nprint(products_clean)\nprint()\nprint(\"🎯 Improvements:\")\nprint(\"✅ Consistent text formatting\")\nprint(\"✅ Proper numeric data types\")\nprint(\"✅ No missing values\")\nprint(\"✅ No duplicates\")\nprint(\"✅ Boolean values for yes/no\")\nprint(\"✅ Ready for analysis and calculations!\")\n",[3424],{"type":393,"tag":504,"props":3425,"children":3426},{"__ignoreMap":6},[3427,3446,3465,3472,3480,3496,3552,3607,3662,3718,3725,3732,3752,3764,3775,3782,3790,3806,3853,3905,3950,3999,4006,4013,4033,4045,4056,4076,4096,4116,4135,4154,4174],{"type":393,"tag":508,"props":3428,"children":3429},{"class":510,"line":11},[3430,3434,3438,3442],{"type":393,"tag":508,"props":3431,"children":3432},{"style":514},[3433],{"type":398,"value":517},{"type":393,"tag":508,"props":3435,"children":3436},{"style":520},[3437],{"type":398,"value":523},{"type":393,"tag":508,"props":3439,"children":3440},{"style":514},[3441],{"type":398,"value":528},{"type":393,"tag":508,"props":3443,"children":3444},{"style":520},[3445],{"type":398,"value":533},{"type":393,"tag":508,"props":3447,"children":3448},{"class":510,"line":27},[3449,3453,3457,3461],{"type":393,"tag":508,"props":3450,"children":3451},{"style":514},[3452],{"type":398,"value":517},{"type":393,"tag":508,"props":3454,"children":3455},{"style":520},[3456],{"type":398,"value":545},{"type":393,"tag":508,"props":3458,"children":3459},{"style":514},[3460],{"type":398,"value":528},{"type":393,"tag":508,"props":3462,"children":3463},{"style":520},[3464],{"type":398,"value":554},{"type":393,"tag":508,"props":3466,"children":3467},{"class":510,"line":36},[3468],{"type":393,"tag":508,"props":3469,"children":3470},{"emptyLinePlaceholder":12},[3471],{"type":398,"value":562},{"type":393,"tag":508,"props":3473,"children":3474},{"class":510,"line":45},[3475],{"type":393,"tag":508,"props":3476,"children":3477},{"style":568},[3478],{"type":398,"value":3479},"# Product data - before cleaning\n",{"type":393,"tag":508,"props":3481,"children":3482},{"class":510,"line":54},[3483,3488,3492],{"type":393,"tag":508,"props":3484,"children":3485},{"style":520},[3486],{"type":398,"value":3487},"products_messy ",{"type":393,"tag":508,"props":3489,"children":3490},{"style":514},[3491],{"type":398,"value":584},{"type":393,"tag":508,"props":3493,"children":3494},{"style":520},[3495],{"type":398,"value":589},{"type":393,"tag":508,"props":3497,"children":3498},{"class":510,"line":63},[3499,3504,3508,3513,3517,3522,3526,3531,3535,3539,3543,3548],{"type":393,"tag":508,"props":3500,"children":3501},{"style":595},[3502],{"type":398,"value":3503},"    'product_name'",{"type":393,"tag":508,"props":3505,"children":3506},{"style":520},[3507],{"type":398,"value":603},{"type":393,"tag":508,"props":3509,"children":3510},{"style":595},[3511],{"type":398,"value":3512},"'  laptop  '",{"type":393,"tag":508,"props":3514,"children":3515},{"style":520},[3516],{"type":398,"value":613},{"type":393,"tag":508,"props":3518,"children":3519},{"style":595},[3520],{"type":398,"value":3521},"'MOUSE'",{"type":393,"tag":508,"props":3523,"children":3524},{"style":520},[3525],{"type":398,"value":613},{"type":393,"tag":508,"props":3527,"children":3528},{"style":595},[3529],{"type":398,"value":3530},"'keyboard'",{"type":393,"tag":508,"props":3532,"children":3533},{"style":520},[3534],{"type":398,"value":613},{"type":393,"tag":508,"props":3536,"children":3537},{"style":595},[3538],{"type":398,"value":3512},{"type":393,"tag":508,"props":3540,"children":3541},{"style":520},[3542],{"type":398,"value":613},{"type":393,"tag":508,"props":3544,"children":3545},{"style":595},[3546],{"type":398,"value":3547},"'monitor'",{"type":393,"tag":508,"props":3549,"children":3550},{"style":520},[3551],{"type":398,"value":649},{"type":393,"tag":508,"props":3553,"children":3554},{"class":510,"line":72},[3555,3560,3564,3569,3573,3578,3582,3586,3590,3594,3598,3603],{"type":393,"tag":508,"props":3556,"children":3557},{"style":595},[3558],{"type":398,"value":3559},"    'price'",{"type":393,"tag":508,"props":3561,"children":3562},{"style":520},[3563],{"type":398,"value":603},{"type":393,"tag":508,"props":3565,"children":3566},{"style":595},[3567],{"type":398,"value":3568},"'999.99'",{"type":393,"tag":508,"props":3570,"children":3571},{"style":520},[3572],{"type":398,"value":613},{"type":393,"tag":508,"props":3574,"children":3575},{"style":595},[3576],{"type":398,"value":3577},"'25'",{"type":393,"tag":508,"props":3579,"children":3580},{"style":520},[3581],{"type":398,"value":613},{"type":393,"tag":508,"props":3583,"children":3584},{"style":664},[3585],{"type":398,"value":676},{"type":393,"tag":508,"props":3587,"children":3588},{"style":520},[3589],{"type":398,"value":613},{"type":393,"tag":508,"props":3591,"children":3592},{"style":595},[3593],{"type":398,"value":3568},{"type":393,"tag":508,"props":3595,"children":3596},{"style":520},[3597],{"type":398,"value":613},{"type":393,"tag":508,"props":3599,"children":3600},{"style":595},[3601],{"type":398,"value":3602},"'300'",{"type":393,"tag":508,"props":3604,"children":3605},{"style":520},[3606],{"type":398,"value":649},{"type":393,"tag":508,"props":3608,"children":3609},{"class":510,"line":83},[3610,3615,3619,3624,3628,3633,3637,3642,3646,3650,3654,3658],{"type":393,"tag":508,"props":3611,"children":3612},{"style":595},[3613],{"type":398,"value":3614},"    'category'",{"type":393,"tag":508,"props":3616,"children":3617},{"style":520},[3618],{"type":398,"value":603},{"type":393,"tag":508,"props":3620,"children":3621},{"style":595},[3622],{"type":398,"value":3623},"'computer'",{"type":393,"tag":508,"props":3625,"children":3626},{"style":520},[3627],{"type":398,"value":613},{"type":393,"tag":508,"props":3629,"children":3630},{"style":595},[3631],{"type":398,"value":3632},"'ACCESSORY'",{"type":393,"tag":508,"props":3634,"children":3635},{"style":520},[3636],{"type":398,"value":613},{"type":393,"tag":508,"props":3638,"children":3639},{"style":595},[3640],{"type":398,"value":3641},"'accessory'",{"type":393,"tag":508,"props":3643,"children":3644},{"style":520},[3645],{"type":398,"value":613},{"type":393,"tag":508,"props":3647,"children":3648},{"style":595},[3649],{"type":398,"value":3623},{"type":393,"tag":508,"props":3651,"children":3652},{"style":520},[3653],{"type":398,"value":613},{"type":393,"tag":508,"props":3655,"children":3656},{"style":595},[3657],{"type":398,"value":758},{"type":393,"tag":508,"props":3659,"children":3660},{"style":520},[3661],{"type":398,"value":649},{"type":393,"tag":508,"props":3663,"children":3664},{"class":510,"line":92},[3665,3670,3674,3679,3683,3688,3692,3697,3701,3705,3709,3714],{"type":393,"tag":508,"props":3666,"children":3667},{"style":595},[3668],{"type":398,"value":3669},"    'in_stock'",{"type":393,"tag":508,"props":3671,"children":3672},{"style":520},[3673],{"type":398,"value":603},{"type":393,"tag":508,"props":3675,"children":3676},{"style":595},[3677],{"type":398,"value":3678},"'yes'",{"type":393,"tag":508,"props":3680,"children":3681},{"style":520},[3682],{"type":398,"value":613},{"type":393,"tag":508,"props":3684,"children":3685},{"style":595},[3686],{"type":398,"value":3687},"'YES'",{"type":393,"tag":508,"props":3689,"children":3690},{"style":520},[3691],{"type":398,"value":613},{"type":393,"tag":508,"props":3693,"children":3694},{"style":595},[3695],{"type":398,"value":3696},"'no'",{"type":393,"tag":508,"props":3698,"children":3699},{"style":520},[3700],{"type":398,"value":613},{"type":393,"tag":508,"props":3702,"children":3703},{"style":595},[3704],{"type":398,"value":3678},{"type":393,"tag":508,"props":3706,"children":3707},{"style":520},[3708],{"type":398,"value":613},{"type":393,"tag":508,"props":3710,"children":3711},{"style":595},[3712],{"type":398,"value":3713},"'No'",{"type":393,"tag":508,"props":3715,"children":3716},{"style":520},[3717],{"type":398,"value":818},{"type":393,"tag":508,"props":3719,"children":3720},{"class":510,"line":101},[3721],{"type":393,"tag":508,"props":3722,"children":3723},{"style":520},[3724],{"type":398,"value":826},{"type":393,"tag":508,"props":3726,"children":3727},{"class":510,"line":110},[3728],{"type":393,"tag":508,"props":3729,"children":3730},{"emptyLinePlaceholder":12},[3731],{"type":398,"value":562},{"type":393,"tag":508,"props":3733,"children":3734},{"class":510,"line":121},[3735,3739,3743,3748],{"type":393,"tag":508,"props":3736,"children":3737},{"style":664},[3738],{"type":398,"value":841},{"type":393,"tag":508,"props":3740,"children":3741},{"style":520},[3742],{"type":398,"value":846},{"type":393,"tag":508,"props":3744,"children":3745},{"style":595},[3746],{"type":398,"value":3747},"\"❌ BEFORE Cleaning:\"",{"type":393,"tag":508,"props":3749,"children":3750},{"style":520},[3751],{"type":398,"value":856},{"type":393,"tag":508,"props":3753,"children":3754},{"class":510,"line":130},[3755,3759],{"type":393,"tag":508,"props":3756,"children":3757},{"style":664},[3758],{"type":398,"value":841},{"type":393,"tag":508,"props":3760,"children":3761},{"style":520},[3762],{"type":398,"value":3763},"(products_messy)\n",{"type":393,"tag":508,"props":3765,"children":3766},{"class":510,"line":139},[3767,3771],{"type":393,"tag":508,"props":3768,"children":3769},{"style":664},[3770],{"type":398,"value":841},{"type":393,"tag":508,"props":3772,"children":3773},{"style":520},[3774],{"type":398,"value":880},{"type":393,"tag":508,"props":3776,"children":3777},{"class":510,"line":148},[3778],{"type":393,"tag":508,"props":3779,"children":3780},{"emptyLinePlaceholder":12},[3781],{"type":398,"value":562},{"type":393,"tag":508,"props":3783,"children":3784},{"class":510,"line":159},[3785],{"type":393,"tag":508,"props":3786,"children":3787},{"style":568},[3788],{"type":398,"value":3789},"# After cleaning (preview of what you'll learn)\n",{"type":393,"tag":508,"props":3791,"children":3792},{"class":510,"line":168},[3793,3798,3802],{"type":393,"tag":508,"props":3794,"children":3795},{"style":520},[3796],{"type":398,"value":3797},"products_clean ",{"type":393,"tag":508,"props":3799,"children":3800},{"style":514},[3801],{"type":398,"value":584},{"type":393,"tag":508,"props":3803,"children":3804},{"style":520},[3805],{"type":398,"value":589},{"type":393,"tag":508,"props":3807,"children":3808},{"class":510,"line":177},[3809,3813,3817,3822,3826,3831,3835,3840,3844,3849],{"type":393,"tag":508,"props":3810,"children":3811},{"style":595},[3812],{"type":398,"value":3503},{"type":393,"tag":508,"props":3814,"children":3815},{"style":520},[3816],{"type":398,"value":603},{"type":393,"tag":508,"props":3818,"children":3819},{"style":595},[3820],{"type":398,"value":3821},"'Laptop'",{"type":393,"tag":508,"props":3823,"children":3824},{"style":520},[3825],{"type":398,"value":613},{"type":393,"tag":508,"props":3827,"children":3828},{"style":595},[3829],{"type":398,"value":3830},"'Mouse'",{"type":393,"tag":508,"props":3832,"children":3833},{"style":520},[3834],{"type":398,"value":613},{"type":393,"tag":508,"props":3836,"children":3837},{"style":595},[3838],{"type":398,"value":3839},"'Keyboard'",{"type":393,"tag":508,"props":3841,"children":3842},{"style":520},[3843],{"type":398,"value":613},{"type":393,"tag":508,"props":3845,"children":3846},{"style":595},[3847],{"type":398,"value":3848},"'Monitor'",{"type":393,"tag":508,"props":3850,"children":3851},{"style":520},[3852],{"type":398,"value":649},{"type":393,"tag":508,"props":3854,"children":3855},{"class":510,"line":186},[3856,3860,3864,3869,3873,3878,3882,3887,3891,3896,3900],{"type":393,"tag":508,"props":3857,"children":3858},{"style":595},[3859],{"type":398,"value":3559},{"type":393,"tag":508,"props":3861,"children":3862},{"style":520},[3863],{"type":398,"value":603},{"type":393,"tag":508,"props":3865,"children":3866},{"style":664},[3867],{"type":398,"value":3868},"999.99",{"type":393,"tag":508,"props":3870,"children":3871},{"style":520},[3872],{"type":398,"value":613},{"type":393,"tag":508,"props":3874,"children":3875},{"style":664},[3876],{"type":398,"value":3877},"25.0",{"type":393,"tag":508,"props":3879,"children":3880},{"style":520},[3881],{"type":398,"value":613},{"type":393,"tag":508,"props":3883,"children":3884},{"style":664},[3885],{"type":398,"value":3886},"50.0",{"type":393,"tag":508,"props":3888,"children":3889},{"style":520},[3890],{"type":398,"value":613},{"type":393,"tag":508,"props":3892,"children":3893},{"style":664},[3894],{"type":398,"value":3895},"300.0",{"type":393,"tag":508,"props":3897,"children":3898},{"style":520},[3899],{"type":398,"value":2690},{"type":393,"tag":508,"props":3901,"children":3902},{"style":568},[3903],{"type":398,"value":3904},"# Converted to numbers, filled missing\n",{"type":393,"tag":508,"props":3906,"children":3907},{"class":510,"line":197},[3908,3912,3916,3921,3925,3930,3934,3938,3942,3946],{"type":393,"tag":508,"props":3909,"children":3910},{"style":595},[3911],{"type":398,"value":3614},{"type":393,"tag":508,"props":3913,"children":3914},{"style":520},[3915],{"type":398,"value":603},{"type":393,"tag":508,"props":3917,"children":3918},{"style":595},[3919],{"type":398,"value":3920},"'Computer'",{"type":393,"tag":508,"props":3922,"children":3923},{"style":520},[3924],{"type":398,"value":613},{"type":393,"tag":508,"props":3926,"children":3927},{"style":595},[3928],{"type":398,"value":3929},"'Accessory'",{"type":393,"tag":508,"props":3931,"children":3932},{"style":520},[3933],{"type":398,"value":613},{"type":393,"tag":508,"props":3935,"children":3936},{"style":595},[3937],{"type":398,"value":3929},{"type":393,"tag":508,"props":3939,"children":3940},{"style":520},[3941],{"type":398,"value":613},{"type":393,"tag":508,"props":3943,"children":3944},{"style":595},[3945],{"type":398,"value":3920},{"type":393,"tag":508,"props":3947,"children":3948},{"style":520},[3949],{"type":398,"value":649},{"type":393,"tag":508,"props":3951,"children":3952},{"class":510,"line":206},[3953,3957,3961,3966,3970,3974,3978,3982,3986,3990,3994],{"type":393,"tag":508,"props":3954,"children":3955},{"style":595},[3956],{"type":398,"value":3669},{"type":393,"tag":508,"props":3958,"children":3959},{"style":520},[3960],{"type":398,"value":603},{"type":393,"tag":508,"props":3962,"children":3963},{"style":664},[3964],{"type":398,"value":3965},"True",{"type":393,"tag":508,"props":3967,"children":3968},{"style":520},[3969],{"type":398,"value":613},{"type":393,"tag":508,"props":3971,"children":3972},{"style":664},[3973],{"type":398,"value":3965},{"type":393,"tag":508,"props":3975,"children":3976},{"style":520},[3977],{"type":398,"value":613},{"type":393,"tag":508,"props":3979,"children":3980},{"style":664},[3981],{"type":398,"value":2328},{"type":393,"tag":508,"props":3983,"children":3984},{"style":520},[3985],{"type":398,"value":613},{"type":393,"tag":508,"props":3987,"children":3988},{"style":664},[3989],{"type":398,"value":2328},{"type":393,"tag":508,"props":3991,"children":3992},{"style":520},[3993],{"type":398,"value":2960},{"type":393,"tag":508,"props":3995,"children":3996},{"style":568},[3997],{"type":398,"value":3998},"# Converted to boolean\n",{"type":393,"tag":508,"props":4000,"children":4001},{"class":510,"line":215},[4002],{"type":393,"tag":508,"props":4003,"children":4004},{"style":520},[4005],{"type":398,"value":826},{"type":393,"tag":508,"props":4007,"children":4008},{"class":510,"line":224},[4009],{"type":393,"tag":508,"props":4010,"children":4011},{"emptyLinePlaceholder":12},[4012],{"type":398,"value":562},{"type":393,"tag":508,"props":4014,"children":4015},{"class":510,"line":233},[4016,4020,4024,4029],{"type":393,"tag":508,"props":4017,"children":4018},{"style":664},[4019],{"type":398,"value":841},{"type":393,"tag":508,"props":4021,"children":4022},{"style":520},[4023],{"type":398,"value":846},{"type":393,"tag":508,"props":4025,"children":4026},{"style":595},[4027],{"type":398,"value":4028},"\"✅ AFTER Cleaning:\"",{"type":393,"tag":508,"props":4030,"children":4031},{"style":520},[4032],{"type":398,"value":856},{"type":393,"tag":508,"props":4034,"children":4035},{"class":510,"line":244},[4036,4040],{"type":393,"tag":508,"props":4037,"children":4038},{"style":664},[4039],{"type":398,"value":841},{"type":393,"tag":508,"props":4041,"children":4042},{"style":520},[4043],{"type":398,"value":4044},"(products_clean)\n",{"type":393,"tag":508,"props":4046,"children":4047},{"class":510,"line":253},[4048,4052],{"type":393,"tag":508,"props":4049,"children":4050},{"style":664},[4051],{"type":398,"value":841},{"type":393,"tag":508,"props":4053,"children":4054},{"style":520},[4055],{"type":398,"value":880},{"type":393,"tag":508,"props":4057,"children":4058},{"class":510,"line":262},[4059,4063,4067,4072],{"type":393,"tag":508,"props":4060,"children":4061},{"style":664},[4062],{"type":398,"value":841},{"type":393,"tag":508,"props":4064,"children":4065},{"style":520},[4066],{"type":398,"value":846},{"type":393,"tag":508,"props":4068,"children":4069},{"style":595},[4070],{"type":398,"value":4071},"\"🎯 Improvements:\"",{"type":393,"tag":508,"props":4073,"children":4074},{"style":520},[4075],{"type":398,"value":856},{"type":393,"tag":508,"props":4077,"children":4078},{"class":510,"line":271},[4079,4083,4087,4092],{"type":393,"tag":508,"props":4080,"children":4081},{"style":664},[4082],{"type":398,"value":841},{"type":393,"tag":508,"props":4084,"children":4085},{"style":520},[4086],{"type":398,"value":846},{"type":393,"tag":508,"props":4088,"children":4089},{"style":595},[4090],{"type":398,"value":4091},"\"✅ Consistent text formatting\"",{"type":393,"tag":508,"props":4093,"children":4094},{"style":520},[4095],{"type":398,"value":856},{"type":393,"tag":508,"props":4097,"children":4098},{"class":510,"line":281},[4099,4103,4107,4112],{"type":393,"tag":508,"props":4100,"children":4101},{"style":664},[4102],{"type":398,"value":841},{"type":393,"tag":508,"props":4104,"children":4105},{"style":520},[4106],{"type":398,"value":846},{"type":393,"tag":508,"props":4108,"children":4109},{"style":595},[4110],{"type":398,"value":4111},"\"✅ Proper numeric data types\"",{"type":393,"tag":508,"props":4113,"children":4114},{"style":520},[4115],{"type":398,"value":856},{"type":393,"tag":508,"props":4117,"children":4118},{"class":510,"line":290},[4119,4123,4127,4131],{"type":393,"tag":508,"props":4120,"children":4121},{"style":664},[4122],{"type":398,"value":841},{"type":393,"tag":508,"props":4124,"children":4125},{"style":520},[4126],{"type":398,"value":846},{"type":393,"tag":508,"props":4128,"children":4129},{"style":595},[4130],{"type":398,"value":1397},{"type":393,"tag":508,"props":4132,"children":4133},{"style":520},[4134],{"type":398,"value":856},{"type":393,"tag":508,"props":4136,"children":4137},{"class":510,"line":299},[4138,4142,4146,4150],{"type":393,"tag":508,"props":4139,"children":4140},{"style":664},[4141],{"type":398,"value":841},{"type":393,"tag":508,"props":4143,"children":4144},{"style":520},[4145],{"type":398,"value":846},{"type":393,"tag":508,"props":4147,"children":4148},{"style":595},[4149],{"type":398,"value":1437},{"type":393,"tag":508,"props":4151,"children":4152},{"style":520},[4153],{"type":398,"value":856},{"type":393,"tag":508,"props":4155,"children":4156},{"class":510,"line":308},[4157,4161,4165,4170],{"type":393,"tag":508,"props":4158,"children":4159},{"style":664},[4160],{"type":398,"value":841},{"type":393,"tag":508,"props":4162,"children":4163},{"style":520},[4164],{"type":398,"value":846},{"type":393,"tag":508,"props":4166,"children":4167},{"style":595},[4168],{"type":398,"value":4169},"\"✅ Boolean values for yes/no\"",{"type":393,"tag":508,"props":4171,"children":4172},{"style":520},[4173],{"type":398,"value":856},{"type":393,"tag":508,"props":4175,"children":4176},{"class":510,"line":318},[4177,4181,4185,4190],{"type":393,"tag":508,"props":4178,"children":4179},{"style":664},[4180],{"type":398,"value":841},{"type":393,"tag":508,"props":4182,"children":4183},{"style":520},[4184],{"type":398,"value":846},{"type":393,"tag":508,"props":4186,"children":4187},{"style":595},[4188],{"type":398,"value":4189},"\"✅ Ready for analysis and calculations!\"",{"type":393,"tag":508,"props":4191,"children":4192},{"style":520},[4193],{"type":398,"value":856},{"type":393,"tag":481,"props":4195,"children":4197},{"id":4196},"data-cleaning-best-practices",[4198],{"type":398,"value":4199},"🎯 Data Cleaning Best Practices",{"type":393,"tag":407,"props":4201,"children":4205},{"emoji":4202,"title":4203,"type":4204},"💡","Smart Cleaning Approach","success",[4206,4214,4252,4260,4314,4322,4350,4358,4381],{"type":393,"tag":401,"props":4207,"children":4208},{},[4209],{"type":393,"tag":417,"props":4210,"children":4211},{},[4212],{"type":398,"value":4213},"Start with Understanding:",{"type":393,"tag":431,"props":4215,"children":4216},{},[4217,4242,4247],{"type":393,"tag":435,"props":4218,"children":4219},{},[4220,4222,4228,4229,4235,4236],{"type":398,"value":4221},"Look at your data first: ",{"type":393,"tag":504,"props":4223,"children":4225},{"className":4224},[],[4226],{"type":398,"value":4227},".head()",{"type":398,"value":613},{"type":393,"tag":504,"props":4230,"children":4232},{"className":4231},[],[4233],{"type":398,"value":4234},".info()",{"type":398,"value":613},{"type":393,"tag":504,"props":4237,"children":4239},{"className":4238},[],[4240],{"type":398,"value":4241},".describe()",{"type":393,"tag":435,"props":4243,"children":4244},{},[4245],{"type":398,"value":4246},"Identify problems: missing values, duplicates, wrong types",{"type":393,"tag":435,"props":4248,"children":4249},{},[4250],{"type":398,"value":4251},"Plan your cleaning steps before starting",{"type":393,"tag":401,"props":4253,"children":4254},{},[4255],{"type":393,"tag":417,"props":4256,"children":4257},{},[4258],{"type":398,"value":4259},"Clean Systematically:",{"type":393,"tag":4261,"props":4262,"children":4263},"ol",{},[4264,4274,4284,4294,4304],{"type":393,"tag":435,"props":4265,"children":4266},{},[4267,4272],{"type":393,"tag":417,"props":4268,"children":4269},{},[4270],{"type":398,"value":4271},"Handle duplicates first",{"type":398,"value":4273}," - removes unnecessary rows",{"type":393,"tag":435,"props":4275,"children":4276},{},[4277,4282],{"type":393,"tag":417,"props":4278,"children":4279},{},[4280],{"type":398,"value":4281},"Fix data types",{"type":398,"value":4283}," - ensures proper operations",{"type":393,"tag":435,"props":4285,"children":4286},{},[4287,4292],{"type":393,"tag":417,"props":4288,"children":4289},{},[4290],{"type":398,"value":4291},"Handle missing values",{"type":398,"value":4293}," - fill or remove appropriately",{"type":393,"tag":435,"props":4295,"children":4296},{},[4297,4302],{"type":393,"tag":417,"props":4298,"children":4299},{},[4300],{"type":398,"value":4301},"Clean text data",{"type":398,"value":4303}," - standardize formatting",{"type":393,"tag":435,"props":4305,"children":4306},{},[4307,4312],{"type":393,"tag":417,"props":4308,"children":4309},{},[4310],{"type":398,"value":4311},"Validate results",{"type":398,"value":4313}," - check your cleaning worked",{"type":393,"tag":401,"props":4315,"children":4316},{},[4317],{"type":393,"tag":417,"props":4318,"children":4319},{},[4320],{"type":398,"value":4321},"Cleaning Guidelines:",{"type":393,"tag":431,"props":4323,"children":4324},{},[4325,4330,4335,4340,4345],{"type":393,"tag":435,"props":4326,"children":4327},{},[4328],{"type":398,"value":4329},"Keep a copy of original data",{"type":393,"tag":435,"props":4331,"children":4332},{},[4333],{"type":398,"value":4334},"Document your cleaning steps",{"type":393,"tag":435,"props":4336,"children":4337},{},[4338],{"type":398,"value":4339},"Be consistent with formatting choices",{"type":393,"tag":435,"props":4341,"children":4342},{},[4343],{"type":398,"value":4344},"Test with small samples first",{"type":393,"tag":435,"props":4346,"children":4347},{},[4348],{"type":398,"value":4349},"Verify results make sense",{"type":393,"tag":401,"props":4351,"children":4352},{},[4353],{"type":393,"tag":417,"props":4354,"children":4355},{},[4356],{"type":398,"value":4357},"Common Mistakes to Avoid:",{"type":393,"tag":431,"props":4359,"children":4360},{},[4361,4366,4371,4376],{"type":393,"tag":435,"props":4362,"children":4363},{},[4364],{"type":398,"value":4365},"Cleaning without understanding the data first",{"type":393,"tag":435,"props":4367,"children":4368},{},[4369],{"type":398,"value":4370},"Removing too much data unnecessarily",{"type":393,"tag":435,"props":4372,"children":4373},{},[4374],{"type":398,"value":4375},"Inconsistent formatting choices",{"type":393,"tag":435,"props":4377,"children":4378},{},[4379],{"type":398,"value":4380},"Not validating cleaning results",{"type":393,"tag":401,"props":4382,"children":4383},{},[4384,4389],{"type":393,"tag":417,"props":4385,"children":4386},{},[4387],{"type":398,"value":4388},"Remember:",{"type":398,"value":4390}," Good cleaning makes analysis easier and more accurate!",{"type":393,"tag":481,"props":4392,"children":4394},{"id":4393},"identifying-data-problems",[4395],{"type":398,"value":4396},"🔍 Identifying Data Problems",{"type":393,"tag":401,"props":4398,"children":4399},{},[4400],{"type":398,"value":4401},"Before cleaning, you need to spot the issues:",{"type":393,"tag":493,"props":4403,"children":4404},{},[4405],{"type":393,"tag":497,"props":4406,"children":4408},{"className":499,"code":4407,"language":501,"meta":6,"style":6},"import pandas as pd\nimport numpy as np\n\n# Employee data with various issues\nemployees = pd.DataFrame({\n    'emp_id': [1, 2, 3, 4, 2],\n    'name': ['alice smith', 'BOB JONES', '  charlie brown  ', 'diana prince', 'BOB JONES'],\n    'department': ['sales', 'IT', None, 'marketing', 'IT'],\n    'salary': [50000, '75000', 60000, None, '75000'],\n    'start_date': ['2020-01-15', '2019-03-01', '', '2021-06-01', '2019-03-01']\n})\n\nprint(\"🔍 Employee Data Analysis:\")\nprint(employees)\nprint()\n\nprint(\"📊 Data Quality Report:\")\nprint(f\"Shape: {employees.shape}\")\nprint(f\"Duplicates: {employees.duplicated().sum()}\")\nprint()\n\nprint(\"Missing Values by Column:\")\nprint(employees.isnull().sum())\nprint()\n\nprint(\"Data Types:\")\nprint(employees.dtypes)\nprint()\n\nprint(\"🎯 Issues Found:\")\nprint(\"- Duplicate employee (ID 2)\")\nprint(\"- Inconsistent name formatting\")\nprint(\"- Missing department and salary\")\nprint(\"- Salary stored as text\")\nprint(\"- Empty start date\")\n",[4409],{"type":393,"tag":504,"props":4410,"children":4411},{"__ignoreMap":6},[4412,4431,4450,4457,4465,4481,4533,4588,4643,4695,4750,4757,4764,4784,4796,4807,4814,4834,4875,4916,4927,4934,4954,4966,4977,4984,5004,5016,5027,5034,5054,5074,5094,5114,5134],{"type":393,"tag":508,"props":4413,"children":4414},{"class":510,"line":11},[4415,4419,4423,4427],{"type":393,"tag":508,"props":4416,"children":4417},{"style":514},[4418],{"type":398,"value":517},{"type":393,"tag":508,"props":4420,"children":4421},{"style":520},[4422],{"type":398,"value":523},{"type":393,"tag":508,"props":4424,"children":4425},{"style":514},[4426],{"type":398,"value":528},{"type":393,"tag":508,"props":4428,"children":4429},{"style":520},[4430],{"type":398,"value":533},{"type":393,"tag":508,"props":4432,"children":4433},{"class":510,"line":27},[4434,4438,4442,4446],{"type":393,"tag":508,"props":4435,"children":4436},{"style":514},[4437],{"type":398,"value":517},{"type":393,"tag":508,"props":4439,"children":4440},{"style":520},[4441],{"type":398,"value":545},{"type":393,"tag":508,"props":4443,"children":4444},{"style":514},[4445],{"type":398,"value":528},{"type":393,"tag":508,"props":4447,"children":4448},{"style":520},[4449],{"type":398,"value":554},{"type":393,"tag":508,"props":4451,"children":4452},{"class":510,"line":36},[4453],{"type":393,"tag":508,"props":4454,"children":4455},{"emptyLinePlaceholder":12},[4456],{"type":398,"value":562},{"type":393,"tag":508,"props":4458,"children":4459},{"class":510,"line":45},[4460],{"type":393,"tag":508,"props":4461,"children":4462},{"style":568},[4463],{"type":398,"value":4464},"# Employee data with various issues\n",{"type":393,"tag":508,"props":4466,"children":4467},{"class":510,"line":54},[4468,4473,4477],{"type":393,"tag":508,"props":4469,"children":4470},{"style":520},[4471],{"type":398,"value":4472},"employees ",{"type":393,"tag":508,"props":4474,"children":4475},{"style":514},[4476],{"type":398,"value":584},{"type":393,"tag":508,"props":4478,"children":4479},{"style":520},[4480],{"type":398,"value":589},{"type":393,"tag":508,"props":4482,"children":4483},{"class":510,"line":63},[4484,4489,4493,4497,4501,4505,4509,4513,4517,4521,4525,4529],{"type":393,"tag":508,"props":4485,"children":4486},{"style":595},[4487],{"type":398,"value":4488},"    'emp_id'",{"type":393,"tag":508,"props":4490,"children":4491},{"style":520},[4492],{"type":398,"value":603},{"type":393,"tag":508,"props":4494,"children":4495},{"style":664},[4496],{"type":398,"value":1780},{"type":393,"tag":508,"props":4498,"children":4499},{"style":520},[4500],{"type":398,"value":613},{"type":393,"tag":508,"props":4502,"children":4503},{"style":664},[4504],{"type":398,"value":1789},{"type":393,"tag":508,"props":4506,"children":4507},{"style":520},[4508],{"type":398,"value":613},{"type":393,"tag":508,"props":4510,"children":4511},{"style":664},[4512],{"type":398,"value":1798},{"type":393,"tag":508,"props":4514,"children":4515},{"style":520},[4516],{"type":398,"value":613},{"type":393,"tag":508,"props":4518,"children":4519},{"style":664},[4520],{"type":398,"value":1815},{"type":393,"tag":508,"props":4522,"children":4523},{"style":520},[4524],{"type":398,"value":613},{"type":393,"tag":508,"props":4526,"children":4527},{"style":664},[4528],{"type":398,"value":1789},{"type":393,"tag":508,"props":4530,"children":4531},{"style":520},[4532],{"type":398,"value":649},{"type":393,"tag":508,"props":4534,"children":4535},{"class":510,"line":72},[4536,4540,4544,4549,4553,4558,4562,4567,4571,4576,4580,4584],{"type":393,"tag":508,"props":4537,"children":4538},{"style":595},[4539],{"type":398,"value":598},{"type":393,"tag":508,"props":4541,"children":4542},{"style":520},[4543],{"type":398,"value":603},{"type":393,"tag":508,"props":4545,"children":4546},{"style":595},[4547],{"type":398,"value":4548},"'alice smith'",{"type":393,"tag":508,"props":4550,"children":4551},{"style":520},[4552],{"type":398,"value":613},{"type":393,"tag":508,"props":4554,"children":4555},{"style":595},[4556],{"type":398,"value":4557},"'BOB JONES'",{"type":393,"tag":508,"props":4559,"children":4560},{"style":520},[4561],{"type":398,"value":613},{"type":393,"tag":508,"props":4563,"children":4564},{"style":595},[4565],{"type":398,"value":4566},"'  charlie brown  '",{"type":393,"tag":508,"props":4568,"children":4569},{"style":520},[4570],{"type":398,"value":613},{"type":393,"tag":508,"props":4572,"children":4573},{"style":595},[4574],{"type":398,"value":4575},"'diana prince'",{"type":393,"tag":508,"props":4577,"children":4578},{"style":520},[4579],{"type":398,"value":613},{"type":393,"tag":508,"props":4581,"children":4582},{"style":595},[4583],{"type":398,"value":4557},{"type":393,"tag":508,"props":4585,"children":4586},{"style":520},[4587],{"type":398,"value":649},{"type":393,"tag":508,"props":4589,"children":4590},{"class":510,"line":83},[4591,4596,4600,4605,4609,4614,4618,4622,4626,4631,4635,4639],{"type":393,"tag":508,"props":4592,"children":4593},{"style":595},[4594],{"type":398,"value":4595},"    'department'",{"type":393,"tag":508,"props":4597,"children":4598},{"style":520},[4599],{"type":398,"value":603},{"type":393,"tag":508,"props":4601,"children":4602},{"style":595},[4603],{"type":398,"value":4604},"'sales'",{"type":393,"tag":508,"props":4606,"children":4607},{"style":520},[4608],{"type":398,"value":613},{"type":393,"tag":508,"props":4610,"children":4611},{"style":595},[4612],{"type":398,"value":4613},"'IT'",{"type":393,"tag":508,"props":4615,"children":4616},{"style":520},[4617],{"type":398,"value":613},{"type":393,"tag":508,"props":4619,"children":4620},{"style":664},[4621],{"type":398,"value":676},{"type":393,"tag":508,"props":4623,"children":4624},{"style":520},[4625],{"type":398,"value":613},{"type":393,"tag":508,"props":4627,"children":4628},{"style":595},[4629],{"type":398,"value":4630},"'marketing'",{"type":393,"tag":508,"props":4632,"children":4633},{"style":520},[4634],{"type":398,"value":613},{"type":393,"tag":508,"props":4636,"children":4637},{"style":595},[4638],{"type":398,"value":4613},{"type":393,"tag":508,"props":4640,"children":4641},{"style":520},[4642],{"type":398,"value":649},{"type":393,"tag":508,"props":4644,"children":4645},{"class":510,"line":92},[4646,4650,4654,4658,4662,4667,4671,4675,4679,4683,4687,4691],{"type":393,"tag":508,"props":4647,"children":4648},{"style":595},[4649],{"type":398,"value":770},{"type":393,"tag":508,"props":4651,"children":4652},{"style":520},[4653],{"type":398,"value":603},{"type":393,"tag":508,"props":4655,"children":4656},{"style":664},[4657],{"type":398,"value":779},{"type":393,"tag":508,"props":4659,"children":4660},{"style":520},[4661],{"type":398,"value":613},{"type":393,"tag":508,"props":4663,"children":4664},{"style":595},[4665],{"type":398,"value":4666},"'75000'",{"type":393,"tag":508,"props":4668,"children":4669},{"style":520},[4670],{"type":398,"value":613},{"type":393,"tag":508,"props":4672,"children":4673},{"style":664},[4674],{"type":398,"value":788},{"type":393,"tag":508,"props":4676,"children":4677},{"style":520},[4678],{"type":398,"value":613},{"type":393,"tag":508,"props":4680,"children":4681},{"style":664},[4682],{"type":398,"value":676},{"type":393,"tag":508,"props":4684,"children":4685},{"style":520},[4686],{"type":398,"value":613},{"type":393,"tag":508,"props":4688,"children":4689},{"style":595},[4690],{"type":398,"value":4666},{"type":393,"tag":508,"props":4692,"children":4693},{"style":520},[4694],{"type":398,"value":649},{"type":393,"tag":508,"props":4696,"children":4697},{"class":510,"line":101},[4698,4703,4707,4712,4716,4721,4725,4729,4733,4738,4742,4746],{"type":393,"tag":508,"props":4699,"children":4700},{"style":595},[4701],{"type":398,"value":4702},"    'start_date'",{"type":393,"tag":508,"props":4704,"children":4705},{"style":520},[4706],{"type":398,"value":603},{"type":393,"tag":508,"props":4708,"children":4709},{"style":595},[4710],{"type":398,"value":4711},"'2020-01-15'",{"type":393,"tag":508,"props":4713,"children":4714},{"style":520},[4715],{"type":398,"value":613},{"type":393,"tag":508,"props":4717,"children":4718},{"style":595},[4719],{"type":398,"value":4720},"'2019-03-01'",{"type":393,"tag":508,"props":4722,"children":4723},{"style":520},[4724],{"type":398,"value":613},{"type":393,"tag":508,"props":4726,"children":4727},{"style":595},[4728],{"type":398,"value":758},{"type":393,"tag":508,"props":4730,"children":4731},{"style":520},[4732],{"type":398,"value":613},{"type":393,"tag":508,"props":4734,"children":4735},{"style":595},[4736],{"type":398,"value":4737},"'2021-06-01'",{"type":393,"tag":508,"props":4739,"children":4740},{"style":520},[4741],{"type":398,"value":613},{"type":393,"tag":508,"props":4743,"children":4744},{"style":595},[4745],{"type":398,"value":4720},{"type":393,"tag":508,"props":4747,"children":4748},{"style":520},[4749],{"type":398,"value":818},{"type":393,"tag":508,"props":4751,"children":4752},{"class":510,"line":110},[4753],{"type":393,"tag":508,"props":4754,"children":4755},{"style":520},[4756],{"type":398,"value":826},{"type":393,"tag":508,"props":4758,"children":4759},{"class":510,"line":121},[4760],{"type":393,"tag":508,"props":4761,"children":4762},{"emptyLinePlaceholder":12},[4763],{"type":398,"value":562},{"type":393,"tag":508,"props":4765,"children":4766},{"class":510,"line":130},[4767,4771,4775,4780],{"type":393,"tag":508,"props":4768,"children":4769},{"style":664},[4770],{"type":398,"value":841},{"type":393,"tag":508,"props":4772,"children":4773},{"style":520},[4774],{"type":398,"value":846},{"type":393,"tag":508,"props":4776,"children":4777},{"style":595},[4778],{"type":398,"value":4779},"\"🔍 Employee Data Analysis:\"",{"type":393,"tag":508,"props":4781,"children":4782},{"style":520},[4783],{"type":398,"value":856},{"type":393,"tag":508,"props":4785,"children":4786},{"class":510,"line":139},[4787,4791],{"type":393,"tag":508,"props":4788,"children":4789},{"style":664},[4790],{"type":398,"value":841},{"type":393,"tag":508,"props":4792,"children":4793},{"style":520},[4794],{"type":398,"value":4795},"(employees)\n",{"type":393,"tag":508,"props":4797,"children":4798},{"class":510,"line":148},[4799,4803],{"type":393,"tag":508,"props":4800,"children":4801},{"style":664},[4802],{"type":398,"value":841},{"type":393,"tag":508,"props":4804,"children":4805},{"style":520},[4806],{"type":398,"value":880},{"type":393,"tag":508,"props":4808,"children":4809},{"class":510,"line":159},[4810],{"type":393,"tag":508,"props":4811,"children":4812},{"emptyLinePlaceholder":12},[4813],{"type":398,"value":562},{"type":393,"tag":508,"props":4815,"children":4816},{"class":510,"line":168},[4817,4821,4825,4830],{"type":393,"tag":508,"props":4818,"children":4819},{"style":664},[4820],{"type":398,"value":841},{"type":393,"tag":508,"props":4822,"children":4823},{"style":520},[4824],{"type":398,"value":846},{"type":393,"tag":508,"props":4826,"children":4827},{"style":595},[4828],{"type":398,"value":4829},"\"📊 Data Quality Report:\"",{"type":393,"tag":508,"props":4831,"children":4832},{"style":520},[4833],{"type":398,"value":856},{"type":393,"tag":508,"props":4835,"children":4836},{"class":510,"line":177},[4837,4841,4845,4849,4854,4858,4863,4867,4871],{"type":393,"tag":508,"props":4838,"children":4839},{"style":664},[4840],{"type":398,"value":841},{"type":393,"tag":508,"props":4842,"children":4843},{"style":520},[4844],{"type":398,"value":846},{"type":393,"tag":508,"props":4846,"children":4847},{"style":514},[4848],{"type":398,"value":2154},{"type":393,"tag":508,"props":4850,"children":4851},{"style":595},[4852],{"type":398,"value":4853},"\"Shape: ",{"type":393,"tag":508,"props":4855,"children":4856},{"style":664},[4857],{"type":398,"value":3115},{"type":393,"tag":508,"props":4859,"children":4860},{"style":520},[4861],{"type":398,"value":4862},"employees.shape",{"type":393,"tag":508,"props":4864,"children":4865},{"style":664},[4866],{"type":398,"value":2174},{"type":393,"tag":508,"props":4868,"children":4869},{"style":595},[4870],{"type":398,"value":2197},{"type":393,"tag":508,"props":4872,"children":4873},{"style":520},[4874],{"type":398,"value":856},{"type":393,"tag":508,"props":4876,"children":4877},{"class":510,"line":186},[4878,4882,4886,4890,4895,4899,4904,4908,4912],{"type":393,"tag":508,"props":4879,"children":4880},{"style":664},[4881],{"type":398,"value":841},{"type":393,"tag":508,"props":4883,"children":4884},{"style":520},[4885],{"type":398,"value":846},{"type":393,"tag":508,"props":4887,"children":4888},{"style":514},[4889],{"type":398,"value":2154},{"type":393,"tag":508,"props":4891,"children":4892},{"style":595},[4893],{"type":398,"value":4894},"\"Duplicates: ",{"type":393,"tag":508,"props":4896,"children":4897},{"style":664},[4898],{"type":398,"value":3115},{"type":393,"tag":508,"props":4900,"children":4901},{"style":520},[4902],{"type":398,"value":4903},"employees.duplicated().sum()",{"type":393,"tag":508,"props":4905,"children":4906},{"style":664},[4907],{"type":398,"value":2174},{"type":393,"tag":508,"props":4909,"children":4910},{"style":595},[4911],{"type":398,"value":2197},{"type":393,"tag":508,"props":4913,"children":4914},{"style":520},[4915],{"type":398,"value":856},{"type":393,"tag":508,"props":4917,"children":4918},{"class":510,"line":197},[4919,4923],{"type":393,"tag":508,"props":4920,"children":4921},{"style":664},[4922],{"type":398,"value":841},{"type":393,"tag":508,"props":4924,"children":4925},{"style":520},[4926],{"type":398,"value":880},{"type":393,"tag":508,"props":4928,"children":4929},{"class":510,"line":206},[4930],{"type":393,"tag":508,"props":4931,"children":4932},{"emptyLinePlaceholder":12},[4933],{"type":398,"value":562},{"type":393,"tag":508,"props":4935,"children":4936},{"class":510,"line":215},[4937,4941,4945,4950],{"type":393,"tag":508,"props":4938,"children":4939},{"style":664},[4940],{"type":398,"value":841},{"type":393,"tag":508,"props":4942,"children":4943},{"style":520},[4944],{"type":398,"value":846},{"type":393,"tag":508,"props":4946,"children":4947},{"style":595},[4948],{"type":398,"value":4949},"\"Missing Values by Column:\"",{"type":393,"tag":508,"props":4951,"children":4952},{"style":520},[4953],{"type":398,"value":856},{"type":393,"tag":508,"props":4955,"children":4956},{"class":510,"line":224},[4957,4961],{"type":393,"tag":508,"props":4958,"children":4959},{"style":664},[4960],{"type":398,"value":841},{"type":393,"tag":508,"props":4962,"children":4963},{"style":520},[4964],{"type":398,"value":4965},"(employees.isnull().sum())\n",{"type":393,"tag":508,"props":4967,"children":4968},{"class":510,"line":233},[4969,4973],{"type":393,"tag":508,"props":4970,"children":4971},{"style":664},[4972],{"type":398,"value":841},{"type":393,"tag":508,"props":4974,"children":4975},{"style":520},[4976],{"type":398,"value":880},{"type":393,"tag":508,"props":4978,"children":4979},{"class":510,"line":244},[4980],{"type":393,"tag":508,"props":4981,"children":4982},{"emptyLinePlaceholder":12},[4983],{"type":398,"value":562},{"type":393,"tag":508,"props":4985,"children":4986},{"class":510,"line":253},[4987,4991,4995,5000],{"type":393,"tag":508,"props":4988,"children":4989},{"style":664},[4990],{"type":398,"value":841},{"type":393,"tag":508,"props":4992,"children":4993},{"style":520},[4994],{"type":398,"value":846},{"type":393,"tag":508,"props":4996,"children":4997},{"style":595},[4998],{"type":398,"value":4999},"\"Data Types:\"",{"type":393,"tag":508,"props":5001,"children":5002},{"style":520},[5003],{"type":398,"value":856},{"type":393,"tag":508,"props":5005,"children":5006},{"class":510,"line":262},[5007,5011],{"type":393,"tag":508,"props":5008,"children":5009},{"style":664},[5010],{"type":398,"value":841},{"type":393,"tag":508,"props":5012,"children":5013},{"style":520},[5014],{"type":398,"value":5015},"(employees.dtypes)\n",{"type":393,"tag":508,"props":5017,"children":5018},{"class":510,"line":271},[5019,5023],{"type":393,"tag":508,"props":5020,"children":5021},{"style":664},[5022],{"type":398,"value":841},{"type":393,"tag":508,"props":5024,"children":5025},{"style":520},[5026],{"type":398,"value":880},{"type":393,"tag":508,"props":5028,"children":5029},{"class":510,"line":281},[5030],{"type":393,"tag":508,"props":5031,"children":5032},{"emptyLinePlaceholder":12},[5033],{"type":398,"value":562},{"type":393,"tag":508,"props":5035,"children":5036},{"class":510,"line":290},[5037,5041,5045,5050],{"type":393,"tag":508,"props":5038,"children":5039},{"style":664},[5040],{"type":398,"value":841},{"type":393,"tag":508,"props":5042,"children":5043},{"style":520},[5044],{"type":398,"value":846},{"type":393,"tag":508,"props":5046,"children":5047},{"style":595},[5048],{"type":398,"value":5049},"\"🎯 Issues Found:\"",{"type":393,"tag":508,"props":5051,"children":5052},{"style":520},[5053],{"type":398,"value":856},{"type":393,"tag":508,"props":5055,"children":5056},{"class":510,"line":299},[5057,5061,5065,5070],{"type":393,"tag":508,"props":5058,"children":5059},{"style":664},[5060],{"type":398,"value":841},{"type":393,"tag":508,"props":5062,"children":5063},{"style":520},[5064],{"type":398,"value":846},{"type":393,"tag":508,"props":5066,"children":5067},{"style":595},[5068],{"type":398,"value":5069},"\"- Duplicate employee (ID 2)\"",{"type":393,"tag":508,"props":5071,"children":5072},{"style":520},[5073],{"type":398,"value":856},{"type":393,"tag":508,"props":5075,"children":5076},{"class":510,"line":308},[5077,5081,5085,5090],{"type":393,"tag":508,"props":5078,"children":5079},{"style":664},[5080],{"type":398,"value":841},{"type":393,"tag":508,"props":5082,"children":5083},{"style":520},[5084],{"type":398,"value":846},{"type":393,"tag":508,"props":5086,"children":5087},{"style":595},[5088],{"type":398,"value":5089},"\"- Inconsistent name formatting\"",{"type":393,"tag":508,"props":5091,"children":5092},{"style":520},[5093],{"type":398,"value":856},{"type":393,"tag":508,"props":5095,"children":5096},{"class":510,"line":318},[5097,5101,5105,5110],{"type":393,"tag":508,"props":5098,"children":5099},{"style":664},[5100],{"type":398,"value":841},{"type":393,"tag":508,"props":5102,"children":5103},{"style":520},[5104],{"type":398,"value":846},{"type":393,"tag":508,"props":5106,"children":5107},{"style":595},[5108],{"type":398,"value":5109},"\"- Missing department and salary\"",{"type":393,"tag":508,"props":5111,"children":5112},{"style":520},[5113],{"type":398,"value":856},{"type":393,"tag":508,"props":5115,"children":5116},{"class":510,"line":327},[5117,5121,5125,5130],{"type":393,"tag":508,"props":5118,"children":5119},{"style":664},[5120],{"type":398,"value":841},{"type":393,"tag":508,"props":5122,"children":5123},{"style":520},[5124],{"type":398,"value":846},{"type":393,"tag":508,"props":5126,"children":5127},{"style":595},[5128],{"type":398,"value":5129},"\"- Salary stored as text\"",{"type":393,"tag":508,"props":5131,"children":5132},{"style":520},[5133],{"type":398,"value":856},{"type":393,"tag":508,"props":5135,"children":5136},{"class":510,"line":336},[5137,5141,5145,5150],{"type":393,"tag":508,"props":5138,"children":5139},{"style":664},[5140],{"type":398,"value":841},{"type":393,"tag":508,"props":5142,"children":5143},{"style":520},[5144],{"type":398,"value":846},{"type":393,"tag":508,"props":5146,"children":5147},{"style":595},[5148],{"type":398,"value":5149},"\"- Empty start date\"",{"type":393,"tag":508,"props":5151,"children":5152},{"style":520},[5153],{"type":398,"value":856},{"type":393,"tag":481,"props":5155,"children":5157},{"id":5156},"whats-next",[5158],{"type":398,"value":5159},"🚀 What's Next?",{"type":393,"tag":401,"props":5161,"children":5162},{},[5163],{"type":398,"value":5164},"Ready to transform messy data into analysis-ready datasets? Let's start with one of the most common issues: missing data.",{"type":393,"tag":401,"props":5166,"children":5167},{},[5168,5173,5175],{"type":393,"tag":417,"props":5169,"children":5170},{},[5171],{"type":398,"value":5172},"Start with",{"type":398,"value":5174},": ",{"type":393,"tag":2500,"props":5176,"children":5177},{"href":193},[5178],{"type":398,"value":194},{"type":393,"tag":401,"props":5180,"children":5181},{},[5182],{"type":398,"value":5183},"Time to become a data cleaning expert! 🧹✨",{"type":393,"tag":5185,"props":5186,"children":5187},"style",{},[5188],{"type":398,"value":5189},"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":5191},[5192,5193,5194,5195,5196,5197,5198,5199,5200],{"id":483,"depth":27,"text":486},{"id":1484,"depth":27,"text":1487},{"id":1676,"depth":27,"text":1679},{"id":2482,"depth":27,"text":2485},{"id":2541,"depth":27,"text":2544},{"id":3408,"depth":27,"text":3411},{"id":4196,"depth":27,"text":4199},{"id":4393,"depth":27,"text":4396},{"id":5156,"depth":27,"text":5159},1782373722949]