[{"data":1,"prerenderedAt":3922},["ShallowReactive",2],{"tutorials-pandas":3,"category-items-pandas":387,"content-/pandas/adding-and-modifying-columns":388},[4,21,31,40,49,58,67,78,87,96,105,116,125,134,143,154,163,172,181,192,201,210,219,228,239,248,257,266,276,285,294,303,313,322,331,341,350,359,369,378],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":6,"title":8,"description":9,"slug":10,"order":11,"isParent":12,"icon":13,"_type":14,"_id":15,"_source":16,"_file":17,"_stem":18,"_extension":19,"children":20,"expanded":12},"/pandas","",false,"Getting Started","Learn the basics of Pandas, Python's powerful data analysis library for working with spreadsheet-like data","getting-started",1,true,"pi pi-play","markdown","content:pandas:1.index.md","content","pandas/1.index.md","pandas/1.index","md",[21,31,40,49,58],{"_path":22,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":14,"_id":28,"_source":16,"_file":29,"_stem":30,"_extension":19},"/pandas/what-is-pandas","pandas","What is Pandas","Understand what Pandas is, why it's essential for data analysis, and how it makes working with data simple and powerful","what-is-pandas",2,"content:pandas:2.what-is-pandas.md","pandas/2.what-is-pandas.md","pandas/2.what-is-pandas",{"_path":32,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":14,"_id":37,"_source":16,"_file":38,"_stem":39,"_extension":19},"/pandas/installing-pandas","Installing Pandas","Learn how to install Pandas on your computer and verify it's working properly","installing-pandas",3,"content:pandas:3.installing-pandas.md","pandas/3.installing-pandas.md","pandas/3.installing-pandas",{"_path":41,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":14,"_id":46,"_source":16,"_file":47,"_stem":48,"_extension":19},"/pandas/your-first-dataframe","Your First DataFrame","Create your first Pandas DataFrame and learn the basics of working with tabular data","your-first-dataframe",4,"content:pandas:4.your-first-dataframe.md","pandas/4.your-first-dataframe.md","pandas/4.your-first-dataframe",{"_path":50,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":14,"_id":55,"_source":16,"_file":56,"_stem":57,"_extension":19},"/pandas/series-vs-dataframe","Series vs DataFrame","Understand the difference between Pandas Series and DataFrames, and learn when to use each one","series-vs-dataframe",5,"content:pandas:5.series-vs-dataframe.md","pandas/5.series-vs-dataframe.md","pandas/5.series-vs-dataframe",{"_path":59,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":14,"_id":64,"_source":16,"_file":65,"_stem":66,"_extension":19},"/pandas/basic-dataframe-info","Basic DataFrame Info","Learn how to explore and get basic information about your DataFrames to understand your data","basic-dataframe-info",6,"content:pandas:6.basic-dataframe-info.md","pandas/6.basic-dataframe-info.md","pandas/6.basic-dataframe-info",{"_path":68,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":69,"description":70,"slug":71,"order":72,"isParent":12,"icon":73,"_type":14,"_id":74,"_source":16,"_file":75,"_stem":76,"_extension":19,"children":77,"expanded":12},"/pandas/loading-data","Loading Data","Learn how to load data from various sources into Pandas DataFrames","loading-data",7,"pi pi-download","content:pandas:7.loading-data.md","pandas/7.loading-data.md","pandas/7.loading-data",[78,87,96],{"_path":79,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":80,"description":81,"slug":82,"parentId":68,"order":83,"_type":14,"_id":84,"_source":16,"_file":85,"_stem":86,"_extension":19},"/pandas/reading-files","Reading Files (CSV, Excel, JSON)","Learn how to load data from CSV, Excel, and JSON files into Pandas DataFrames","reading-files",8,"content:pandas:8.reading-files.md","pandas/8.reading-files.md","pandas/8.reading-files",{"_path":88,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":89,"description":90,"slug":91,"parentId":68,"order":92,"_type":14,"_id":93,"_source":16,"_file":94,"_stem":95,"_extension":19},"/pandas/loading-from-databases","Loading from Databases","Learn how to connect to databases and load data directly into Pandas DataFrames","loading-from-databases",9,"content:pandas:9.loading-from-databases.md","pandas/9.loading-from-databases.md","pandas/9.loading-from-databases",{"_path":97,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":98,"description":99,"slug":100,"parentId":68,"order":101,"_type":14,"_id":102,"_source":16,"_file":103,"_stem":104,"_extension":19},"/pandas/handling-file-errors","Handling File Errors","Learn how to handle common errors when loading data files and how to troubleshoot loading problems","handling-file-errors",10,"content:pandas:10.handling-file-errors.md","pandas/10.handling-file-errors.md","pandas/10.handling-file-errors",{"_path":106,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":107,"description":108,"slug":109,"order":110,"isParent":12,"icon":111,"_type":14,"_id":112,"_source":16,"_file":113,"_stem":114,"_extension":19,"children":115,"expanded":12},"/pandas/data-exploration","Data Exploration","Learn how to explore and understand your data using Pandas methods and techniques","data-exploration",11,"pi pi-search","content:pandas:11.data-exploration.md","pandas/11.data-exploration.md","pandas/11.data-exploration",[116,125,134],{"_path":117,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":118,"description":119,"slug":120,"parentId":106,"order":121,"_type":14,"_id":122,"_source":16,"_file":123,"_stem":124,"_extension":19},"/pandas/viewing-your-data","Viewing Your Data","Learn different ways to look at and sample your DataFrame data for exploration and understanding","viewing-your-data",12,"content:pandas:12.viewing-your-data.md","pandas/12.viewing-your-data.md","pandas/12.viewing-your-data",{"_path":126,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":127,"description":128,"slug":129,"parentId":106,"order":130,"_type":14,"_id":131,"_source":16,"_file":132,"_stem":133,"_extension":19},"/pandas/data-shape-and-statistics","Data Shape and Statistics","Learn how to understand your DataFrame's size, structure, and get basic statistical summaries","data-shape-and-statistics",13,"content:pandas:13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics",{"_path":135,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":136,"description":137,"slug":138,"parentId":106,"order":139,"_type":14,"_id":140,"_source":16,"_file":141,"_stem":142,"_extension":19},"/pandas/column-information-and-data-types","Column Information and Data Types","Learn how to explore individual columns and understand different data types in your DataFrames","column-information-and-data-types",14,"content:pandas:14.column-information-and-data-types.md","pandas/14.column-information-and-data-types.md","pandas/14.column-information-and-data-types",{"_path":144,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":145,"description":146,"slug":147,"order":148,"isParent":12,"icon":149,"_type":14,"_id":150,"_source":16,"_file":151,"_stem":152,"_extension":19,"children":153,"expanded":12},"/pandas/selecting-data","Selecting Data","Learn how to select specific columns, rows, and subsets of data from your DataFrames","selecting-data",15,"pi pi-filter","content:pandas:15.selecting-data.md","pandas/15.selecting-data.md","pandas/15.selecting-data",[154,163,172],{"_path":155,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":156,"description":157,"slug":158,"parentId":144,"order":159,"_type":14,"_id":160,"_source":16,"_file":161,"_stem":162,"_extension":19},"/pandas/selecting-columns-and-rows","Selecting Columns and Rows","Learn how to select specific columns and rows from your DataFrames using basic selection techniques","selecting-columns-and-rows",16,"content:pandas:16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows",{"_path":164,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":165,"description":166,"slug":167,"parentId":144,"order":168,"_type":14,"_id":169,"_source":16,"_file":170,"_stem":171,"_extension":19},"/pandas/using-loc-and-iloc","Using loc and iloc","Master precise data selection with label-based (loc) and position-based (iloc) indexing in pandas","using-loc-and-iloc",17,"content:pandas:17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc",{"_path":173,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":174,"description":175,"slug":176,"parentId":144,"order":177,"_type":14,"_id":178,"_source":16,"_file":179,"_stem":180,"_extension":19},"/pandas/boolean-and-conditional-selection","Boolean and Conditional Selection","Learn to filter DataFrames using conditions, boolean logic, and multiple criteria for precise data selection","boolean-and-conditional-selection",18,"content:pandas:18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection",{"_path":182,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":183,"description":184,"slug":185,"order":186,"isParent":12,"icon":187,"_type":14,"_id":188,"_source":16,"_file":189,"_stem":190,"_extension":19,"children":191,"expanded":12},"/pandas/data-cleaning","Data Cleaning","Learn essential data cleaning techniques to prepare messy data for analysis","data-cleaning",19,"pi pi-wrench","content:pandas:19.data-cleaning.md","pandas/19.data-cleaning.md","pandas/19.data-cleaning",[192,201,210,219],{"_path":193,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":194,"description":195,"slug":196,"parentId":182,"order":197,"_type":14,"_id":198,"_source":16,"_file":199,"_stem":200,"_extension":19},"/pandas/handling-missing-data","Handling Missing Data","Learn to identify, fill, and remove missing values in your DataFrames effectively","handling-missing-data",20,"content:pandas:20.handling-missing-data.md","pandas/20.handling-missing-data.md","pandas/20.handling-missing-data",{"_path":202,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":203,"description":204,"slug":205,"parentId":182,"order":206,"_type":14,"_id":207,"_source":16,"_file":208,"_stem":209,"_extension":19},"/pandas/removing-duplicates","Removing Duplicates","Learn to find and eliminate duplicate rows from your DataFrames to ensure data quality","removing-duplicates",21,"content:pandas:21.removing-duplicates.md","pandas/21.removing-duplicates.md","pandas/21.removing-duplicates",{"_path":211,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":212,"description":213,"slug":214,"parentId":182,"order":215,"_type":14,"_id":216,"_source":16,"_file":217,"_stem":218,"_extension":19},"/pandas/data-type-conversion","Data Type Conversion","Learn to convert data to the right types for proper analysis and calculations","data-type-conversion",22,"content:pandas:22.data-type-conversion.md","pandas/22.data-type-conversion.md","pandas/22.data-type-conversion",{"_path":220,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":221,"description":222,"slug":223,"parentId":182,"order":224,"_type":14,"_id":225,"_source":16,"_file":226,"_stem":227,"_extension":19},"/pandas/string-cleaning-operations","String Cleaning Operations","Learn to clean and standardize text data for consistent analysis using pandas string methods","string-cleaning-operations",23,"content:pandas:23.string-cleaning-operations.md","pandas/23.string-cleaning-operations.md","pandas/23.string-cleaning-operations",{"_path":229,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":230,"description":231,"slug":232,"order":233,"isParent":12,"icon":234,"_type":14,"_id":235,"_source":16,"_file":236,"_stem":237,"_extension":19,"children":238,"expanded":12},"/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",[239],{"_path":240,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":241,"description":242,"slug":243,"parentId":229,"order":244,"body":389,"_type":14,"_id":245,"_source":16,"_file":246,"_stem":247,"_extension":19},{"type":390,"children":391,"toc":3905},"root",[392,400,406,411,780,787,792,872,879,1254,1260,1662,1668,1673,1744,1750,2073,2079,2445,2451,2457,2980,2986,3130,3136,3141,3734,3740,3868,3874,3879,3894,3899],{"type":393,"tag":394,"props":395,"children":396},"element","h1",{"id":243},[397],{"type":398,"value":399},"text","➕ Adding and Modifying Columns",{"type":393,"tag":401,"props":402,"children":403},"p",{},[404],{"type":398,"value":405},"Creating and updating columns is one of the most common data transformation tasks! Whether you're calculating totals, creating categories, or combining existing data, mastering column operations will make you incredibly productive with pandas.",{"type":393,"tag":401,"props":407,"children":408},{},[409],{"type":398,"value":410},"Think of it like adding new information to a spreadsheet - but with the power of programming to handle complex calculations instantly.",{"type":393,"tag":412,"props":413,"children":414},"code-try",{},[415],{"type":393,"tag":416,"props":417,"children":421},"pre",{"className":418,"code":419,"language":420,"meta":6,"style":6},"language-python shiki shiki-themes github-light github-dark","import pandas as pd\n\n# Simple product data\nproducts = pd.DataFrame({\n    'name': ['Laptop', 'Mouse', 'Keyboard'],\n    'price': [999, 25, 75],\n    'quantity': [2, 10, 5]\n})\n\nprint(\"Original data:\")\nprint(products)\nprint()\n\n# Add new calculated column\nproducts['total_value'] = products['price'] * products['quantity']\n\nprint(\"With new column:\")\nprint(products)\n","python",[422],{"type":393,"tag":423,"props":424,"children":425},"code",{"__ignoreMap":6},[426,453,461,470,488,531,571,611,619,626,649,661,673,680,688,742,749,769],{"type":393,"tag":427,"props":428,"children":430},"span",{"class":429,"line":11},"line",[431,437,443,448],{"type":393,"tag":427,"props":432,"children":434},{"style":433},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[435],{"type":398,"value":436},"import",{"type":393,"tag":427,"props":438,"children":440},{"style":439},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[441],{"type":398,"value":442}," pandas ",{"type":393,"tag":427,"props":444,"children":445},{"style":433},[446],{"type":398,"value":447},"as",{"type":393,"tag":427,"props":449,"children":450},{"style":439},[451],{"type":398,"value":452}," pd\n",{"type":393,"tag":427,"props":454,"children":455},{"class":429,"line":27},[456],{"type":393,"tag":427,"props":457,"children":458},{"emptyLinePlaceholder":12},[459],{"type":398,"value":460},"\n",{"type":393,"tag":427,"props":462,"children":463},{"class":429,"line":36},[464],{"type":393,"tag":427,"props":465,"children":467},{"style":466},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[468],{"type":398,"value":469},"# Simple product data\n",{"type":393,"tag":427,"props":471,"children":472},{"class":429,"line":45},[473,478,483],{"type":393,"tag":427,"props":474,"children":475},{"style":439},[476],{"type":398,"value":477},"products ",{"type":393,"tag":427,"props":479,"children":480},{"style":433},[481],{"type":398,"value":482},"=",{"type":393,"tag":427,"props":484,"children":485},{"style":439},[486],{"type":398,"value":487}," pd.DataFrame({\n",{"type":393,"tag":427,"props":489,"children":490},{"class":429,"line":54},[491,497,502,507,512,517,521,526],{"type":393,"tag":427,"props":492,"children":494},{"style":493},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[495],{"type":398,"value":496},"    'name'",{"type":393,"tag":427,"props":498,"children":499},{"style":439},[500],{"type":398,"value":501},": [",{"type":393,"tag":427,"props":503,"children":504},{"style":493},[505],{"type":398,"value":506},"'Laptop'",{"type":393,"tag":427,"props":508,"children":509},{"style":439},[510],{"type":398,"value":511},", ",{"type":393,"tag":427,"props":513,"children":514},{"style":493},[515],{"type":398,"value":516},"'Mouse'",{"type":393,"tag":427,"props":518,"children":519},{"style":439},[520],{"type":398,"value":511},{"type":393,"tag":427,"props":522,"children":523},{"style":493},[524],{"type":398,"value":525},"'Keyboard'",{"type":393,"tag":427,"props":527,"children":528},{"style":439},[529],{"type":398,"value":530},"],\n",{"type":393,"tag":427,"props":532,"children":533},{"class":429,"line":63},[534,539,543,549,553,558,562,567],{"type":393,"tag":427,"props":535,"children":536},{"style":493},[537],{"type":398,"value":538},"    'price'",{"type":393,"tag":427,"props":540,"children":541},{"style":439},[542],{"type":398,"value":501},{"type":393,"tag":427,"props":544,"children":546},{"style":545},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[547],{"type":398,"value":548},"999",{"type":393,"tag":427,"props":550,"children":551},{"style":439},[552],{"type":398,"value":511},{"type":393,"tag":427,"props":554,"children":555},{"style":545},[556],{"type":398,"value":557},"25",{"type":393,"tag":427,"props":559,"children":560},{"style":439},[561],{"type":398,"value":511},{"type":393,"tag":427,"props":563,"children":564},{"style":545},[565],{"type":398,"value":566},"75",{"type":393,"tag":427,"props":568,"children":569},{"style":439},[570],{"type":398,"value":530},{"type":393,"tag":427,"props":572,"children":573},{"class":429,"line":72},[574,579,583,588,592,597,601,606],{"type":393,"tag":427,"props":575,"children":576},{"style":493},[577],{"type":398,"value":578},"    'quantity'",{"type":393,"tag":427,"props":580,"children":581},{"style":439},[582],{"type":398,"value":501},{"type":393,"tag":427,"props":584,"children":585},{"style":545},[586],{"type":398,"value":587},"2",{"type":393,"tag":427,"props":589,"children":590},{"style":439},[591],{"type":398,"value":511},{"type":393,"tag":427,"props":593,"children":594},{"style":545},[595],{"type":398,"value":596},"10",{"type":393,"tag":427,"props":598,"children":599},{"style":439},[600],{"type":398,"value":511},{"type":393,"tag":427,"props":602,"children":603},{"style":545},[604],{"type":398,"value":605},"5",{"type":393,"tag":427,"props":607,"children":608},{"style":439},[609],{"type":398,"value":610},"]\n",{"type":393,"tag":427,"props":612,"children":613},{"class":429,"line":83},[614],{"type":393,"tag":427,"props":615,"children":616},{"style":439},[617],{"type":398,"value":618},"})\n",{"type":393,"tag":427,"props":620,"children":621},{"class":429,"line":92},[622],{"type":393,"tag":427,"props":623,"children":624},{"emptyLinePlaceholder":12},[625],{"type":398,"value":460},{"type":393,"tag":427,"props":627,"children":628},{"class":429,"line":101},[629,634,639,644],{"type":393,"tag":427,"props":630,"children":631},{"style":545},[632],{"type":398,"value":633},"print",{"type":393,"tag":427,"props":635,"children":636},{"style":439},[637],{"type":398,"value":638},"(",{"type":393,"tag":427,"props":640,"children":641},{"style":493},[642],{"type":398,"value":643},"\"Original data:\"",{"type":393,"tag":427,"props":645,"children":646},{"style":439},[647],{"type":398,"value":648},")\n",{"type":393,"tag":427,"props":650,"children":651},{"class":429,"line":110},[652,656],{"type":393,"tag":427,"props":653,"children":654},{"style":545},[655],{"type":398,"value":633},{"type":393,"tag":427,"props":657,"children":658},{"style":439},[659],{"type":398,"value":660},"(products)\n",{"type":393,"tag":427,"props":662,"children":663},{"class":429,"line":121},[664,668],{"type":393,"tag":427,"props":665,"children":666},{"style":545},[667],{"type":398,"value":633},{"type":393,"tag":427,"props":669,"children":670},{"style":439},[671],{"type":398,"value":672},"()\n",{"type":393,"tag":427,"props":674,"children":675},{"class":429,"line":130},[676],{"type":393,"tag":427,"props":677,"children":678},{"emptyLinePlaceholder":12},[679],{"type":398,"value":460},{"type":393,"tag":427,"props":681,"children":682},{"class":429,"line":139},[683],{"type":393,"tag":427,"props":684,"children":685},{"style":466},[686],{"type":398,"value":687},"# Add new calculated column\n",{"type":393,"tag":427,"props":689,"children":690},{"class":429,"line":148},[691,696,701,706,710,715,720,724,729,733,738],{"type":393,"tag":427,"props":692,"children":693},{"style":439},[694],{"type":398,"value":695},"products[",{"type":393,"tag":427,"props":697,"children":698},{"style":493},[699],{"type":398,"value":700},"'total_value'",{"type":393,"tag":427,"props":702,"children":703},{"style":439},[704],{"type":398,"value":705},"] ",{"type":393,"tag":427,"props":707,"children":708},{"style":433},[709],{"type":398,"value":482},{"type":393,"tag":427,"props":711,"children":712},{"style":439},[713],{"type":398,"value":714}," products[",{"type":393,"tag":427,"props":716,"children":717},{"style":493},[718],{"type":398,"value":719},"'price'",{"type":393,"tag":427,"props":721,"children":722},{"style":439},[723],{"type":398,"value":705},{"type":393,"tag":427,"props":725,"children":726},{"style":433},[727],{"type":398,"value":728},"*",{"type":393,"tag":427,"props":730,"children":731},{"style":439},[732],{"type":398,"value":714},{"type":393,"tag":427,"props":734,"children":735},{"style":493},[736],{"type":398,"value":737},"'quantity'",{"type":393,"tag":427,"props":739,"children":740},{"style":439},[741],{"type":398,"value":610},{"type":393,"tag":427,"props":743,"children":744},{"class":429,"line":159},[745],{"type":393,"tag":427,"props":746,"children":747},{"emptyLinePlaceholder":12},[748],{"type":398,"value":460},{"type":393,"tag":427,"props":750,"children":751},{"class":429,"line":168},[752,756,760,765],{"type":393,"tag":427,"props":753,"children":754},{"style":545},[755],{"type":398,"value":633},{"type":393,"tag":427,"props":757,"children":758},{"style":439},[759],{"type":398,"value":638},{"type":393,"tag":427,"props":761,"children":762},{"style":493},[763],{"type":398,"value":764},"\"With new column:\"",{"type":393,"tag":427,"props":766,"children":767},{"style":439},[768],{"type":398,"value":648},{"type":393,"tag":427,"props":770,"children":771},{"class":429,"line":177},[772,776],{"type":393,"tag":427,"props":773,"children":774},{"style":545},[775],{"type":398,"value":633},{"type":393,"tag":427,"props":777,"children":778},{"style":439},[779],{"type":398,"value":660},{"type":393,"tag":781,"props":782,"children":784},"h2",{"id":783},"creating-new-columns",[785],{"type":398,"value":786},"🎯 Creating New Columns",{"type":393,"tag":401,"props":788,"children":789},{},[790],{"type":398,"value":791},"The simplest way to add a column is using bracket notation:",{"type":393,"tag":793,"props":794,"children":798},"info-box",{"emoji":795,"title":796,"type":797},"➕","Column Creation Basics","info",[799,808,846,854],{"type":393,"tag":401,"props":800,"children":801},{},[802],{"type":393,"tag":803,"props":804,"children":805},"strong",{},[806],{"type":398,"value":807},"Basic Syntax:",{"type":393,"tag":809,"props":810,"children":811},"ul",{},[812,824,835],{"type":393,"tag":813,"props":814,"children":815},"li",{},[816,822],{"type":393,"tag":423,"props":817,"children":819},{"className":818},[],[820],{"type":398,"value":821},"df['new_column'] = values",{"type":398,"value":823}," - Create new column",{"type":393,"tag":813,"props":825,"children":826},{},[827,833],{"type":393,"tag":423,"props":828,"children":830},{"className":829},[],[831],{"type":398,"value":832},"df['col'] = df['col1'] + df['col2']",{"type":398,"value":834}," - Mathematical operations",{"type":393,"tag":813,"props":836,"children":837},{},[838,844],{"type":393,"tag":423,"props":839,"children":841},{"className":840},[],[842],{"type":398,"value":843},"df['col'] = 'constant'",{"type":398,"value":845}," - Same value for all rows",{"type":393,"tag":401,"props":847,"children":848},{},[849],{"type":393,"tag":803,"props":850,"children":851},{},[852],{"type":398,"value":853},"Best Practices:",{"type":393,"tag":809,"props":855,"children":856},{},[857,862,867],{"type":393,"tag":813,"props":858,"children":859},{},[860],{"type":398,"value":861},"Use descriptive column names",{"type":393,"tag":813,"props":863,"children":864},{},[865],{"type":398,"value":866},"Create new columns instead of overwriting",{"type":393,"tag":813,"props":868,"children":869},{},[870],{"type":398,"value":871},"Test calculations on small samples first",{"type":393,"tag":873,"props":874,"children":876},"h3",{"id":875},"mathematical-operations",[877],{"type":398,"value":878},"Mathematical Operations",{"type":393,"tag":412,"props":880,"children":881},{},[882],{"type":393,"tag":416,"props":883,"children":885},{"className":418,"code":884,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Sales data\nsales = pd.DataFrame({\n    'item': ['Book', 'Pen', 'Notebook'],\n    'price': [15.99, 2.50, 8.99],\n    'quantity': [3, 12, 2]\n})\n\nprint(\"Sales data:\")\nprint(sales)\nprint()\n\n# Add calculated columns\nsales['total'] = sales['price'] * sales['quantity']\nsales['tax'] = sales['total'] * 0.08\n\nprint(\"With calculations:\")\nprint(sales)\n",[886],{"type":393,"tag":423,"props":887,"children":888},{"__ignoreMap":6},[889,908,915,923,939,978,1016,1053,1060,1067,1087,1099,1110,1117,1125,1175,1216,1223,1243],{"type":393,"tag":427,"props":890,"children":891},{"class":429,"line":11},[892,896,900,904],{"type":393,"tag":427,"props":893,"children":894},{"style":433},[895],{"type":398,"value":436},{"type":393,"tag":427,"props":897,"children":898},{"style":439},[899],{"type":398,"value":442},{"type":393,"tag":427,"props":901,"children":902},{"style":433},[903],{"type":398,"value":447},{"type":393,"tag":427,"props":905,"children":906},{"style":439},[907],{"type":398,"value":452},{"type":393,"tag":427,"props":909,"children":910},{"class":429,"line":27},[911],{"type":393,"tag":427,"props":912,"children":913},{"emptyLinePlaceholder":12},[914],{"type":398,"value":460},{"type":393,"tag":427,"props":916,"children":917},{"class":429,"line":36},[918],{"type":393,"tag":427,"props":919,"children":920},{"style":466},[921],{"type":398,"value":922},"# Sales data\n",{"type":393,"tag":427,"props":924,"children":925},{"class":429,"line":45},[926,931,935],{"type":393,"tag":427,"props":927,"children":928},{"style":439},[929],{"type":398,"value":930},"sales ",{"type":393,"tag":427,"props":932,"children":933},{"style":433},[934],{"type":398,"value":482},{"type":393,"tag":427,"props":936,"children":937},{"style":439},[938],{"type":398,"value":487},{"type":393,"tag":427,"props":940,"children":941},{"class":429,"line":54},[942,947,951,956,960,965,969,974],{"type":393,"tag":427,"props":943,"children":944},{"style":493},[945],{"type":398,"value":946},"    'item'",{"type":393,"tag":427,"props":948,"children":949},{"style":439},[950],{"type":398,"value":501},{"type":393,"tag":427,"props":952,"children":953},{"style":493},[954],{"type":398,"value":955},"'Book'",{"type":393,"tag":427,"props":957,"children":958},{"style":439},[959],{"type":398,"value":511},{"type":393,"tag":427,"props":961,"children":962},{"style":493},[963],{"type":398,"value":964},"'Pen'",{"type":393,"tag":427,"props":966,"children":967},{"style":439},[968],{"type":398,"value":511},{"type":393,"tag":427,"props":970,"children":971},{"style":493},[972],{"type":398,"value":973},"'Notebook'",{"type":393,"tag":427,"props":975,"children":976},{"style":439},[977],{"type":398,"value":530},{"type":393,"tag":427,"props":979,"children":980},{"class":429,"line":63},[981,985,989,994,998,1003,1007,1012],{"type":393,"tag":427,"props":982,"children":983},{"style":493},[984],{"type":398,"value":538},{"type":393,"tag":427,"props":986,"children":987},{"style":439},[988],{"type":398,"value":501},{"type":393,"tag":427,"props":990,"children":991},{"style":545},[992],{"type":398,"value":993},"15.99",{"type":393,"tag":427,"props":995,"children":996},{"style":439},[997],{"type":398,"value":511},{"type":393,"tag":427,"props":999,"children":1000},{"style":545},[1001],{"type":398,"value":1002},"2.50",{"type":393,"tag":427,"props":1004,"children":1005},{"style":439},[1006],{"type":398,"value":511},{"type":393,"tag":427,"props":1008,"children":1009},{"style":545},[1010],{"type":398,"value":1011},"8.99",{"type":393,"tag":427,"props":1013,"children":1014},{"style":439},[1015],{"type":398,"value":530},{"type":393,"tag":427,"props":1017,"children":1018},{"class":429,"line":72},[1019,1023,1027,1032,1036,1041,1045,1049],{"type":393,"tag":427,"props":1020,"children":1021},{"style":493},[1022],{"type":398,"value":578},{"type":393,"tag":427,"props":1024,"children":1025},{"style":439},[1026],{"type":398,"value":501},{"type":393,"tag":427,"props":1028,"children":1029},{"style":545},[1030],{"type":398,"value":1031},"3",{"type":393,"tag":427,"props":1033,"children":1034},{"style":439},[1035],{"type":398,"value":511},{"type":393,"tag":427,"props":1037,"children":1038},{"style":545},[1039],{"type":398,"value":1040},"12",{"type":393,"tag":427,"props":1042,"children":1043},{"style":439},[1044],{"type":398,"value":511},{"type":393,"tag":427,"props":1046,"children":1047},{"style":545},[1048],{"type":398,"value":587},{"type":393,"tag":427,"props":1050,"children":1051},{"style":439},[1052],{"type":398,"value":610},{"type":393,"tag":427,"props":1054,"children":1055},{"class":429,"line":83},[1056],{"type":393,"tag":427,"props":1057,"children":1058},{"style":439},[1059],{"type":398,"value":618},{"type":393,"tag":427,"props":1061,"children":1062},{"class":429,"line":92},[1063],{"type":393,"tag":427,"props":1064,"children":1065},{"emptyLinePlaceholder":12},[1066],{"type":398,"value":460},{"type":393,"tag":427,"props":1068,"children":1069},{"class":429,"line":101},[1070,1074,1078,1083],{"type":393,"tag":427,"props":1071,"children":1072},{"style":545},[1073],{"type":398,"value":633},{"type":393,"tag":427,"props":1075,"children":1076},{"style":439},[1077],{"type":398,"value":638},{"type":393,"tag":427,"props":1079,"children":1080},{"style":493},[1081],{"type":398,"value":1082},"\"Sales data:\"",{"type":393,"tag":427,"props":1084,"children":1085},{"style":439},[1086],{"type":398,"value":648},{"type":393,"tag":427,"props":1088,"children":1089},{"class":429,"line":110},[1090,1094],{"type":393,"tag":427,"props":1091,"children":1092},{"style":545},[1093],{"type":398,"value":633},{"type":393,"tag":427,"props":1095,"children":1096},{"style":439},[1097],{"type":398,"value":1098},"(sales)\n",{"type":393,"tag":427,"props":1100,"children":1101},{"class":429,"line":121},[1102,1106],{"type":393,"tag":427,"props":1103,"children":1104},{"style":545},[1105],{"type":398,"value":633},{"type":393,"tag":427,"props":1107,"children":1108},{"style":439},[1109],{"type":398,"value":672},{"type":393,"tag":427,"props":1111,"children":1112},{"class":429,"line":130},[1113],{"type":393,"tag":427,"props":1114,"children":1115},{"emptyLinePlaceholder":12},[1116],{"type":398,"value":460},{"type":393,"tag":427,"props":1118,"children":1119},{"class":429,"line":139},[1120],{"type":393,"tag":427,"props":1121,"children":1122},{"style":466},[1123],{"type":398,"value":1124},"# Add calculated columns\n",{"type":393,"tag":427,"props":1126,"children":1127},{"class":429,"line":148},[1128,1133,1138,1142,1146,1151,1155,1159,1163,1167,1171],{"type":393,"tag":427,"props":1129,"children":1130},{"style":439},[1131],{"type":398,"value":1132},"sales[",{"type":393,"tag":427,"props":1134,"children":1135},{"style":493},[1136],{"type":398,"value":1137},"'total'",{"type":393,"tag":427,"props":1139,"children":1140},{"style":439},[1141],{"type":398,"value":705},{"type":393,"tag":427,"props":1143,"children":1144},{"style":433},[1145],{"type":398,"value":482},{"type":393,"tag":427,"props":1147,"children":1148},{"style":439},[1149],{"type":398,"value":1150}," sales[",{"type":393,"tag":427,"props":1152,"children":1153},{"style":493},[1154],{"type":398,"value":719},{"type":393,"tag":427,"props":1156,"children":1157},{"style":439},[1158],{"type":398,"value":705},{"type":393,"tag":427,"props":1160,"children":1161},{"style":433},[1162],{"type":398,"value":728},{"type":393,"tag":427,"props":1164,"children":1165},{"style":439},[1166],{"type":398,"value":1150},{"type":393,"tag":427,"props":1168,"children":1169},{"style":493},[1170],{"type":398,"value":737},{"type":393,"tag":427,"props":1172,"children":1173},{"style":439},[1174],{"type":398,"value":610},{"type":393,"tag":427,"props":1176,"children":1177},{"class":429,"line":159},[1178,1182,1187,1191,1195,1199,1203,1207,1211],{"type":393,"tag":427,"props":1179,"children":1180},{"style":439},[1181],{"type":398,"value":1132},{"type":393,"tag":427,"props":1183,"children":1184},{"style":493},[1185],{"type":398,"value":1186},"'tax'",{"type":393,"tag":427,"props":1188,"children":1189},{"style":439},[1190],{"type":398,"value":705},{"type":393,"tag":427,"props":1192,"children":1193},{"style":433},[1194],{"type":398,"value":482},{"type":393,"tag":427,"props":1196,"children":1197},{"style":439},[1198],{"type":398,"value":1150},{"type":393,"tag":427,"props":1200,"children":1201},{"style":493},[1202],{"type":398,"value":1137},{"type":393,"tag":427,"props":1204,"children":1205},{"style":439},[1206],{"type":398,"value":705},{"type":393,"tag":427,"props":1208,"children":1209},{"style":433},[1210],{"type":398,"value":728},{"type":393,"tag":427,"props":1212,"children":1213},{"style":545},[1214],{"type":398,"value":1215}," 0.08\n",{"type":393,"tag":427,"props":1217,"children":1218},{"class":429,"line":168},[1219],{"type":393,"tag":427,"props":1220,"children":1221},{"emptyLinePlaceholder":12},[1222],{"type":398,"value":460},{"type":393,"tag":427,"props":1224,"children":1225},{"class":429,"line":177},[1226,1230,1234,1239],{"type":393,"tag":427,"props":1227,"children":1228},{"style":545},[1229],{"type":398,"value":633},{"type":393,"tag":427,"props":1231,"children":1232},{"style":439},[1233],{"type":398,"value":638},{"type":393,"tag":427,"props":1235,"children":1236},{"style":493},[1237],{"type":398,"value":1238},"\"With calculations:\"",{"type":393,"tag":427,"props":1240,"children":1241},{"style":439},[1242],{"type":398,"value":648},{"type":393,"tag":427,"props":1244,"children":1245},{"class":429,"line":186},[1246,1250],{"type":393,"tag":427,"props":1247,"children":1248},{"style":545},[1249],{"type":398,"value":633},{"type":393,"tag":427,"props":1251,"children":1252},{"style":439},[1253],{"type":398,"value":1098},{"type":393,"tag":873,"props":1255,"children":1257},{"id":1256},"text-operations",[1258],{"type":398,"value":1259},"Text Operations",{"type":393,"tag":412,"props":1261,"children":1262},{},[1263],{"type":393,"tag":416,"props":1264,"children":1266},{"className":418,"code":1265,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Customer data\ncustomers = pd.DataFrame({\n    'first_name': ['John', 'Jane', 'Bob'],\n    'last_name': ['Smith', 'Doe', 'Johnson'],\n    'city': ['new york', 'chicago', 'boston']\n})\n\nprint(\"Customer data:\")\nprint(customers)\nprint()\n\n# Add text columns\ncustomers['full_name'] = customers['first_name'] + ' ' + customers['last_name']\ncustomers['city_clean'] = customers['city'].str.title()\n\nprint(\"With text operations:\")\nprint(customers[['full_name', 'city_clean']])\n",[1267],{"type":393,"tag":423,"props":1268,"children":1269},{"__ignoreMap":6},[1270,1289,1296,1304,1320,1359,1398,1437,1444,1451,1471,1483,1494,1501,1509,1572,1606,1613,1633],{"type":393,"tag":427,"props":1271,"children":1272},{"class":429,"line":11},[1273,1277,1281,1285],{"type":393,"tag":427,"props":1274,"children":1275},{"style":433},[1276],{"type":398,"value":436},{"type":393,"tag":427,"props":1278,"children":1279},{"style":439},[1280],{"type":398,"value":442},{"type":393,"tag":427,"props":1282,"children":1283},{"style":433},[1284],{"type":398,"value":447},{"type":393,"tag":427,"props":1286,"children":1287},{"style":439},[1288],{"type":398,"value":452},{"type":393,"tag":427,"props":1290,"children":1291},{"class":429,"line":27},[1292],{"type":393,"tag":427,"props":1293,"children":1294},{"emptyLinePlaceholder":12},[1295],{"type":398,"value":460},{"type":393,"tag":427,"props":1297,"children":1298},{"class":429,"line":36},[1299],{"type":393,"tag":427,"props":1300,"children":1301},{"style":466},[1302],{"type":398,"value":1303},"# Customer data\n",{"type":393,"tag":427,"props":1305,"children":1306},{"class":429,"line":45},[1307,1312,1316],{"type":393,"tag":427,"props":1308,"children":1309},{"style":439},[1310],{"type":398,"value":1311},"customers ",{"type":393,"tag":427,"props":1313,"children":1314},{"style":433},[1315],{"type":398,"value":482},{"type":393,"tag":427,"props":1317,"children":1318},{"style":439},[1319],{"type":398,"value":487},{"type":393,"tag":427,"props":1321,"children":1322},{"class":429,"line":54},[1323,1328,1332,1337,1341,1346,1350,1355],{"type":393,"tag":427,"props":1324,"children":1325},{"style":493},[1326],{"type":398,"value":1327},"    'first_name'",{"type":393,"tag":427,"props":1329,"children":1330},{"style":439},[1331],{"type":398,"value":501},{"type":393,"tag":427,"props":1333,"children":1334},{"style":493},[1335],{"type":398,"value":1336},"'John'",{"type":393,"tag":427,"props":1338,"children":1339},{"style":439},[1340],{"type":398,"value":511},{"type":393,"tag":427,"props":1342,"children":1343},{"style":493},[1344],{"type":398,"value":1345},"'Jane'",{"type":393,"tag":427,"props":1347,"children":1348},{"style":439},[1349],{"type":398,"value":511},{"type":393,"tag":427,"props":1351,"children":1352},{"style":493},[1353],{"type":398,"value":1354},"'Bob'",{"type":393,"tag":427,"props":1356,"children":1357},{"style":439},[1358],{"type":398,"value":530},{"type":393,"tag":427,"props":1360,"children":1361},{"class":429,"line":63},[1362,1367,1371,1376,1380,1385,1389,1394],{"type":393,"tag":427,"props":1363,"children":1364},{"style":493},[1365],{"type":398,"value":1366},"    'last_name'",{"type":393,"tag":427,"props":1368,"children":1369},{"style":439},[1370],{"type":398,"value":501},{"type":393,"tag":427,"props":1372,"children":1373},{"style":493},[1374],{"type":398,"value":1375},"'Smith'",{"type":393,"tag":427,"props":1377,"children":1378},{"style":439},[1379],{"type":398,"value":511},{"type":393,"tag":427,"props":1381,"children":1382},{"style":493},[1383],{"type":398,"value":1384},"'Doe'",{"type":393,"tag":427,"props":1386,"children":1387},{"style":439},[1388],{"type":398,"value":511},{"type":393,"tag":427,"props":1390,"children":1391},{"style":493},[1392],{"type":398,"value":1393},"'Johnson'",{"type":393,"tag":427,"props":1395,"children":1396},{"style":439},[1397],{"type":398,"value":530},{"type":393,"tag":427,"props":1399,"children":1400},{"class":429,"line":72},[1401,1406,1410,1415,1419,1424,1428,1433],{"type":393,"tag":427,"props":1402,"children":1403},{"style":493},[1404],{"type":398,"value":1405},"    'city'",{"type":393,"tag":427,"props":1407,"children":1408},{"style":439},[1409],{"type":398,"value":501},{"type":393,"tag":427,"props":1411,"children":1412},{"style":493},[1413],{"type":398,"value":1414},"'new york'",{"type":393,"tag":427,"props":1416,"children":1417},{"style":439},[1418],{"type":398,"value":511},{"type":393,"tag":427,"props":1420,"children":1421},{"style":493},[1422],{"type":398,"value":1423},"'chicago'",{"type":393,"tag":427,"props":1425,"children":1426},{"style":439},[1427],{"type":398,"value":511},{"type":393,"tag":427,"props":1429,"children":1430},{"style":493},[1431],{"type":398,"value":1432},"'boston'",{"type":393,"tag":427,"props":1434,"children":1435},{"style":439},[1436],{"type":398,"value":610},{"type":393,"tag":427,"props":1438,"children":1439},{"class":429,"line":83},[1440],{"type":393,"tag":427,"props":1441,"children":1442},{"style":439},[1443],{"type":398,"value":618},{"type":393,"tag":427,"props":1445,"children":1446},{"class":429,"line":92},[1447],{"type":393,"tag":427,"props":1448,"children":1449},{"emptyLinePlaceholder":12},[1450],{"type":398,"value":460},{"type":393,"tag":427,"props":1452,"children":1453},{"class":429,"line":101},[1454,1458,1462,1467],{"type":393,"tag":427,"props":1455,"children":1456},{"style":545},[1457],{"type":398,"value":633},{"type":393,"tag":427,"props":1459,"children":1460},{"style":439},[1461],{"type":398,"value":638},{"type":393,"tag":427,"props":1463,"children":1464},{"style":493},[1465],{"type":398,"value":1466},"\"Customer data:\"",{"type":393,"tag":427,"props":1468,"children":1469},{"style":439},[1470],{"type":398,"value":648},{"type":393,"tag":427,"props":1472,"children":1473},{"class":429,"line":110},[1474,1478],{"type":393,"tag":427,"props":1475,"children":1476},{"style":545},[1477],{"type":398,"value":633},{"type":393,"tag":427,"props":1479,"children":1480},{"style":439},[1481],{"type":398,"value":1482},"(customers)\n",{"type":393,"tag":427,"props":1484,"children":1485},{"class":429,"line":121},[1486,1490],{"type":393,"tag":427,"props":1487,"children":1488},{"style":545},[1489],{"type":398,"value":633},{"type":393,"tag":427,"props":1491,"children":1492},{"style":439},[1493],{"type":398,"value":672},{"type":393,"tag":427,"props":1495,"children":1496},{"class":429,"line":130},[1497],{"type":393,"tag":427,"props":1498,"children":1499},{"emptyLinePlaceholder":12},[1500],{"type":398,"value":460},{"type":393,"tag":427,"props":1502,"children":1503},{"class":429,"line":139},[1504],{"type":393,"tag":427,"props":1505,"children":1506},{"style":466},[1507],{"type":398,"value":1508},"# Add text columns\n",{"type":393,"tag":427,"props":1510,"children":1511},{"class":429,"line":148},[1512,1517,1522,1526,1530,1535,1540,1544,1549,1554,1559,1563,1568],{"type":393,"tag":427,"props":1513,"children":1514},{"style":439},[1515],{"type":398,"value":1516},"customers[",{"type":393,"tag":427,"props":1518,"children":1519},{"style":493},[1520],{"type":398,"value":1521},"'full_name'",{"type":393,"tag":427,"props":1523,"children":1524},{"style":439},[1525],{"type":398,"value":705},{"type":393,"tag":427,"props":1527,"children":1528},{"style":433},[1529],{"type":398,"value":482},{"type":393,"tag":427,"props":1531,"children":1532},{"style":439},[1533],{"type":398,"value":1534}," customers[",{"type":393,"tag":427,"props":1536,"children":1537},{"style":493},[1538],{"type":398,"value":1539},"'first_name'",{"type":393,"tag":427,"props":1541,"children":1542},{"style":439},[1543],{"type":398,"value":705},{"type":393,"tag":427,"props":1545,"children":1546},{"style":433},[1547],{"type":398,"value":1548},"+",{"type":393,"tag":427,"props":1550,"children":1551},{"style":493},[1552],{"type":398,"value":1553}," ' '",{"type":393,"tag":427,"props":1555,"children":1556},{"style":433},[1557],{"type":398,"value":1558}," +",{"type":393,"tag":427,"props":1560,"children":1561},{"style":439},[1562],{"type":398,"value":1534},{"type":393,"tag":427,"props":1564,"children":1565},{"style":493},[1566],{"type":398,"value":1567},"'last_name'",{"type":393,"tag":427,"props":1569,"children":1570},{"style":439},[1571],{"type":398,"value":610},{"type":393,"tag":427,"props":1573,"children":1574},{"class":429,"line":159},[1575,1579,1584,1588,1592,1596,1601],{"type":393,"tag":427,"props":1576,"children":1577},{"style":439},[1578],{"type":398,"value":1516},{"type":393,"tag":427,"props":1580,"children":1581},{"style":493},[1582],{"type":398,"value":1583},"'city_clean'",{"type":393,"tag":427,"props":1585,"children":1586},{"style":439},[1587],{"type":398,"value":705},{"type":393,"tag":427,"props":1589,"children":1590},{"style":433},[1591],{"type":398,"value":482},{"type":393,"tag":427,"props":1593,"children":1594},{"style":439},[1595],{"type":398,"value":1534},{"type":393,"tag":427,"props":1597,"children":1598},{"style":493},[1599],{"type":398,"value":1600},"'city'",{"type":393,"tag":427,"props":1602,"children":1603},{"style":439},[1604],{"type":398,"value":1605},"].str.title()\n",{"type":393,"tag":427,"props":1607,"children":1608},{"class":429,"line":168},[1609],{"type":393,"tag":427,"props":1610,"children":1611},{"emptyLinePlaceholder":12},[1612],{"type":398,"value":460},{"type":393,"tag":427,"props":1614,"children":1615},{"class":429,"line":177},[1616,1620,1624,1629],{"type":393,"tag":427,"props":1617,"children":1618},{"style":545},[1619],{"type":398,"value":633},{"type":393,"tag":427,"props":1621,"children":1622},{"style":439},[1623],{"type":398,"value":638},{"type":393,"tag":427,"props":1625,"children":1626},{"style":493},[1627],{"type":398,"value":1628},"\"With text operations:\"",{"type":393,"tag":427,"props":1630,"children":1631},{"style":439},[1632],{"type":398,"value":648},{"type":393,"tag":427,"props":1634,"children":1635},{"class":429,"line":186},[1636,1640,1645,1649,1653,1657],{"type":393,"tag":427,"props":1637,"children":1638},{"style":545},[1639],{"type":398,"value":633},{"type":393,"tag":427,"props":1641,"children":1642},{"style":439},[1643],{"type":398,"value":1644},"(customers[[",{"type":393,"tag":427,"props":1646,"children":1647},{"style":493},[1648],{"type":398,"value":1521},{"type":393,"tag":427,"props":1650,"children":1651},{"style":439},[1652],{"type":398,"value":511},{"type":393,"tag":427,"props":1654,"children":1655},{"style":493},[1656],{"type":398,"value":1583},{"type":393,"tag":427,"props":1658,"children":1659},{"style":439},[1660],{"type":398,"value":1661},"]])\n",{"type":393,"tag":781,"props":1663,"children":1665},{"id":1664},"modifying-existing-columns",[1666],{"type":398,"value":1667},"🔄 Modifying Existing Columns",{"type":393,"tag":401,"props":1669,"children":1670},{},[1671],{"type":398,"value":1672},"Sometimes you need to update existing data rather than create new columns:",{"type":393,"tag":793,"props":1674,"children":1678},{"emoji":1675,"title":1676,"type":1677},"⚠️","Modifying Columns Safely","warning",[1679,1687,1718,1726],{"type":393,"tag":401,"props":1680,"children":1681},{},[1682],{"type":393,"tag":803,"props":1683,"children":1684},{},[1685],{"type":398,"value":1686},"Important Tips:",{"type":393,"tag":809,"props":1688,"children":1689},{},[1690,1695,1700,1713],{"type":393,"tag":813,"props":1691,"children":1692},{},[1693],{"type":398,"value":1694},"Always backup original data first",{"type":393,"tag":813,"props":1696,"children":1697},{},[1698],{"type":398,"value":1699},"Test modifications on copies",{"type":393,"tag":813,"props":1701,"children":1702},{},[1703,1705,1711],{"type":398,"value":1704},"Use ",{"type":393,"tag":423,"props":1706,"children":1708},{"className":1707},[],[1709],{"type":398,"value":1710},".copy()",{"type":398,"value":1712}," to avoid changing original DataFrame",{"type":393,"tag":813,"props":1714,"children":1715},{},[1716],{"type":398,"value":1717},"Consider creating new columns instead of overwriting",{"type":393,"tag":401,"props":1719,"children":1720},{},[1721],{"type":393,"tag":803,"props":1722,"children":1723},{},[1724],{"type":398,"value":1725},"Common Modifications:",{"type":393,"tag":809,"props":1727,"children":1728},{},[1729,1734,1739],{"type":393,"tag":813,"props":1730,"children":1731},{},[1732],{"type":398,"value":1733},"Fix data formats (dates, numbers)",{"type":393,"tag":813,"props":1735,"children":1736},{},[1737],{"type":398,"value":1738},"Clean text data (remove spaces, fix capitalization)",{"type":393,"tag":813,"props":1740,"children":1741},{},[1742],{"type":398,"value":1743},"Apply corrections or updates",{"type":393,"tag":873,"props":1745,"children":1747},{"id":1746},"updating-values",[1748],{"type":398,"value":1749},"Updating Values",{"type":393,"tag":412,"props":1751,"children":1752},{},[1753],{"type":393,"tag":416,"props":1754,"children":1756},{"className":418,"code":1755,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Product inventory\ninventory = pd.DataFrame({\n    'product': ['  Laptop  ', '  mouse  ', 'KEYBOARD'],\n    'price': [999.99, 24.99, 74.99]\n})\n\nprint(\"Original inventory:\")\nprint(inventory)\nprint()\n\n# Clean up the data\ninventory['product'] = inventory['product'].str.strip().str.title()\ninventory['price'] = inventory['price'].round(0)\n\nprint(\"Cleaned inventory:\")\nprint(inventory)\n",[1757],{"type":393,"tag":423,"props":1758,"children":1759},{"__ignoreMap":6},[1760,1779,1786,1794,1810,1849,1887,1894,1901,1921,1933,1944,1951,1959,1994,2035,2042,2062],{"type":393,"tag":427,"props":1761,"children":1762},{"class":429,"line":11},[1763,1767,1771,1775],{"type":393,"tag":427,"props":1764,"children":1765},{"style":433},[1766],{"type":398,"value":436},{"type":393,"tag":427,"props":1768,"children":1769},{"style":439},[1770],{"type":398,"value":442},{"type":393,"tag":427,"props":1772,"children":1773},{"style":433},[1774],{"type":398,"value":447},{"type":393,"tag":427,"props":1776,"children":1777},{"style":439},[1778],{"type":398,"value":452},{"type":393,"tag":427,"props":1780,"children":1781},{"class":429,"line":27},[1782],{"type":393,"tag":427,"props":1783,"children":1784},{"emptyLinePlaceholder":12},[1785],{"type":398,"value":460},{"type":393,"tag":427,"props":1787,"children":1788},{"class":429,"line":36},[1789],{"type":393,"tag":427,"props":1790,"children":1791},{"style":466},[1792],{"type":398,"value":1793},"# Product inventory\n",{"type":393,"tag":427,"props":1795,"children":1796},{"class":429,"line":45},[1797,1802,1806],{"type":393,"tag":427,"props":1798,"children":1799},{"style":439},[1800],{"type":398,"value":1801},"inventory ",{"type":393,"tag":427,"props":1803,"children":1804},{"style":433},[1805],{"type":398,"value":482},{"type":393,"tag":427,"props":1807,"children":1808},{"style":439},[1809],{"type":398,"value":487},{"type":393,"tag":427,"props":1811,"children":1812},{"class":429,"line":54},[1813,1818,1822,1827,1831,1836,1840,1845],{"type":393,"tag":427,"props":1814,"children":1815},{"style":493},[1816],{"type":398,"value":1817},"    'product'",{"type":393,"tag":427,"props":1819,"children":1820},{"style":439},[1821],{"type":398,"value":501},{"type":393,"tag":427,"props":1823,"children":1824},{"style":493},[1825],{"type":398,"value":1826},"'  Laptop  '",{"type":393,"tag":427,"props":1828,"children":1829},{"style":439},[1830],{"type":398,"value":511},{"type":393,"tag":427,"props":1832,"children":1833},{"style":493},[1834],{"type":398,"value":1835},"'  mouse  '",{"type":393,"tag":427,"props":1837,"children":1838},{"style":439},[1839],{"type":398,"value":511},{"type":393,"tag":427,"props":1841,"children":1842},{"style":493},[1843],{"type":398,"value":1844},"'KEYBOARD'",{"type":393,"tag":427,"props":1846,"children":1847},{"style":439},[1848],{"type":398,"value":530},{"type":393,"tag":427,"props":1850,"children":1851},{"class":429,"line":63},[1852,1856,1860,1865,1869,1874,1878,1883],{"type":393,"tag":427,"props":1853,"children":1854},{"style":493},[1855],{"type":398,"value":538},{"type":393,"tag":427,"props":1857,"children":1858},{"style":439},[1859],{"type":398,"value":501},{"type":393,"tag":427,"props":1861,"children":1862},{"style":545},[1863],{"type":398,"value":1864},"999.99",{"type":393,"tag":427,"props":1866,"children":1867},{"style":439},[1868],{"type":398,"value":511},{"type":393,"tag":427,"props":1870,"children":1871},{"style":545},[1872],{"type":398,"value":1873},"24.99",{"type":393,"tag":427,"props":1875,"children":1876},{"style":439},[1877],{"type":398,"value":511},{"type":393,"tag":427,"props":1879,"children":1880},{"style":545},[1881],{"type":398,"value":1882},"74.99",{"type":393,"tag":427,"props":1884,"children":1885},{"style":439},[1886],{"type":398,"value":610},{"type":393,"tag":427,"props":1888,"children":1889},{"class":429,"line":72},[1890],{"type":393,"tag":427,"props":1891,"children":1892},{"style":439},[1893],{"type":398,"value":618},{"type":393,"tag":427,"props":1895,"children":1896},{"class":429,"line":83},[1897],{"type":393,"tag":427,"props":1898,"children":1899},{"emptyLinePlaceholder":12},[1900],{"type":398,"value":460},{"type":393,"tag":427,"props":1902,"children":1903},{"class":429,"line":92},[1904,1908,1912,1917],{"type":393,"tag":427,"props":1905,"children":1906},{"style":545},[1907],{"type":398,"value":633},{"type":393,"tag":427,"props":1909,"children":1910},{"style":439},[1911],{"type":398,"value":638},{"type":393,"tag":427,"props":1913,"children":1914},{"style":493},[1915],{"type":398,"value":1916},"\"Original inventory:\"",{"type":393,"tag":427,"props":1918,"children":1919},{"style":439},[1920],{"type":398,"value":648},{"type":393,"tag":427,"props":1922,"children":1923},{"class":429,"line":101},[1924,1928],{"type":393,"tag":427,"props":1925,"children":1926},{"style":545},[1927],{"type":398,"value":633},{"type":393,"tag":427,"props":1929,"children":1930},{"style":439},[1931],{"type":398,"value":1932},"(inventory)\n",{"type":393,"tag":427,"props":1934,"children":1935},{"class":429,"line":110},[1936,1940],{"type":393,"tag":427,"props":1937,"children":1938},{"style":545},[1939],{"type":398,"value":633},{"type":393,"tag":427,"props":1941,"children":1942},{"style":439},[1943],{"type":398,"value":672},{"type":393,"tag":427,"props":1945,"children":1946},{"class":429,"line":121},[1947],{"type":393,"tag":427,"props":1948,"children":1949},{"emptyLinePlaceholder":12},[1950],{"type":398,"value":460},{"type":393,"tag":427,"props":1952,"children":1953},{"class":429,"line":130},[1954],{"type":393,"tag":427,"props":1955,"children":1956},{"style":466},[1957],{"type":398,"value":1958},"# Clean up the data\n",{"type":393,"tag":427,"props":1960,"children":1961},{"class":429,"line":139},[1962,1967,1972,1976,1980,1985,1989],{"type":393,"tag":427,"props":1963,"children":1964},{"style":439},[1965],{"type":398,"value":1966},"inventory[",{"type":393,"tag":427,"props":1968,"children":1969},{"style":493},[1970],{"type":398,"value":1971},"'product'",{"type":393,"tag":427,"props":1973,"children":1974},{"style":439},[1975],{"type":398,"value":705},{"type":393,"tag":427,"props":1977,"children":1978},{"style":433},[1979],{"type":398,"value":482},{"type":393,"tag":427,"props":1981,"children":1982},{"style":439},[1983],{"type":398,"value":1984}," inventory[",{"type":393,"tag":427,"props":1986,"children":1987},{"style":493},[1988],{"type":398,"value":1971},{"type":393,"tag":427,"props":1990,"children":1991},{"style":439},[1992],{"type":398,"value":1993},"].str.strip().str.title()\n",{"type":393,"tag":427,"props":1995,"children":1996},{"class":429,"line":148},[1997,2001,2005,2009,2013,2017,2021,2026,2031],{"type":393,"tag":427,"props":1998,"children":1999},{"style":439},[2000],{"type":398,"value":1966},{"type":393,"tag":427,"props":2002,"children":2003},{"style":493},[2004],{"type":398,"value":719},{"type":393,"tag":427,"props":2006,"children":2007},{"style":439},[2008],{"type":398,"value":705},{"type":393,"tag":427,"props":2010,"children":2011},{"style":433},[2012],{"type":398,"value":482},{"type":393,"tag":427,"props":2014,"children":2015},{"style":439},[2016],{"type":398,"value":1984},{"type":393,"tag":427,"props":2018,"children":2019},{"style":493},[2020],{"type":398,"value":719},{"type":393,"tag":427,"props":2022,"children":2023},{"style":439},[2024],{"type":398,"value":2025},"].round(",{"type":393,"tag":427,"props":2027,"children":2028},{"style":545},[2029],{"type":398,"value":2030},"0",{"type":393,"tag":427,"props":2032,"children":2033},{"style":439},[2034],{"type":398,"value":648},{"type":393,"tag":427,"props":2036,"children":2037},{"class":429,"line":159},[2038],{"type":393,"tag":427,"props":2039,"children":2040},{"emptyLinePlaceholder":12},[2041],{"type":398,"value":460},{"type":393,"tag":427,"props":2043,"children":2044},{"class":429,"line":168},[2045,2049,2053,2058],{"type":393,"tag":427,"props":2046,"children":2047},{"style":545},[2048],{"type":398,"value":633},{"type":393,"tag":427,"props":2050,"children":2051},{"style":439},[2052],{"type":398,"value":638},{"type":393,"tag":427,"props":2054,"children":2055},{"style":493},[2056],{"type":398,"value":2057},"\"Cleaned inventory:\"",{"type":393,"tag":427,"props":2059,"children":2060},{"style":439},[2061],{"type":398,"value":648},{"type":393,"tag":427,"props":2063,"children":2064},{"class":429,"line":177},[2065,2069],{"type":393,"tag":427,"props":2066,"children":2067},{"style":545},[2068],{"type":398,"value":633},{"type":393,"tag":427,"props":2070,"children":2071},{"style":439},[2072],{"type":398,"value":1932},{"type":393,"tag":873,"props":2074,"children":2076},{"id":2075},"conditional-updates",[2077],{"type":398,"value":2078},"Conditional Updates",{"type":393,"tag":412,"props":2080,"children":2081},{},[2082],{"type":393,"tag":416,"props":2083,"children":2085},{"className":418,"code":2084,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Employee data\nemployees = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie'],\n    'salary': [45000, 75000, 55000]\n})\n\nprint(\"Employee data:\")\nprint(employees)\nprint()\n\n# Add conditional columns\nemployees['salary_grade'] = 'Standard'\nemployees.loc[employees['salary'] > 60000, 'salary_grade'] = 'High'\nemployees.loc[employees['salary'] \u003C 50000, 'salary_grade'] = 'Entry'\n\nprint(\"With salary grades:\")\nprint(employees)\n",[2086],{"type":393,"tag":423,"props":2087,"children":2088},{"__ignoreMap":6},[2089,2108,2115,2123,2139,2176,2215,2222,2229,2249,2261,2272,2279,2287,2313,2361,2407,2414,2434],{"type":393,"tag":427,"props":2090,"children":2091},{"class":429,"line":11},[2092,2096,2100,2104],{"type":393,"tag":427,"props":2093,"children":2094},{"style":433},[2095],{"type":398,"value":436},{"type":393,"tag":427,"props":2097,"children":2098},{"style":439},[2099],{"type":398,"value":442},{"type":393,"tag":427,"props":2101,"children":2102},{"style":433},[2103],{"type":398,"value":447},{"type":393,"tag":427,"props":2105,"children":2106},{"style":439},[2107],{"type":398,"value":452},{"type":393,"tag":427,"props":2109,"children":2110},{"class":429,"line":27},[2111],{"type":393,"tag":427,"props":2112,"children":2113},{"emptyLinePlaceholder":12},[2114],{"type":398,"value":460},{"type":393,"tag":427,"props":2116,"children":2117},{"class":429,"line":36},[2118],{"type":393,"tag":427,"props":2119,"children":2120},{"style":466},[2121],{"type":398,"value":2122},"# Employee data\n",{"type":393,"tag":427,"props":2124,"children":2125},{"class":429,"line":45},[2126,2131,2135],{"type":393,"tag":427,"props":2127,"children":2128},{"style":439},[2129],{"type":398,"value":2130},"employees ",{"type":393,"tag":427,"props":2132,"children":2133},{"style":433},[2134],{"type":398,"value":482},{"type":393,"tag":427,"props":2136,"children":2137},{"style":439},[2138],{"type":398,"value":487},{"type":393,"tag":427,"props":2140,"children":2141},{"class":429,"line":54},[2142,2146,2150,2155,2159,2163,2167,2172],{"type":393,"tag":427,"props":2143,"children":2144},{"style":493},[2145],{"type":398,"value":496},{"type":393,"tag":427,"props":2147,"children":2148},{"style":439},[2149],{"type":398,"value":501},{"type":393,"tag":427,"props":2151,"children":2152},{"style":493},[2153],{"type":398,"value":2154},"'Alice'",{"type":393,"tag":427,"props":2156,"children":2157},{"style":439},[2158],{"type":398,"value":511},{"type":393,"tag":427,"props":2160,"children":2161},{"style":493},[2162],{"type":398,"value":1354},{"type":393,"tag":427,"props":2164,"children":2165},{"style":439},[2166],{"type":398,"value":511},{"type":393,"tag":427,"props":2168,"children":2169},{"style":493},[2170],{"type":398,"value":2171},"'Charlie'",{"type":393,"tag":427,"props":2173,"children":2174},{"style":439},[2175],{"type":398,"value":530},{"type":393,"tag":427,"props":2177,"children":2178},{"class":429,"line":63},[2179,2184,2188,2193,2197,2202,2206,2211],{"type":393,"tag":427,"props":2180,"children":2181},{"style":493},[2182],{"type":398,"value":2183},"    'salary'",{"type":393,"tag":427,"props":2185,"children":2186},{"style":439},[2187],{"type":398,"value":501},{"type":393,"tag":427,"props":2189,"children":2190},{"style":545},[2191],{"type":398,"value":2192},"45000",{"type":393,"tag":427,"props":2194,"children":2195},{"style":439},[2196],{"type":398,"value":511},{"type":393,"tag":427,"props":2198,"children":2199},{"style":545},[2200],{"type":398,"value":2201},"75000",{"type":393,"tag":427,"props":2203,"children":2204},{"style":439},[2205],{"type":398,"value":511},{"type":393,"tag":427,"props":2207,"children":2208},{"style":545},[2209],{"type":398,"value":2210},"55000",{"type":393,"tag":427,"props":2212,"children":2213},{"style":439},[2214],{"type":398,"value":610},{"type":393,"tag":427,"props":2216,"children":2217},{"class":429,"line":72},[2218],{"type":393,"tag":427,"props":2219,"children":2220},{"style":439},[2221],{"type":398,"value":618},{"type":393,"tag":427,"props":2223,"children":2224},{"class":429,"line":83},[2225],{"type":393,"tag":427,"props":2226,"children":2227},{"emptyLinePlaceholder":12},[2228],{"type":398,"value":460},{"type":393,"tag":427,"props":2230,"children":2231},{"class":429,"line":92},[2232,2236,2240,2245],{"type":393,"tag":427,"props":2233,"children":2234},{"style":545},[2235],{"type":398,"value":633},{"type":393,"tag":427,"props":2237,"children":2238},{"style":439},[2239],{"type":398,"value":638},{"type":393,"tag":427,"props":2241,"children":2242},{"style":493},[2243],{"type":398,"value":2244},"\"Employee data:\"",{"type":393,"tag":427,"props":2246,"children":2247},{"style":439},[2248],{"type":398,"value":648},{"type":393,"tag":427,"props":2250,"children":2251},{"class":429,"line":101},[2252,2256],{"type":393,"tag":427,"props":2253,"children":2254},{"style":545},[2255],{"type":398,"value":633},{"type":393,"tag":427,"props":2257,"children":2258},{"style":439},[2259],{"type":398,"value":2260},"(employees)\n",{"type":393,"tag":427,"props":2262,"children":2263},{"class":429,"line":110},[2264,2268],{"type":393,"tag":427,"props":2265,"children":2266},{"style":545},[2267],{"type":398,"value":633},{"type":393,"tag":427,"props":2269,"children":2270},{"style":439},[2271],{"type":398,"value":672},{"type":393,"tag":427,"props":2273,"children":2274},{"class":429,"line":121},[2275],{"type":393,"tag":427,"props":2276,"children":2277},{"emptyLinePlaceholder":12},[2278],{"type":398,"value":460},{"type":393,"tag":427,"props":2280,"children":2281},{"class":429,"line":130},[2282],{"type":393,"tag":427,"props":2283,"children":2284},{"style":466},[2285],{"type":398,"value":2286},"# Add conditional columns\n",{"type":393,"tag":427,"props":2288,"children":2289},{"class":429,"line":139},[2290,2295,2300,2304,2308],{"type":393,"tag":427,"props":2291,"children":2292},{"style":439},[2293],{"type":398,"value":2294},"employees[",{"type":393,"tag":427,"props":2296,"children":2297},{"style":493},[2298],{"type":398,"value":2299},"'salary_grade'",{"type":393,"tag":427,"props":2301,"children":2302},{"style":439},[2303],{"type":398,"value":705},{"type":393,"tag":427,"props":2305,"children":2306},{"style":433},[2307],{"type":398,"value":482},{"type":393,"tag":427,"props":2309,"children":2310},{"style":493},[2311],{"type":398,"value":2312}," 'Standard'\n",{"type":393,"tag":427,"props":2314,"children":2315},{"class":429,"line":148},[2316,2321,2326,2330,2335,2340,2344,2348,2352,2356],{"type":393,"tag":427,"props":2317,"children":2318},{"style":439},[2319],{"type":398,"value":2320},"employees.loc[employees[",{"type":393,"tag":427,"props":2322,"children":2323},{"style":493},[2324],{"type":398,"value":2325},"'salary'",{"type":393,"tag":427,"props":2327,"children":2328},{"style":439},[2329],{"type":398,"value":705},{"type":393,"tag":427,"props":2331,"children":2332},{"style":433},[2333],{"type":398,"value":2334},">",{"type":393,"tag":427,"props":2336,"children":2337},{"style":545},[2338],{"type":398,"value":2339}," 60000",{"type":393,"tag":427,"props":2341,"children":2342},{"style":439},[2343],{"type":398,"value":511},{"type":393,"tag":427,"props":2345,"children":2346},{"style":493},[2347],{"type":398,"value":2299},{"type":393,"tag":427,"props":2349,"children":2350},{"style":439},[2351],{"type":398,"value":705},{"type":393,"tag":427,"props":2353,"children":2354},{"style":433},[2355],{"type":398,"value":482},{"type":393,"tag":427,"props":2357,"children":2358},{"style":493},[2359],{"type":398,"value":2360}," 'High'\n",{"type":393,"tag":427,"props":2362,"children":2363},{"class":429,"line":159},[2364,2368,2372,2376,2381,2386,2390,2394,2398,2402],{"type":393,"tag":427,"props":2365,"children":2366},{"style":439},[2367],{"type":398,"value":2320},{"type":393,"tag":427,"props":2369,"children":2370},{"style":493},[2371],{"type":398,"value":2325},{"type":393,"tag":427,"props":2373,"children":2374},{"style":439},[2375],{"type":398,"value":705},{"type":393,"tag":427,"props":2377,"children":2378},{"style":433},[2379],{"type":398,"value":2380},"\u003C",{"type":393,"tag":427,"props":2382,"children":2383},{"style":545},[2384],{"type":398,"value":2385}," 50000",{"type":393,"tag":427,"props":2387,"children":2388},{"style":439},[2389],{"type":398,"value":511},{"type":393,"tag":427,"props":2391,"children":2392},{"style":493},[2393],{"type":398,"value":2299},{"type":393,"tag":427,"props":2395,"children":2396},{"style":439},[2397],{"type":398,"value":705},{"type":393,"tag":427,"props":2399,"children":2400},{"style":433},[2401],{"type":398,"value":482},{"type":393,"tag":427,"props":2403,"children":2404},{"style":493},[2405],{"type":398,"value":2406}," 'Entry'\n",{"type":393,"tag":427,"props":2408,"children":2409},{"class":429,"line":168},[2410],{"type":393,"tag":427,"props":2411,"children":2412},{"emptyLinePlaceholder":12},[2413],{"type":398,"value":460},{"type":393,"tag":427,"props":2415,"children":2416},{"class":429,"line":177},[2417,2421,2425,2430],{"type":393,"tag":427,"props":2418,"children":2419},{"style":545},[2420],{"type":398,"value":633},{"type":393,"tag":427,"props":2422,"children":2423},{"style":439},[2424],{"type":398,"value":638},{"type":393,"tag":427,"props":2426,"children":2427},{"style":493},[2428],{"type":398,"value":2429},"\"With salary grades:\"",{"type":393,"tag":427,"props":2431,"children":2432},{"style":439},[2433],{"type":398,"value":648},{"type":393,"tag":427,"props":2435,"children":2436},{"class":429,"line":186},[2437,2441],{"type":393,"tag":427,"props":2438,"children":2439},{"style":545},[2440],{"type":398,"value":633},{"type":393,"tag":427,"props":2442,"children":2443},{"style":439},[2444],{"type":398,"value":2260},{"type":393,"tag":781,"props":2446,"children":2448},{"id":2447},"advanced-column-operations",[2449],{"type":398,"value":2450},"📊 Advanced Column Operations",{"type":393,"tag":873,"props":2452,"children":2454},{"id":2453},"using-multiple-conditions",[2455],{"type":398,"value":2456},"Using Multiple Conditions",{"type":393,"tag":412,"props":2458,"children":2459},{},[2460],{"type":393,"tag":416,"props":2461,"children":2463},{"className":418,"code":2462,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Student grades\nstudents = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie'],\n    'math': [85, 78, 92],\n    'english': [90, 85, 89]\n})\n\nprint(\"Student grades:\")\nprint(students)\nprint()\n\n# Calculate average and assign letter grades\nstudents['average'] = (students['math'] + students['english']) / 2\n\n# Assign letter grades\nstudents['letter_grade'] = 'F'\nstudents.loc[students['average'] >= 90, 'letter_grade'] = 'A'\nstudents.loc[students['average'] >= 80, 'letter_grade'] = 'B'\nstudents.loc[students['average'] >= 70, 'letter_grade'] = 'C'\n\nprint(\"With grades:\")\nprint(students)\n",[2464],{"type":393,"tag":423,"props":2465,"children":2466},{"__ignoreMap":6},[2467,2486,2493,2501,2517,2552,2591,2629,2636,2643,2663,2675,2686,2693,2701,2765,2772,2780,2805,2852,2897,2942,2949,2969],{"type":393,"tag":427,"props":2468,"children":2469},{"class":429,"line":11},[2470,2474,2478,2482],{"type":393,"tag":427,"props":2471,"children":2472},{"style":433},[2473],{"type":398,"value":436},{"type":393,"tag":427,"props":2475,"children":2476},{"style":439},[2477],{"type":398,"value":442},{"type":393,"tag":427,"props":2479,"children":2480},{"style":433},[2481],{"type":398,"value":447},{"type":393,"tag":427,"props":2483,"children":2484},{"style":439},[2485],{"type":398,"value":452},{"type":393,"tag":427,"props":2487,"children":2488},{"class":429,"line":27},[2489],{"type":393,"tag":427,"props":2490,"children":2491},{"emptyLinePlaceholder":12},[2492],{"type":398,"value":460},{"type":393,"tag":427,"props":2494,"children":2495},{"class":429,"line":36},[2496],{"type":393,"tag":427,"props":2497,"children":2498},{"style":466},[2499],{"type":398,"value":2500},"# Student grades\n",{"type":393,"tag":427,"props":2502,"children":2503},{"class":429,"line":45},[2504,2509,2513],{"type":393,"tag":427,"props":2505,"children":2506},{"style":439},[2507],{"type":398,"value":2508},"students ",{"type":393,"tag":427,"props":2510,"children":2511},{"style":433},[2512],{"type":398,"value":482},{"type":393,"tag":427,"props":2514,"children":2515},{"style":439},[2516],{"type":398,"value":487},{"type":393,"tag":427,"props":2518,"children":2519},{"class":429,"line":54},[2520,2524,2528,2532,2536,2540,2544,2548],{"type":393,"tag":427,"props":2521,"children":2522},{"style":493},[2523],{"type":398,"value":496},{"type":393,"tag":427,"props":2525,"children":2526},{"style":439},[2527],{"type":398,"value":501},{"type":393,"tag":427,"props":2529,"children":2530},{"style":493},[2531],{"type":398,"value":2154},{"type":393,"tag":427,"props":2533,"children":2534},{"style":439},[2535],{"type":398,"value":511},{"type":393,"tag":427,"props":2537,"children":2538},{"style":493},[2539],{"type":398,"value":1354},{"type":393,"tag":427,"props":2541,"children":2542},{"style":439},[2543],{"type":398,"value":511},{"type":393,"tag":427,"props":2545,"children":2546},{"style":493},[2547],{"type":398,"value":2171},{"type":393,"tag":427,"props":2549,"children":2550},{"style":439},[2551],{"type":398,"value":530},{"type":393,"tag":427,"props":2553,"children":2554},{"class":429,"line":63},[2555,2560,2564,2569,2573,2578,2582,2587],{"type":393,"tag":427,"props":2556,"children":2557},{"style":493},[2558],{"type":398,"value":2559},"    'math'",{"type":393,"tag":427,"props":2561,"children":2562},{"style":439},[2563],{"type":398,"value":501},{"type":393,"tag":427,"props":2565,"children":2566},{"style":545},[2567],{"type":398,"value":2568},"85",{"type":393,"tag":427,"props":2570,"children":2571},{"style":439},[2572],{"type":398,"value":511},{"type":393,"tag":427,"props":2574,"children":2575},{"style":545},[2576],{"type":398,"value":2577},"78",{"type":393,"tag":427,"props":2579,"children":2580},{"style":439},[2581],{"type":398,"value":511},{"type":393,"tag":427,"props":2583,"children":2584},{"style":545},[2585],{"type":398,"value":2586},"92",{"type":393,"tag":427,"props":2588,"children":2589},{"style":439},[2590],{"type":398,"value":530},{"type":393,"tag":427,"props":2592,"children":2593},{"class":429,"line":72},[2594,2599,2603,2608,2612,2616,2620,2625],{"type":393,"tag":427,"props":2595,"children":2596},{"style":493},[2597],{"type":398,"value":2598},"    'english'",{"type":393,"tag":427,"props":2600,"children":2601},{"style":439},[2602],{"type":398,"value":501},{"type":393,"tag":427,"props":2604,"children":2605},{"style":545},[2606],{"type":398,"value":2607},"90",{"type":393,"tag":427,"props":2609,"children":2610},{"style":439},[2611],{"type":398,"value":511},{"type":393,"tag":427,"props":2613,"children":2614},{"style":545},[2615],{"type":398,"value":2568},{"type":393,"tag":427,"props":2617,"children":2618},{"style":439},[2619],{"type":398,"value":511},{"type":393,"tag":427,"props":2621,"children":2622},{"style":545},[2623],{"type":398,"value":2624},"89",{"type":393,"tag":427,"props":2626,"children":2627},{"style":439},[2628],{"type":398,"value":610},{"type":393,"tag":427,"props":2630,"children":2631},{"class":429,"line":83},[2632],{"type":393,"tag":427,"props":2633,"children":2634},{"style":439},[2635],{"type":398,"value":618},{"type":393,"tag":427,"props":2637,"children":2638},{"class":429,"line":92},[2639],{"type":393,"tag":427,"props":2640,"children":2641},{"emptyLinePlaceholder":12},[2642],{"type":398,"value":460},{"type":393,"tag":427,"props":2644,"children":2645},{"class":429,"line":101},[2646,2650,2654,2659],{"type":393,"tag":427,"props":2647,"children":2648},{"style":545},[2649],{"type":398,"value":633},{"type":393,"tag":427,"props":2651,"children":2652},{"style":439},[2653],{"type":398,"value":638},{"type":393,"tag":427,"props":2655,"children":2656},{"style":493},[2657],{"type":398,"value":2658},"\"Student grades:\"",{"type":393,"tag":427,"props":2660,"children":2661},{"style":439},[2662],{"type":398,"value":648},{"type":393,"tag":427,"props":2664,"children":2665},{"class":429,"line":110},[2666,2670],{"type":393,"tag":427,"props":2667,"children":2668},{"style":545},[2669],{"type":398,"value":633},{"type":393,"tag":427,"props":2671,"children":2672},{"style":439},[2673],{"type":398,"value":2674},"(students)\n",{"type":393,"tag":427,"props":2676,"children":2677},{"class":429,"line":121},[2678,2682],{"type":393,"tag":427,"props":2679,"children":2680},{"style":545},[2681],{"type":398,"value":633},{"type":393,"tag":427,"props":2683,"children":2684},{"style":439},[2685],{"type":398,"value":672},{"type":393,"tag":427,"props":2687,"children":2688},{"class":429,"line":130},[2689],{"type":393,"tag":427,"props":2690,"children":2691},{"emptyLinePlaceholder":12},[2692],{"type":398,"value":460},{"type":393,"tag":427,"props":2694,"children":2695},{"class":429,"line":139},[2696],{"type":393,"tag":427,"props":2697,"children":2698},{"style":466},[2699],{"type":398,"value":2700},"# Calculate average and assign letter grades\n",{"type":393,"tag":427,"props":2702,"children":2703},{"class":429,"line":148},[2704,2709,2714,2718,2722,2727,2732,2736,2740,2745,2750,2755,2760],{"type":393,"tag":427,"props":2705,"children":2706},{"style":439},[2707],{"type":398,"value":2708},"students[",{"type":393,"tag":427,"props":2710,"children":2711},{"style":493},[2712],{"type":398,"value":2713},"'average'",{"type":393,"tag":427,"props":2715,"children":2716},{"style":439},[2717],{"type":398,"value":705},{"type":393,"tag":427,"props":2719,"children":2720},{"style":433},[2721],{"type":398,"value":482},{"type":393,"tag":427,"props":2723,"children":2724},{"style":439},[2725],{"type":398,"value":2726}," (students[",{"type":393,"tag":427,"props":2728,"children":2729},{"style":493},[2730],{"type":398,"value":2731},"'math'",{"type":393,"tag":427,"props":2733,"children":2734},{"style":439},[2735],{"type":398,"value":705},{"type":393,"tag":427,"props":2737,"children":2738},{"style":433},[2739],{"type":398,"value":1548},{"type":393,"tag":427,"props":2741,"children":2742},{"style":439},[2743],{"type":398,"value":2744}," students[",{"type":393,"tag":427,"props":2746,"children":2747},{"style":493},[2748],{"type":398,"value":2749},"'english'",{"type":393,"tag":427,"props":2751,"children":2752},{"style":439},[2753],{"type":398,"value":2754},"]) ",{"type":393,"tag":427,"props":2756,"children":2757},{"style":433},[2758],{"type":398,"value":2759},"/",{"type":393,"tag":427,"props":2761,"children":2762},{"style":545},[2763],{"type":398,"value":2764}," 2\n",{"type":393,"tag":427,"props":2766,"children":2767},{"class":429,"line":159},[2768],{"type":393,"tag":427,"props":2769,"children":2770},{"emptyLinePlaceholder":12},[2771],{"type":398,"value":460},{"type":393,"tag":427,"props":2773,"children":2774},{"class":429,"line":168},[2775],{"type":393,"tag":427,"props":2776,"children":2777},{"style":466},[2778],{"type":398,"value":2779},"# Assign letter grades\n",{"type":393,"tag":427,"props":2781,"children":2782},{"class":429,"line":177},[2783,2787,2792,2796,2800],{"type":393,"tag":427,"props":2784,"children":2785},{"style":439},[2786],{"type":398,"value":2708},{"type":393,"tag":427,"props":2788,"children":2789},{"style":493},[2790],{"type":398,"value":2791},"'letter_grade'",{"type":393,"tag":427,"props":2793,"children":2794},{"style":439},[2795],{"type":398,"value":705},{"type":393,"tag":427,"props":2797,"children":2798},{"style":433},[2799],{"type":398,"value":482},{"type":393,"tag":427,"props":2801,"children":2802},{"style":493},[2803],{"type":398,"value":2804}," 'F'\n",{"type":393,"tag":427,"props":2806,"children":2807},{"class":429,"line":186},[2808,2813,2817,2821,2826,2831,2835,2839,2843,2847],{"type":393,"tag":427,"props":2809,"children":2810},{"style":439},[2811],{"type":398,"value":2812},"students.loc[students[",{"type":393,"tag":427,"props":2814,"children":2815},{"style":493},[2816],{"type":398,"value":2713},{"type":393,"tag":427,"props":2818,"children":2819},{"style":439},[2820],{"type":398,"value":705},{"type":393,"tag":427,"props":2822,"children":2823},{"style":433},[2824],{"type":398,"value":2825},">=",{"type":393,"tag":427,"props":2827,"children":2828},{"style":545},[2829],{"type":398,"value":2830}," 90",{"type":393,"tag":427,"props":2832,"children":2833},{"style":439},[2834],{"type":398,"value":511},{"type":393,"tag":427,"props":2836,"children":2837},{"style":493},[2838],{"type":398,"value":2791},{"type":393,"tag":427,"props":2840,"children":2841},{"style":439},[2842],{"type":398,"value":705},{"type":393,"tag":427,"props":2844,"children":2845},{"style":433},[2846],{"type":398,"value":482},{"type":393,"tag":427,"props":2848,"children":2849},{"style":493},[2850],{"type":398,"value":2851}," 'A'\n",{"type":393,"tag":427,"props":2853,"children":2854},{"class":429,"line":197},[2855,2859,2863,2867,2871,2876,2880,2884,2888,2892],{"type":393,"tag":427,"props":2856,"children":2857},{"style":439},[2858],{"type":398,"value":2812},{"type":393,"tag":427,"props":2860,"children":2861},{"style":493},[2862],{"type":398,"value":2713},{"type":393,"tag":427,"props":2864,"children":2865},{"style":439},[2866],{"type":398,"value":705},{"type":393,"tag":427,"props":2868,"children":2869},{"style":433},[2870],{"type":398,"value":2825},{"type":393,"tag":427,"props":2872,"children":2873},{"style":545},[2874],{"type":398,"value":2875}," 80",{"type":393,"tag":427,"props":2877,"children":2878},{"style":439},[2879],{"type":398,"value":511},{"type":393,"tag":427,"props":2881,"children":2882},{"style":493},[2883],{"type":398,"value":2791},{"type":393,"tag":427,"props":2885,"children":2886},{"style":439},[2887],{"type":398,"value":705},{"type":393,"tag":427,"props":2889,"children":2890},{"style":433},[2891],{"type":398,"value":482},{"type":393,"tag":427,"props":2893,"children":2894},{"style":493},[2895],{"type":398,"value":2896}," 'B'\n",{"type":393,"tag":427,"props":2898,"children":2899},{"class":429,"line":206},[2900,2904,2908,2912,2916,2921,2925,2929,2933,2937],{"type":393,"tag":427,"props":2901,"children":2902},{"style":439},[2903],{"type":398,"value":2812},{"type":393,"tag":427,"props":2905,"children":2906},{"style":493},[2907],{"type":398,"value":2713},{"type":393,"tag":427,"props":2909,"children":2910},{"style":439},[2911],{"type":398,"value":705},{"type":393,"tag":427,"props":2913,"children":2914},{"style":433},[2915],{"type":398,"value":2825},{"type":393,"tag":427,"props":2917,"children":2918},{"style":545},[2919],{"type":398,"value":2920}," 70",{"type":393,"tag":427,"props":2922,"children":2923},{"style":439},[2924],{"type":398,"value":511},{"type":393,"tag":427,"props":2926,"children":2927},{"style":493},[2928],{"type":398,"value":2791},{"type":393,"tag":427,"props":2930,"children":2931},{"style":439},[2932],{"type":398,"value":705},{"type":393,"tag":427,"props":2934,"children":2935},{"style":433},[2936],{"type":398,"value":482},{"type":393,"tag":427,"props":2938,"children":2939},{"style":493},[2940],{"type":398,"value":2941}," 'C'\n",{"type":393,"tag":427,"props":2943,"children":2944},{"class":429,"line":215},[2945],{"type":393,"tag":427,"props":2946,"children":2947},{"emptyLinePlaceholder":12},[2948],{"type":398,"value":460},{"type":393,"tag":427,"props":2950,"children":2951},{"class":429,"line":224},[2952,2956,2960,2965],{"type":393,"tag":427,"props":2953,"children":2954},{"style":545},[2955],{"type":398,"value":633},{"type":393,"tag":427,"props":2957,"children":2958},{"style":439},[2959],{"type":398,"value":638},{"type":393,"tag":427,"props":2961,"children":2962},{"style":493},[2963],{"type":398,"value":2964},"\"With grades:\"",{"type":393,"tag":427,"props":2966,"children":2967},{"style":439},[2968],{"type":398,"value":648},{"type":393,"tag":427,"props":2970,"children":2971},{"class":429,"line":233},[2972,2976],{"type":393,"tag":427,"props":2973,"children":2974},{"style":545},[2975],{"type":398,"value":633},{"type":393,"tag":427,"props":2977,"children":2978},{"style":439},[2979],{"type":398,"value":2674},{"type":393,"tag":781,"props":2981,"children":2983},{"id":2982},"common-column-modifications",[2984],{"type":398,"value":2985},"🔧 Common Column Modifications",{"type":393,"tag":793,"props":2987,"children":2990},{"emoji":2988,"title":2989,"type":797},"🛠️","Useful Column Operations",[2991,2999,3042,3050,3086,3094],{"type":393,"tag":401,"props":2992,"children":2993},{},[2994],{"type":393,"tag":803,"props":2995,"children":2996},{},[2997],{"type":398,"value":2998},"Text Operations:",{"type":393,"tag":809,"props":3000,"children":3001},{},[3002,3020,3031],{"type":393,"tag":813,"props":3003,"children":3004},{},[3005,3011,3012,3018],{"type":393,"tag":423,"props":3006,"children":3008},{"className":3007},[],[3009],{"type":398,"value":3010},".str.upper()",{"type":398,"value":511},{"type":393,"tag":423,"props":3013,"children":3015},{"className":3014},[],[3016],{"type":398,"value":3017},".str.lower()",{"type":398,"value":3019}," - Change case",{"type":393,"tag":813,"props":3021,"children":3022},{},[3023,3029],{"type":393,"tag":423,"props":3024,"children":3026},{"className":3025},[],[3027],{"type":398,"value":3028},".str.strip()",{"type":398,"value":3030}," - Remove extra spaces",{"type":393,"tag":813,"props":3032,"children":3033},{},[3034,3040],{"type":393,"tag":423,"props":3035,"children":3037},{"className":3036},[],[3038],{"type":398,"value":3039},".str.replace('old', 'new')",{"type":398,"value":3041}," - Replace text",{"type":393,"tag":401,"props":3043,"children":3044},{},[3045],{"type":393,"tag":803,"props":3046,"children":3047},{},[3048],{"type":398,"value":3049},"Number Operations:",{"type":393,"tag":809,"props":3051,"children":3052},{},[3053,3064,3075],{"type":393,"tag":813,"props":3054,"children":3055},{},[3056,3062],{"type":393,"tag":423,"props":3057,"children":3059},{"className":3058},[],[3060],{"type":398,"value":3061},".round(2)",{"type":398,"value":3063}," - Round to decimal places",{"type":393,"tag":813,"props":3065,"children":3066},{},[3067,3073],{"type":393,"tag":423,"props":3068,"children":3070},{"className":3069},[],[3071],{"type":398,"value":3072},".abs()",{"type":398,"value":3074}," - Absolute values",{"type":393,"tag":813,"props":3076,"children":3077},{},[3078,3084],{"type":393,"tag":423,"props":3079,"children":3081},{"className":3080},[],[3082],{"type":398,"value":3083},".astype(int)",{"type":398,"value":3085}," - Change data type",{"type":393,"tag":401,"props":3087,"children":3088},{},[3089],{"type":393,"tag":803,"props":3090,"children":3091},{},[3092],{"type":398,"value":3093},"Conditional Operations:",{"type":393,"tag":809,"props":3095,"children":3096},{},[3097,3108,3119],{"type":393,"tag":813,"props":3098,"children":3099},{},[3100,3106],{"type":393,"tag":423,"props":3101,"children":3103},{"className":3102},[],[3104],{"type":398,"value":3105},".loc[condition, 'col'] = value",{"type":398,"value":3107}," - Update specific rows",{"type":393,"tag":813,"props":3109,"children":3110},{},[3111,3117],{"type":393,"tag":423,"props":3112,"children":3114},{"className":3113},[],[3115],{"type":398,"value":3116},".replace({'old': 'new'})",{"type":398,"value":3118}," - Replace values",{"type":393,"tag":813,"props":3120,"children":3121},{},[3122,3128],{"type":393,"tag":423,"props":3123,"children":3125},{"className":3124},[],[3126],{"type":398,"value":3127},".fillna(value)",{"type":398,"value":3129}," - Fill missing values",{"type":393,"tag":781,"props":3131,"children":3133},{"id":3132},"practice-order-processing",[3134],{"type":398,"value":3135},"📝 Practice: Order Processing",{"type":393,"tag":401,"props":3137,"children":3138},{},[3139],{"type":398,"value":3140},"Let's practice with a realistic example:",{"type":393,"tag":412,"props":3142,"children":3143},{},[3144],{"type":393,"tag":416,"props":3145,"children":3147},{"className":418,"code":3146,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Customer orders\norders = pd.DataFrame({\n    'customer': ['Alice', 'Bob', 'Charlie'],\n    'product': ['laptop', 'mouse', 'keyboard'],\n    'price': [999, 29, 79],\n    'quantity': [1, 2, 1],\n    'discount': [10, 5, 0]  # percentage\n})\n\nprint(\"Original orders:\")\nprint(orders)\nprint()\n\n# Calculate totals\norders['subtotal'] = orders['price'] * orders['quantity']\norders['discount_amount'] = orders['subtotal'] * (orders['discount'] / 100)\norders['total'] = orders['subtotal'] - orders['discount_amount']\n\n# Clean product names\norders['product_clean'] = orders['product'].str.title()\n\nprint(\"Processed orders:\")\nprint(orders[['customer', 'product_clean', 'total']])\n",[3148],{"type":393,"tag":423,"props":3149,"children":3150},{"__ignoreMap":6},[3151,3170,3177,3185,3201,3237,3275,3312,3348,3390,3397,3404,3424,3436,3447,3454,3462,3512,3575,3623,3630,3638,3670,3677,3697],{"type":393,"tag":427,"props":3152,"children":3153},{"class":429,"line":11},[3154,3158,3162,3166],{"type":393,"tag":427,"props":3155,"children":3156},{"style":433},[3157],{"type":398,"value":436},{"type":393,"tag":427,"props":3159,"children":3160},{"style":439},[3161],{"type":398,"value":442},{"type":393,"tag":427,"props":3163,"children":3164},{"style":433},[3165],{"type":398,"value":447},{"type":393,"tag":427,"props":3167,"children":3168},{"style":439},[3169],{"type":398,"value":452},{"type":393,"tag":427,"props":3171,"children":3172},{"class":429,"line":27},[3173],{"type":393,"tag":427,"props":3174,"children":3175},{"emptyLinePlaceholder":12},[3176],{"type":398,"value":460},{"type":393,"tag":427,"props":3178,"children":3179},{"class":429,"line":36},[3180],{"type":393,"tag":427,"props":3181,"children":3182},{"style":466},[3183],{"type":398,"value":3184},"# Customer orders\n",{"type":393,"tag":427,"props":3186,"children":3187},{"class":429,"line":45},[3188,3193,3197],{"type":393,"tag":427,"props":3189,"children":3190},{"style":439},[3191],{"type":398,"value":3192},"orders ",{"type":393,"tag":427,"props":3194,"children":3195},{"style":433},[3196],{"type":398,"value":482},{"type":393,"tag":427,"props":3198,"children":3199},{"style":439},[3200],{"type":398,"value":487},{"type":393,"tag":427,"props":3202,"children":3203},{"class":429,"line":54},[3204,3209,3213,3217,3221,3225,3229,3233],{"type":393,"tag":427,"props":3205,"children":3206},{"style":493},[3207],{"type":398,"value":3208},"    'customer'",{"type":393,"tag":427,"props":3210,"children":3211},{"style":439},[3212],{"type":398,"value":501},{"type":393,"tag":427,"props":3214,"children":3215},{"style":493},[3216],{"type":398,"value":2154},{"type":393,"tag":427,"props":3218,"children":3219},{"style":439},[3220],{"type":398,"value":511},{"type":393,"tag":427,"props":3222,"children":3223},{"style":493},[3224],{"type":398,"value":1354},{"type":393,"tag":427,"props":3226,"children":3227},{"style":439},[3228],{"type":398,"value":511},{"type":393,"tag":427,"props":3230,"children":3231},{"style":493},[3232],{"type":398,"value":2171},{"type":393,"tag":427,"props":3234,"children":3235},{"style":439},[3236],{"type":398,"value":530},{"type":393,"tag":427,"props":3238,"children":3239},{"class":429,"line":63},[3240,3244,3248,3253,3257,3262,3266,3271],{"type":393,"tag":427,"props":3241,"children":3242},{"style":493},[3243],{"type":398,"value":1817},{"type":393,"tag":427,"props":3245,"children":3246},{"style":439},[3247],{"type":398,"value":501},{"type":393,"tag":427,"props":3249,"children":3250},{"style":493},[3251],{"type":398,"value":3252},"'laptop'",{"type":393,"tag":427,"props":3254,"children":3255},{"style":439},[3256],{"type":398,"value":511},{"type":393,"tag":427,"props":3258,"children":3259},{"style":493},[3260],{"type":398,"value":3261},"'mouse'",{"type":393,"tag":427,"props":3263,"children":3264},{"style":439},[3265],{"type":398,"value":511},{"type":393,"tag":427,"props":3267,"children":3268},{"style":493},[3269],{"type":398,"value":3270},"'keyboard'",{"type":393,"tag":427,"props":3272,"children":3273},{"style":439},[3274],{"type":398,"value":530},{"type":393,"tag":427,"props":3276,"children":3277},{"class":429,"line":72},[3278,3282,3286,3290,3294,3299,3303,3308],{"type":393,"tag":427,"props":3279,"children":3280},{"style":493},[3281],{"type":398,"value":538},{"type":393,"tag":427,"props":3283,"children":3284},{"style":439},[3285],{"type":398,"value":501},{"type":393,"tag":427,"props":3287,"children":3288},{"style":545},[3289],{"type":398,"value":548},{"type":393,"tag":427,"props":3291,"children":3292},{"style":439},[3293],{"type":398,"value":511},{"type":393,"tag":427,"props":3295,"children":3296},{"style":545},[3297],{"type":398,"value":3298},"29",{"type":393,"tag":427,"props":3300,"children":3301},{"style":439},[3302],{"type":398,"value":511},{"type":393,"tag":427,"props":3304,"children":3305},{"style":545},[3306],{"type":398,"value":3307},"79",{"type":393,"tag":427,"props":3309,"children":3310},{"style":439},[3311],{"type":398,"value":530},{"type":393,"tag":427,"props":3313,"children":3314},{"class":429,"line":83},[3315,3319,3323,3328,3332,3336,3340,3344],{"type":393,"tag":427,"props":3316,"children":3317},{"style":493},[3318],{"type":398,"value":578},{"type":393,"tag":427,"props":3320,"children":3321},{"style":439},[3322],{"type":398,"value":501},{"type":393,"tag":427,"props":3324,"children":3325},{"style":545},[3326],{"type":398,"value":3327},"1",{"type":393,"tag":427,"props":3329,"children":3330},{"style":439},[3331],{"type":398,"value":511},{"type":393,"tag":427,"props":3333,"children":3334},{"style":545},[3335],{"type":398,"value":587},{"type":393,"tag":427,"props":3337,"children":3338},{"style":439},[3339],{"type":398,"value":511},{"type":393,"tag":427,"props":3341,"children":3342},{"style":545},[3343],{"type":398,"value":3327},{"type":393,"tag":427,"props":3345,"children":3346},{"style":439},[3347],{"type":398,"value":530},{"type":393,"tag":427,"props":3349,"children":3350},{"class":429,"line":92},[3351,3356,3360,3364,3368,3372,3376,3380,3385],{"type":393,"tag":427,"props":3352,"children":3353},{"style":493},[3354],{"type":398,"value":3355},"    'discount'",{"type":393,"tag":427,"props":3357,"children":3358},{"style":439},[3359],{"type":398,"value":501},{"type":393,"tag":427,"props":3361,"children":3362},{"style":545},[3363],{"type":398,"value":596},{"type":393,"tag":427,"props":3365,"children":3366},{"style":439},[3367],{"type":398,"value":511},{"type":393,"tag":427,"props":3369,"children":3370},{"style":545},[3371],{"type":398,"value":605},{"type":393,"tag":427,"props":3373,"children":3374},{"style":439},[3375],{"type":398,"value":511},{"type":393,"tag":427,"props":3377,"children":3378},{"style":545},[3379],{"type":398,"value":2030},{"type":393,"tag":427,"props":3381,"children":3382},{"style":439},[3383],{"type":398,"value":3384},"]  ",{"type":393,"tag":427,"props":3386,"children":3387},{"style":466},[3388],{"type":398,"value":3389},"# percentage\n",{"type":393,"tag":427,"props":3391,"children":3392},{"class":429,"line":101},[3393],{"type":393,"tag":427,"props":3394,"children":3395},{"style":439},[3396],{"type":398,"value":618},{"type":393,"tag":427,"props":3398,"children":3399},{"class":429,"line":110},[3400],{"type":393,"tag":427,"props":3401,"children":3402},{"emptyLinePlaceholder":12},[3403],{"type":398,"value":460},{"type":393,"tag":427,"props":3405,"children":3406},{"class":429,"line":121},[3407,3411,3415,3420],{"type":393,"tag":427,"props":3408,"children":3409},{"style":545},[3410],{"type":398,"value":633},{"type":393,"tag":427,"props":3412,"children":3413},{"style":439},[3414],{"type":398,"value":638},{"type":393,"tag":427,"props":3416,"children":3417},{"style":493},[3418],{"type":398,"value":3419},"\"Original orders:\"",{"type":393,"tag":427,"props":3421,"children":3422},{"style":439},[3423],{"type":398,"value":648},{"type":393,"tag":427,"props":3425,"children":3426},{"class":429,"line":130},[3427,3431],{"type":393,"tag":427,"props":3428,"children":3429},{"style":545},[3430],{"type":398,"value":633},{"type":393,"tag":427,"props":3432,"children":3433},{"style":439},[3434],{"type":398,"value":3435},"(orders)\n",{"type":393,"tag":427,"props":3437,"children":3438},{"class":429,"line":139},[3439,3443],{"type":393,"tag":427,"props":3440,"children":3441},{"style":545},[3442],{"type":398,"value":633},{"type":393,"tag":427,"props":3444,"children":3445},{"style":439},[3446],{"type":398,"value":672},{"type":393,"tag":427,"props":3448,"children":3449},{"class":429,"line":148},[3450],{"type":393,"tag":427,"props":3451,"children":3452},{"emptyLinePlaceholder":12},[3453],{"type":398,"value":460},{"type":393,"tag":427,"props":3455,"children":3456},{"class":429,"line":159},[3457],{"type":393,"tag":427,"props":3458,"children":3459},{"style":466},[3460],{"type":398,"value":3461},"# Calculate totals\n",{"type":393,"tag":427,"props":3463,"children":3464},{"class":429,"line":168},[3465,3470,3475,3479,3483,3488,3492,3496,3500,3504,3508],{"type":393,"tag":427,"props":3466,"children":3467},{"style":439},[3468],{"type":398,"value":3469},"orders[",{"type":393,"tag":427,"props":3471,"children":3472},{"style":493},[3473],{"type":398,"value":3474},"'subtotal'",{"type":393,"tag":427,"props":3476,"children":3477},{"style":439},[3478],{"type":398,"value":705},{"type":393,"tag":427,"props":3480,"children":3481},{"style":433},[3482],{"type":398,"value":482},{"type":393,"tag":427,"props":3484,"children":3485},{"style":439},[3486],{"type":398,"value":3487}," orders[",{"type":393,"tag":427,"props":3489,"children":3490},{"style":493},[3491],{"type":398,"value":719},{"type":393,"tag":427,"props":3493,"children":3494},{"style":439},[3495],{"type":398,"value":705},{"type":393,"tag":427,"props":3497,"children":3498},{"style":433},[3499],{"type":398,"value":728},{"type":393,"tag":427,"props":3501,"children":3502},{"style":439},[3503],{"type":398,"value":3487},{"type":393,"tag":427,"props":3505,"children":3506},{"style":493},[3507],{"type":398,"value":737},{"type":393,"tag":427,"props":3509,"children":3510},{"style":439},[3511],{"type":398,"value":610},{"type":393,"tag":427,"props":3513,"children":3514},{"class":429,"line":177},[3515,3519,3524,3528,3532,3536,3540,3544,3548,3553,3558,3562,3566,3571],{"type":393,"tag":427,"props":3516,"children":3517},{"style":439},[3518],{"type":398,"value":3469},{"type":393,"tag":427,"props":3520,"children":3521},{"style":493},[3522],{"type":398,"value":3523},"'discount_amount'",{"type":393,"tag":427,"props":3525,"children":3526},{"style":439},[3527],{"type":398,"value":705},{"type":393,"tag":427,"props":3529,"children":3530},{"style":433},[3531],{"type":398,"value":482},{"type":393,"tag":427,"props":3533,"children":3534},{"style":439},[3535],{"type":398,"value":3487},{"type":393,"tag":427,"props":3537,"children":3538},{"style":493},[3539],{"type":398,"value":3474},{"type":393,"tag":427,"props":3541,"children":3542},{"style":439},[3543],{"type":398,"value":705},{"type":393,"tag":427,"props":3545,"children":3546},{"style":433},[3547],{"type":398,"value":728},{"type":393,"tag":427,"props":3549,"children":3550},{"style":439},[3551],{"type":398,"value":3552}," (orders[",{"type":393,"tag":427,"props":3554,"children":3555},{"style":493},[3556],{"type":398,"value":3557},"'discount'",{"type":393,"tag":427,"props":3559,"children":3560},{"style":439},[3561],{"type":398,"value":705},{"type":393,"tag":427,"props":3563,"children":3564},{"style":433},[3565],{"type":398,"value":2759},{"type":393,"tag":427,"props":3567,"children":3568},{"style":545},[3569],{"type":398,"value":3570}," 100",{"type":393,"tag":427,"props":3572,"children":3573},{"style":439},[3574],{"type":398,"value":648},{"type":393,"tag":427,"props":3576,"children":3577},{"class":429,"line":186},[3578,3582,3586,3590,3594,3598,3602,3606,3611,3615,3619],{"type":393,"tag":427,"props":3579,"children":3580},{"style":439},[3581],{"type":398,"value":3469},{"type":393,"tag":427,"props":3583,"children":3584},{"style":493},[3585],{"type":398,"value":1137},{"type":393,"tag":427,"props":3587,"children":3588},{"style":439},[3589],{"type":398,"value":705},{"type":393,"tag":427,"props":3591,"children":3592},{"style":433},[3593],{"type":398,"value":482},{"type":393,"tag":427,"props":3595,"children":3596},{"style":439},[3597],{"type":398,"value":3487},{"type":393,"tag":427,"props":3599,"children":3600},{"style":493},[3601],{"type":398,"value":3474},{"type":393,"tag":427,"props":3603,"children":3604},{"style":439},[3605],{"type":398,"value":705},{"type":393,"tag":427,"props":3607,"children":3608},{"style":433},[3609],{"type":398,"value":3610},"-",{"type":393,"tag":427,"props":3612,"children":3613},{"style":439},[3614],{"type":398,"value":3487},{"type":393,"tag":427,"props":3616,"children":3617},{"style":493},[3618],{"type":398,"value":3523},{"type":393,"tag":427,"props":3620,"children":3621},{"style":439},[3622],{"type":398,"value":610},{"type":393,"tag":427,"props":3624,"children":3625},{"class":429,"line":197},[3626],{"type":393,"tag":427,"props":3627,"children":3628},{"emptyLinePlaceholder":12},[3629],{"type":398,"value":460},{"type":393,"tag":427,"props":3631,"children":3632},{"class":429,"line":206},[3633],{"type":393,"tag":427,"props":3634,"children":3635},{"style":466},[3636],{"type":398,"value":3637},"# Clean product names\n",{"type":393,"tag":427,"props":3639,"children":3640},{"class":429,"line":215},[3641,3645,3650,3654,3658,3662,3666],{"type":393,"tag":427,"props":3642,"children":3643},{"style":439},[3644],{"type":398,"value":3469},{"type":393,"tag":427,"props":3646,"children":3647},{"style":493},[3648],{"type":398,"value":3649},"'product_clean'",{"type":393,"tag":427,"props":3651,"children":3652},{"style":439},[3653],{"type":398,"value":705},{"type":393,"tag":427,"props":3655,"children":3656},{"style":433},[3657],{"type":398,"value":482},{"type":393,"tag":427,"props":3659,"children":3660},{"style":439},[3661],{"type":398,"value":3487},{"type":393,"tag":427,"props":3663,"children":3664},{"style":493},[3665],{"type":398,"value":1971},{"type":393,"tag":427,"props":3667,"children":3668},{"style":439},[3669],{"type":398,"value":1605},{"type":393,"tag":427,"props":3671,"children":3672},{"class":429,"line":224},[3673],{"type":393,"tag":427,"props":3674,"children":3675},{"emptyLinePlaceholder":12},[3676],{"type":398,"value":460},{"type":393,"tag":427,"props":3678,"children":3679},{"class":429,"line":233},[3680,3684,3688,3693],{"type":393,"tag":427,"props":3681,"children":3682},{"style":545},[3683],{"type":398,"value":633},{"type":393,"tag":427,"props":3685,"children":3686},{"style":439},[3687],{"type":398,"value":638},{"type":393,"tag":427,"props":3689,"children":3690},{"style":493},[3691],{"type":398,"value":3692},"\"Processed orders:\"",{"type":393,"tag":427,"props":3694,"children":3695},{"style":439},[3696],{"type":398,"value":648},{"type":393,"tag":427,"props":3698,"children":3699},{"class":429,"line":244},[3700,3704,3709,3714,3718,3722,3726,3730],{"type":393,"tag":427,"props":3701,"children":3702},{"style":545},[3703],{"type":398,"value":633},{"type":393,"tag":427,"props":3705,"children":3706},{"style":439},[3707],{"type":398,"value":3708},"(orders[[",{"type":393,"tag":427,"props":3710,"children":3711},{"style":493},[3712],{"type":398,"value":3713},"'customer'",{"type":393,"tag":427,"props":3715,"children":3716},{"style":439},[3717],{"type":398,"value":511},{"type":393,"tag":427,"props":3719,"children":3720},{"style":493},[3721],{"type":398,"value":3649},{"type":393,"tag":427,"props":3723,"children":3724},{"style":439},[3725],{"type":398,"value":511},{"type":393,"tag":427,"props":3727,"children":3728},{"style":493},[3729],{"type":398,"value":1137},{"type":393,"tag":427,"props":3731,"children":3732},{"style":439},[3733],{"type":398,"value":1661},{"type":393,"tag":781,"props":3735,"children":3737},{"id":3736},"key-takeaways",[3738],{"type":398,"value":3739},"🎯 Key Takeaways",{"type":393,"tag":793,"props":3741,"children":3745},{"emoji":3742,"title":3743,"type":3744},"📚","Column Operations Summary","success",[3746,3754,3788,3796,3830,3837,3858],{"type":393,"tag":401,"props":3747,"children":3748},{},[3749],{"type":393,"tag":803,"props":3750,"children":3751},{},[3752],{"type":398,"value":3753},"Creating Columns:",{"type":393,"tag":809,"props":3755,"children":3756},{},[3757,3768,3777],{"type":393,"tag":813,"props":3758,"children":3759},{},[3760,3766],{"type":393,"tag":423,"props":3761,"children":3763},{"className":3762},[],[3764],{"type":398,"value":3765},"df['new_col'] = values",{"type":398,"value":3767}," - Basic creation",{"type":393,"tag":813,"props":3769,"children":3770},{},[3771,3776],{"type":393,"tag":423,"props":3772,"children":3774},{"className":3773},[],[3775],{"type":398,"value":832},{"type":398,"value":834},{"type":393,"tag":813,"props":3778,"children":3779},{},[3780,3786],{"type":393,"tag":423,"props":3781,"children":3783},{"className":3782},[],[3784],{"type":398,"value":3785},"df['col'] = df['text_col'].str.method()",{"type":398,"value":3787}," - Text operations",{"type":393,"tag":401,"props":3789,"children":3790},{},[3791],{"type":393,"tag":803,"props":3792,"children":3793},{},[3794],{"type":398,"value":3795},"Modifying Columns:",{"type":393,"tag":809,"props":3797,"children":3798},{},[3799,3809,3820],{"type":393,"tag":813,"props":3800,"children":3801},{},[3802,3808],{"type":393,"tag":423,"props":3803,"children":3805},{"className":3804},[],[3806],{"type":398,"value":3807},"df.loc[condition, 'col'] = value",{"type":398,"value":3107},{"type":393,"tag":813,"props":3810,"children":3811},{},[3812,3818],{"type":393,"tag":423,"props":3813,"children":3815},{"className":3814},[],[3816],{"type":398,"value":3817},"df['col'] = df['col'].str.method()",{"type":398,"value":3819}," - Text transformations",{"type":393,"tag":813,"props":3821,"children":3822},{},[3823,3829],{"type":393,"tag":423,"props":3824,"children":3826},{"className":3825},[],[3827],{"type":398,"value":3828},"df['col'] = df['col'].replace(old, new)",{"type":398,"value":3118},{"type":393,"tag":401,"props":3831,"children":3832},{},[3833],{"type":393,"tag":803,"props":3834,"children":3835},{},[3836],{"type":398,"value":853},{"type":393,"tag":809,"props":3838,"children":3839},{},[3840,3844,3849,3853],{"type":393,"tag":813,"props":3841,"children":3842},{},[3843],{"type":398,"value":861},{"type":393,"tag":813,"props":3845,"children":3846},{},[3847],{"type":398,"value":3848},"Test on small samples first",{"type":393,"tag":813,"props":3850,"children":3851},{},[3852],{"type":398,"value":866},{"type":393,"tag":813,"props":3854,"children":3855},{},[3856],{"type":398,"value":3857},"Verify calculations make sense",{"type":393,"tag":401,"props":3859,"children":3860},{},[3861,3866],{"type":393,"tag":803,"props":3862,"children":3863},{},[3864],{"type":398,"value":3865},"Remember:",{"type":398,"value":3867}," Column operations are the foundation of data transformation!",{"type":393,"tag":781,"props":3869,"children":3871},{"id":3870},"whats-next",[3872],{"type":398,"value":3873},"🚀 What's Next?",{"type":393,"tag":401,"props":3875,"children":3876},{},[3877],{"type":398,"value":3878},"Great! You can now create and modify columns like a pro. Next, let's learn how to apply functions to transform your data in more sophisticated ways.",{"type":393,"tag":401,"props":3880,"children":3881},{},[3882,3887,3889],{"type":393,"tag":803,"props":3883,"children":3884},{},[3885],{"type":398,"value":3886},"Continue to",{"type":398,"value":3888},": ",{"type":393,"tag":3890,"props":3891,"children":3892},"a",{"href":249},[3893],{"type":398,"value":250},{"type":393,"tag":401,"props":3895,"children":3896},{},[3897],{"type":398,"value":3898},"Keep transforming! ➕🔄",{"type":393,"tag":3900,"props":3901,"children":3902},"style",{},[3903],{"type":398,"value":3904},"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":3906},[3907,3911,3915,3918,3919,3920,3921],{"id":783,"depth":27,"text":786,"children":3908},[3909,3910],{"id":875,"depth":36,"text":878},{"id":1256,"depth":36,"text":1259},{"id":1664,"depth":27,"text":1667,"children":3912},[3913,3914],{"id":1746,"depth":36,"text":1749},{"id":2075,"depth":36,"text":2078},{"id":2447,"depth":27,"text":2450,"children":3916},[3917],{"id":2453,"depth":36,"text":2456},{"id":2982,"depth":27,"text":2985},{"id":3132,"depth":27,"text":3135},{"id":3736,"depth":27,"text":3739},{"id":3870,"depth":27,"text":3873},1782373724120]