[{"data":1,"prerenderedAt":3216},["ShallowReactive",2],{"tutorials-pandas":3,"category-items-pandas":387,"content-/pandas/combining-data":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,"expanded":12},"/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",[303],{"_path":304,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":305,"description":306,"slug":307,"order":308,"isParent":12,"icon":234,"body":389,"_type":14,"_id":309,"_source":16,"_file":310,"_stem":311,"_extension":19},{"type":390,"children":391,"toc":3203},"root",[392,400,406,411,950,957,962,1076,1082,1087,1113,1119,1124,1213,1219,1224,1613,1620,2110,2116,2234,2240,2245,2891,2897,3015,3021,3167,3173,3178,3192,3197],{"type":393,"tag":394,"props":395,"children":396},"element","h1",{"id":307},[397],{"type":398,"value":399},"text","🔗 Combining Data",{"type":393,"tag":401,"props":402,"children":403},"p",{},[404],{"type":398,"value":405},"Real-world data often comes from multiple sources! Combining DataFrames is essential for comprehensive analysis - whether you're stacking monthly reports, merging customer data with sales records, or joining information from different databases.",{"type":393,"tag":401,"props":407,"children":408},{},[409],{"type":398,"value":410},"Think of combining data like assembling a puzzle - each DataFrame is a piece, and you need to fit them together correctly to see the complete picture.",{"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# Customer information\ncustomers = pd.DataFrame({\n    'customer_id': [1, 2, 3],\n    'name': ['Alice', 'Bob', 'Charlie'],\n    'city': ['NYC', 'LA', 'Chicago']\n})\n\n# Order information\norders = pd.DataFrame({\n    'order_id': [101, 102, 103],\n    'customer_id': [1, 2, 1],\n    'amount': [250, 150, 300]\n})\n\nprint(\"Customers:\")\nprint(customers)\nprint()\nprint(\"Orders:\")\nprint(orders)\nprint()\n\n# Combine: Merge customer info with orders\ncombined = orders.merge(customers, on='customer_id')\nprint(\"Combined data:\")\nprint(combined)\n","python",[422],{"type":393,"tag":423,"props":424,"children":425},"code",{"__ignoreMap":6},[426,453,461,470,488,532,571,611,619,626,634,650,689,724,763,770,777,800,812,824,844,856,867,874,882,918,938],{"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},"# Customer information\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},"customers ",{"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,508,513,518,522,527],{"type":393,"tag":427,"props":492,"children":494},{"style":493},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[495],{"type":398,"value":496},"    'customer_id'",{"type":393,"tag":427,"props":498,"children":499},{"style":439},[500],{"type":398,"value":501},": [",{"type":393,"tag":427,"props":503,"children":505},{"style":504},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[506],{"type":398,"value":507},"1",{"type":393,"tag":427,"props":509,"children":510},{"style":439},[511],{"type":398,"value":512},", ",{"type":393,"tag":427,"props":514,"children":515},{"style":504},[516],{"type":398,"value":517},"2",{"type":393,"tag":427,"props":519,"children":520},{"style":439},[521],{"type":398,"value":512},{"type":393,"tag":427,"props":523,"children":524},{"style":504},[525],{"type":398,"value":526},"3",{"type":393,"tag":427,"props":528,"children":529},{"style":439},[530],{"type":398,"value":531},"],\n",{"type":393,"tag":427,"props":533,"children":534},{"class":429,"line":63},[535,540,544,549,553,558,562,567],{"type":393,"tag":427,"props":536,"children":537},{"style":493},[538],{"type":398,"value":539},"    'name'",{"type":393,"tag":427,"props":541,"children":542},{"style":439},[543],{"type":398,"value":501},{"type":393,"tag":427,"props":545,"children":546},{"style":493},[547],{"type":398,"value":548},"'Alice'",{"type":393,"tag":427,"props":550,"children":551},{"style":439},[552],{"type":398,"value":512},{"type":393,"tag":427,"props":554,"children":555},{"style":493},[556],{"type":398,"value":557},"'Bob'",{"type":393,"tag":427,"props":559,"children":560},{"style":439},[561],{"type":398,"value":512},{"type":393,"tag":427,"props":563,"children":564},{"style":493},[565],{"type":398,"value":566},"'Charlie'",{"type":393,"tag":427,"props":568,"children":569},{"style":439},[570],{"type":398,"value":531},{"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},"    'city'",{"type":393,"tag":427,"props":580,"children":581},{"style":439},[582],{"type":398,"value":501},{"type":393,"tag":427,"props":584,"children":585},{"style":493},[586],{"type":398,"value":587},"'NYC'",{"type":393,"tag":427,"props":589,"children":590},{"style":439},[591],{"type":398,"value":512},{"type":393,"tag":427,"props":593,"children":594},{"style":493},[595],{"type":398,"value":596},"'LA'",{"type":393,"tag":427,"props":598,"children":599},{"style":439},[600],{"type":398,"value":512},{"type":393,"tag":427,"props":602,"children":603},{"style":493},[604],{"type":398,"value":605},"'Chicago'",{"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],{"type":393,"tag":427,"props":630,"children":631},{"style":466},[632],{"type":398,"value":633},"# Order information\n",{"type":393,"tag":427,"props":635,"children":636},{"class":429,"line":110},[637,642,646],{"type":393,"tag":427,"props":638,"children":639},{"style":439},[640],{"type":398,"value":641},"orders ",{"type":393,"tag":427,"props":643,"children":644},{"style":433},[645],{"type":398,"value":482},{"type":393,"tag":427,"props":647,"children":648},{"style":439},[649],{"type":398,"value":487},{"type":393,"tag":427,"props":651,"children":652},{"class":429,"line":121},[653,658,662,667,671,676,680,685],{"type":393,"tag":427,"props":654,"children":655},{"style":493},[656],{"type":398,"value":657},"    'order_id'",{"type":393,"tag":427,"props":659,"children":660},{"style":439},[661],{"type":398,"value":501},{"type":393,"tag":427,"props":663,"children":664},{"style":504},[665],{"type":398,"value":666},"101",{"type":393,"tag":427,"props":668,"children":669},{"style":439},[670],{"type":398,"value":512},{"type":393,"tag":427,"props":672,"children":673},{"style":504},[674],{"type":398,"value":675},"102",{"type":393,"tag":427,"props":677,"children":678},{"style":439},[679],{"type":398,"value":512},{"type":393,"tag":427,"props":681,"children":682},{"style":504},[683],{"type":398,"value":684},"103",{"type":393,"tag":427,"props":686,"children":687},{"style":439},[688],{"type":398,"value":531},{"type":393,"tag":427,"props":690,"children":691},{"class":429,"line":130},[692,696,700,704,708,712,716,720],{"type":393,"tag":427,"props":693,"children":694},{"style":493},[695],{"type":398,"value":496},{"type":393,"tag":427,"props":697,"children":698},{"style":439},[699],{"type":398,"value":501},{"type":393,"tag":427,"props":701,"children":702},{"style":504},[703],{"type":398,"value":507},{"type":393,"tag":427,"props":705,"children":706},{"style":439},[707],{"type":398,"value":512},{"type":393,"tag":427,"props":709,"children":710},{"style":504},[711],{"type":398,"value":517},{"type":393,"tag":427,"props":713,"children":714},{"style":439},[715],{"type":398,"value":512},{"type":393,"tag":427,"props":717,"children":718},{"style":504},[719],{"type":398,"value":507},{"type":393,"tag":427,"props":721,"children":722},{"style":439},[723],{"type":398,"value":531},{"type":393,"tag":427,"props":725,"children":726},{"class":429,"line":139},[727,732,736,741,745,750,754,759],{"type":393,"tag":427,"props":728,"children":729},{"style":493},[730],{"type":398,"value":731},"    'amount'",{"type":393,"tag":427,"props":733,"children":734},{"style":439},[735],{"type":398,"value":501},{"type":393,"tag":427,"props":737,"children":738},{"style":504},[739],{"type":398,"value":740},"250",{"type":393,"tag":427,"props":742,"children":743},{"style":439},[744],{"type":398,"value":512},{"type":393,"tag":427,"props":746,"children":747},{"style":504},[748],{"type":398,"value":749},"150",{"type":393,"tag":427,"props":751,"children":752},{"style":439},[753],{"type":398,"value":512},{"type":393,"tag":427,"props":755,"children":756},{"style":504},[757],{"type":398,"value":758},"300",{"type":393,"tag":427,"props":760,"children":761},{"style":439},[762],{"type":398,"value":610},{"type":393,"tag":427,"props":764,"children":765},{"class":429,"line":148},[766],{"type":393,"tag":427,"props":767,"children":768},{"style":439},[769],{"type":398,"value":618},{"type":393,"tag":427,"props":771,"children":772},{"class":429,"line":159},[773],{"type":393,"tag":427,"props":774,"children":775},{"emptyLinePlaceholder":12},[776],{"type":398,"value":460},{"type":393,"tag":427,"props":778,"children":779},{"class":429,"line":168},[780,785,790,795],{"type":393,"tag":427,"props":781,"children":782},{"style":504},[783],{"type":398,"value":784},"print",{"type":393,"tag":427,"props":786,"children":787},{"style":439},[788],{"type":398,"value":789},"(",{"type":393,"tag":427,"props":791,"children":792},{"style":493},[793],{"type":398,"value":794},"\"Customers:\"",{"type":393,"tag":427,"props":796,"children":797},{"style":439},[798],{"type":398,"value":799},")\n",{"type":393,"tag":427,"props":801,"children":802},{"class":429,"line":177},[803,807],{"type":393,"tag":427,"props":804,"children":805},{"style":504},[806],{"type":398,"value":784},{"type":393,"tag":427,"props":808,"children":809},{"style":439},[810],{"type":398,"value":811},"(customers)\n",{"type":393,"tag":427,"props":813,"children":814},{"class":429,"line":186},[815,819],{"type":393,"tag":427,"props":816,"children":817},{"style":504},[818],{"type":398,"value":784},{"type":393,"tag":427,"props":820,"children":821},{"style":439},[822],{"type":398,"value":823},"()\n",{"type":393,"tag":427,"props":825,"children":826},{"class":429,"line":197},[827,831,835,840],{"type":393,"tag":427,"props":828,"children":829},{"style":504},[830],{"type":398,"value":784},{"type":393,"tag":427,"props":832,"children":833},{"style":439},[834],{"type":398,"value":789},{"type":393,"tag":427,"props":836,"children":837},{"style":493},[838],{"type":398,"value":839},"\"Orders:\"",{"type":393,"tag":427,"props":841,"children":842},{"style":439},[843],{"type":398,"value":799},{"type":393,"tag":427,"props":845,"children":846},{"class":429,"line":206},[847,851],{"type":393,"tag":427,"props":848,"children":849},{"style":504},[850],{"type":398,"value":784},{"type":393,"tag":427,"props":852,"children":853},{"style":439},[854],{"type":398,"value":855},"(orders)\n",{"type":393,"tag":427,"props":857,"children":858},{"class":429,"line":215},[859,863],{"type":393,"tag":427,"props":860,"children":861},{"style":504},[862],{"type":398,"value":784},{"type":393,"tag":427,"props":864,"children":865},{"style":439},[866],{"type":398,"value":823},{"type":393,"tag":427,"props":868,"children":869},{"class":429,"line":224},[870],{"type":393,"tag":427,"props":871,"children":872},{"emptyLinePlaceholder":12},[873],{"type":398,"value":460},{"type":393,"tag":427,"props":875,"children":876},{"class":429,"line":233},[877],{"type":393,"tag":427,"props":878,"children":879},{"style":466},[880],{"type":398,"value":881},"# Combine: Merge customer info with orders\n",{"type":393,"tag":427,"props":883,"children":884},{"class":429,"line":244},[885,890,894,899,905,909,914],{"type":393,"tag":427,"props":886,"children":887},{"style":439},[888],{"type":398,"value":889},"combined ",{"type":393,"tag":427,"props":891,"children":892},{"style":433},[893],{"type":398,"value":482},{"type":393,"tag":427,"props":895,"children":896},{"style":439},[897],{"type":398,"value":898}," orders.merge(customers, ",{"type":393,"tag":427,"props":900,"children":902},{"style":901},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[903],{"type":398,"value":904},"on",{"type":393,"tag":427,"props":906,"children":907},{"style":433},[908],{"type":398,"value":482},{"type":393,"tag":427,"props":910,"children":911},{"style":493},[912],{"type":398,"value":913},"'customer_id'",{"type":393,"tag":427,"props":915,"children":916},{"style":439},[917],{"type":398,"value":799},{"type":393,"tag":427,"props":919,"children":920},{"class":429,"line":253},[921,925,929,934],{"type":393,"tag":427,"props":922,"children":923},{"style":504},[924],{"type":398,"value":784},{"type":393,"tag":427,"props":926,"children":927},{"style":439},[928],{"type":398,"value":789},{"type":393,"tag":427,"props":930,"children":931},{"style":493},[932],{"type":398,"value":933},"\"Combined data:\"",{"type":393,"tag":427,"props":935,"children":936},{"style":439},[937],{"type":398,"value":799},{"type":393,"tag":427,"props":939,"children":940},{"class":429,"line":262},[941,945],{"type":393,"tag":427,"props":942,"children":943},{"style":504},[944],{"type":398,"value":784},{"type":393,"tag":427,"props":946,"children":947},{"style":439},[948],{"type":398,"value":949},"(combined)\n",{"type":393,"tag":951,"props":952,"children":954},"h2",{"id":953},"why-combine-data",[955],{"type":398,"value":956},"🎯 Why Combine Data?",{"type":393,"tag":401,"props":958,"children":959},{},[960],{"type":398,"value":961},"Data combination unlocks powerful analysis possibilities:",{"type":393,"tag":963,"props":964,"children":968},"info-box",{"emoji":965,"title":966,"type":967},"✨","Data Combination Benefits","info",[969,978,998,1006,1024,1032,1050,1058],{"type":393,"tag":401,"props":970,"children":971},{},[972],{"type":393,"tag":973,"props":974,"children":975},"strong",{},[976],{"type":398,"value":977},"Create Complete Pictures:",{"type":393,"tag":979,"props":980,"children":981},"ul",{},[982,988,993],{"type":393,"tag":983,"props":984,"children":985},"li",{},[986],{"type":398,"value":987},"Customer profiles + purchase history",{"type":393,"tag":983,"props":989,"children":990},{},[991],{"type":398,"value":992},"Employee info + performance data",{"type":393,"tag":983,"props":994,"children":995},{},[996],{"type":398,"value":997},"Product details + sales records",{"type":393,"tag":401,"props":999,"children":1000},{},[1001],{"type":393,"tag":973,"props":1002,"children":1003},{},[1004],{"type":398,"value":1005},"Enable Advanced Analysis:",{"type":393,"tag":979,"props":1007,"children":1008},{},[1009,1014,1019],{"type":393,"tag":983,"props":1010,"children":1011},{},[1012],{"type":398,"value":1013},"Customer lifetime value calculations",{"type":393,"tag":983,"props":1015,"children":1016},{},[1017],{"type":398,"value":1018},"Performance correlations",{"type":393,"tag":983,"props":1020,"children":1021},{},[1022],{"type":398,"value":1023},"Geographic sales patterns",{"type":393,"tag":401,"props":1025,"children":1026},{},[1027],{"type":393,"tag":973,"props":1028,"children":1029},{},[1030],{"type":398,"value":1031},"Common Scenarios:",{"type":393,"tag":979,"props":1033,"children":1034},{},[1035,1040,1045],{"type":393,"tag":983,"props":1036,"children":1037},{},[1038],{"type":398,"value":1039},"Monthly reports stacked together",{"type":393,"tag":983,"props":1041,"children":1042},{},[1043],{"type":398,"value":1044},"Master data joined with transactions",{"type":393,"tag":983,"props":1046,"children":1047},{},[1048],{"type":398,"value":1049},"Different systems providing complementary info",{"type":393,"tag":401,"props":1051,"children":1052},{},[1053],{"type":393,"tag":973,"props":1054,"children":1055},{},[1056],{"type":398,"value":1057},"Business Value:",{"type":393,"tag":979,"props":1059,"children":1060},{},[1061,1066,1071],{"type":393,"tag":983,"props":1062,"children":1063},{},[1064],{"type":398,"value":1065},"More comprehensive insights",{"type":393,"tag":983,"props":1067,"children":1068},{},[1069],{"type":398,"value":1070},"Eliminate data silos",{"type":393,"tag":983,"props":1072,"children":1073},{},[1074],{"type":398,"value":1075},"Enable cross-functional analysis",{"type":393,"tag":951,"props":1077,"children":1079},{"id":1078},"what-youll-learn-in-this-section",[1080],{"type":398,"value":1081},"📚 What You'll Learn in This Section",{"type":393,"tag":401,"props":1083,"children":1084},{},[1085],{"type":398,"value":1086},"Master the essential data combination techniques:",{"type":393,"tag":979,"props":1088,"children":1089},{},[1090,1102],{"type":393,"tag":983,"props":1091,"children":1092},{},[1093,1095,1100],{"type":398,"value":1094},"📚 ",{"type":393,"tag":1096,"props":1097,"children":1098},"a",{"href":314},[1099],{"type":398,"value":315},{"type":398,"value":1101}," Learn to stack DataFrames vertically and horizontally for simple data combination.",{"type":393,"tag":983,"props":1103,"children":1104},{},[1105,1107,1111],{"type":398,"value":1106},"🔗 ",{"type":393,"tag":1096,"props":1108,"children":1109},{"href":323},[1110],{"type":398,"value":324},{"type":398,"value":1112}," Master different types of joins to combine related data from multiple sources.",{"type":393,"tag":951,"props":1114,"children":1116},{"id":1115},"️-types-of-data-combination",[1117],{"type":398,"value":1118},"🛠️ Types of Data Combination",{"type":393,"tag":401,"props":1120,"children":1121},{},[1122],{"type":398,"value":1123},"There are two main ways to combine DataFrames:",{"type":393,"tag":963,"props":1125,"children":1129},{"emoji":1126,"title":1127,"type":1128},"🔧","Combination Methods","success",[1130,1138,1161,1169,1192,1200],{"type":393,"tag":401,"props":1131,"children":1132},{},[1133],{"type":393,"tag":973,"props":1134,"children":1135},{},[1136],{"type":398,"value":1137},"Concatenation (Stacking):",{"type":393,"tag":979,"props":1139,"children":1140},{},[1141,1146,1151,1156],{"type":393,"tag":983,"props":1142,"children":1143},{},[1144],{"type":398,"value":1145},"Stack DataFrames on top or side by side",{"type":393,"tag":983,"props":1147,"children":1148},{},[1149],{"type":398,"value":1150},"Like adding new rows or columns",{"type":393,"tag":983,"props":1152,"children":1153},{},[1154],{"type":398,"value":1155},"Use when data has same structure",{"type":393,"tag":983,"props":1157,"children":1158},{},[1159],{"type":398,"value":1160},"Perfect for combining periods or similar datasets",{"type":393,"tag":401,"props":1162,"children":1163},{},[1164],{"type":393,"tag":973,"props":1165,"children":1166},{},[1167],{"type":398,"value":1168},"Merging/Joining:",{"type":393,"tag":979,"props":1170,"children":1171},{},[1172,1177,1182,1187],{"type":393,"tag":983,"props":1173,"children":1174},{},[1175],{"type":398,"value":1176},"Combine based on common columns (keys)",{"type":393,"tag":983,"props":1178,"children":1179},{},[1180],{"type":398,"value":1181},"Like database joins",{"type":393,"tag":983,"props":1183,"children":1184},{},[1185],{"type":398,"value":1186},"Use when data is related but different",{"type":393,"tag":983,"props":1188,"children":1189},{},[1190],{"type":398,"value":1191},"Perfect for linking master data with transactions",{"type":393,"tag":401,"props":1193,"children":1194},{},[1195],{"type":393,"tag":973,"props":1196,"children":1197},{},[1198],{"type":398,"value":1199},"Choose Based On:",{"type":393,"tag":979,"props":1201,"children":1202},{},[1203,1208],{"type":393,"tag":983,"props":1204,"children":1205},{},[1206],{"type":398,"value":1207},"Same structure → Concatenation",{"type":393,"tag":983,"props":1209,"children":1210},{},[1211],{"type":398,"value":1212},"Related data → Merging",{"type":393,"tag":951,"props":1214,"children":1216},{"id":1215},"quick-combination-examples",[1217],{"type":398,"value":1218},"📊 Quick Combination Examples",{"type":393,"tag":401,"props":1220,"children":1221},{},[1222],{"type":398,"value":1223},"Here's a preview of what you can do:",{"type":393,"tag":412,"props":1225,"children":1226},{},[1227],{"type":393,"tag":416,"props":1228,"children":1230},{"className":418,"code":1229,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Example 1: Concatenation (stacking monthly data)\njan_sales = pd.DataFrame({\n    'product': ['Laptop', 'Mouse'],\n    'sales': [5, 20]\n})\n\nfeb_sales = pd.DataFrame({\n    'product': ['Laptop', 'Keyboard'],\n    'sales': [8, 15]\n})\n\nprint(\"January sales:\")\nprint(jan_sales)\nprint()\nprint(\"February sales:\")\nprint(feb_sales)\nprint()\n\n# Concatenate (stack) the monthly data\nquarterly = pd.concat([jan_sales, feb_sales], ignore_index=True)\nprint(\"Combined quarterly data:\")\nprint(quarterly)\n",[1231],{"type":393,"tag":423,"props":1232,"children":1233},{"__ignoreMap":6},[1234,1253,1260,1268,1284,1314,1344,1351,1358,1374,1402,1431,1438,1445,1465,1477,1488,1508,1520,1531,1538,1546,1581,1601],{"type":393,"tag":427,"props":1235,"children":1236},{"class":429,"line":11},[1237,1241,1245,1249],{"type":393,"tag":427,"props":1238,"children":1239},{"style":433},[1240],{"type":398,"value":436},{"type":393,"tag":427,"props":1242,"children":1243},{"style":439},[1244],{"type":398,"value":442},{"type":393,"tag":427,"props":1246,"children":1247},{"style":433},[1248],{"type":398,"value":447},{"type":393,"tag":427,"props":1250,"children":1251},{"style":439},[1252],{"type":398,"value":452},{"type":393,"tag":427,"props":1254,"children":1255},{"class":429,"line":27},[1256],{"type":393,"tag":427,"props":1257,"children":1258},{"emptyLinePlaceholder":12},[1259],{"type":398,"value":460},{"type":393,"tag":427,"props":1261,"children":1262},{"class":429,"line":36},[1263],{"type":393,"tag":427,"props":1264,"children":1265},{"style":466},[1266],{"type":398,"value":1267},"# Example 1: Concatenation (stacking monthly data)\n",{"type":393,"tag":427,"props":1269,"children":1270},{"class":429,"line":45},[1271,1276,1280],{"type":393,"tag":427,"props":1272,"children":1273},{"style":439},[1274],{"type":398,"value":1275},"jan_sales ",{"type":393,"tag":427,"props":1277,"children":1278},{"style":433},[1279],{"type":398,"value":482},{"type":393,"tag":427,"props":1281,"children":1282},{"style":439},[1283],{"type":398,"value":487},{"type":393,"tag":427,"props":1285,"children":1286},{"class":429,"line":54},[1287,1292,1296,1301,1305,1310],{"type":393,"tag":427,"props":1288,"children":1289},{"style":493},[1290],{"type":398,"value":1291},"    'product'",{"type":393,"tag":427,"props":1293,"children":1294},{"style":439},[1295],{"type":398,"value":501},{"type":393,"tag":427,"props":1297,"children":1298},{"style":493},[1299],{"type":398,"value":1300},"'Laptop'",{"type":393,"tag":427,"props":1302,"children":1303},{"style":439},[1304],{"type":398,"value":512},{"type":393,"tag":427,"props":1306,"children":1307},{"style":493},[1308],{"type":398,"value":1309},"'Mouse'",{"type":393,"tag":427,"props":1311,"children":1312},{"style":439},[1313],{"type":398,"value":531},{"type":393,"tag":427,"props":1315,"children":1316},{"class":429,"line":63},[1317,1322,1326,1331,1335,1340],{"type":393,"tag":427,"props":1318,"children":1319},{"style":493},[1320],{"type":398,"value":1321},"    'sales'",{"type":393,"tag":427,"props":1323,"children":1324},{"style":439},[1325],{"type":398,"value":501},{"type":393,"tag":427,"props":1327,"children":1328},{"style":504},[1329],{"type":398,"value":1330},"5",{"type":393,"tag":427,"props":1332,"children":1333},{"style":439},[1334],{"type":398,"value":512},{"type":393,"tag":427,"props":1336,"children":1337},{"style":504},[1338],{"type":398,"value":1339},"20",{"type":393,"tag":427,"props":1341,"children":1342},{"style":439},[1343],{"type":398,"value":610},{"type":393,"tag":427,"props":1345,"children":1346},{"class":429,"line":72},[1347],{"type":393,"tag":427,"props":1348,"children":1349},{"style":439},[1350],{"type":398,"value":618},{"type":393,"tag":427,"props":1352,"children":1353},{"class":429,"line":83},[1354],{"type":393,"tag":427,"props":1355,"children":1356},{"emptyLinePlaceholder":12},[1357],{"type":398,"value":460},{"type":393,"tag":427,"props":1359,"children":1360},{"class":429,"line":92},[1361,1366,1370],{"type":393,"tag":427,"props":1362,"children":1363},{"style":439},[1364],{"type":398,"value":1365},"feb_sales ",{"type":393,"tag":427,"props":1367,"children":1368},{"style":433},[1369],{"type":398,"value":482},{"type":393,"tag":427,"props":1371,"children":1372},{"style":439},[1373],{"type":398,"value":487},{"type":393,"tag":427,"props":1375,"children":1376},{"class":429,"line":101},[1377,1381,1385,1389,1393,1398],{"type":393,"tag":427,"props":1378,"children":1379},{"style":493},[1380],{"type":398,"value":1291},{"type":393,"tag":427,"props":1382,"children":1383},{"style":439},[1384],{"type":398,"value":501},{"type":393,"tag":427,"props":1386,"children":1387},{"style":493},[1388],{"type":398,"value":1300},{"type":393,"tag":427,"props":1390,"children":1391},{"style":439},[1392],{"type":398,"value":512},{"type":393,"tag":427,"props":1394,"children":1395},{"style":493},[1396],{"type":398,"value":1397},"'Keyboard'",{"type":393,"tag":427,"props":1399,"children":1400},{"style":439},[1401],{"type":398,"value":531},{"type":393,"tag":427,"props":1403,"children":1404},{"class":429,"line":110},[1405,1409,1413,1418,1422,1427],{"type":393,"tag":427,"props":1406,"children":1407},{"style":493},[1408],{"type":398,"value":1321},{"type":393,"tag":427,"props":1410,"children":1411},{"style":439},[1412],{"type":398,"value":501},{"type":393,"tag":427,"props":1414,"children":1415},{"style":504},[1416],{"type":398,"value":1417},"8",{"type":393,"tag":427,"props":1419,"children":1420},{"style":439},[1421],{"type":398,"value":512},{"type":393,"tag":427,"props":1423,"children":1424},{"style":504},[1425],{"type":398,"value":1426},"15",{"type":393,"tag":427,"props":1428,"children":1429},{"style":439},[1430],{"type":398,"value":610},{"type":393,"tag":427,"props":1432,"children":1433},{"class":429,"line":121},[1434],{"type":393,"tag":427,"props":1435,"children":1436},{"style":439},[1437],{"type":398,"value":618},{"type":393,"tag":427,"props":1439,"children":1440},{"class":429,"line":130},[1441],{"type":393,"tag":427,"props":1442,"children":1443},{"emptyLinePlaceholder":12},[1444],{"type":398,"value":460},{"type":393,"tag":427,"props":1446,"children":1447},{"class":429,"line":139},[1448,1452,1456,1461],{"type":393,"tag":427,"props":1449,"children":1450},{"style":504},[1451],{"type":398,"value":784},{"type":393,"tag":427,"props":1453,"children":1454},{"style":439},[1455],{"type":398,"value":789},{"type":393,"tag":427,"props":1457,"children":1458},{"style":493},[1459],{"type":398,"value":1460},"\"January sales:\"",{"type":393,"tag":427,"props":1462,"children":1463},{"style":439},[1464],{"type":398,"value":799},{"type":393,"tag":427,"props":1466,"children":1467},{"class":429,"line":148},[1468,1472],{"type":393,"tag":427,"props":1469,"children":1470},{"style":504},[1471],{"type":398,"value":784},{"type":393,"tag":427,"props":1473,"children":1474},{"style":439},[1475],{"type":398,"value":1476},"(jan_sales)\n",{"type":393,"tag":427,"props":1478,"children":1479},{"class":429,"line":159},[1480,1484],{"type":393,"tag":427,"props":1481,"children":1482},{"style":504},[1483],{"type":398,"value":784},{"type":393,"tag":427,"props":1485,"children":1486},{"style":439},[1487],{"type":398,"value":823},{"type":393,"tag":427,"props":1489,"children":1490},{"class":429,"line":168},[1491,1495,1499,1504],{"type":393,"tag":427,"props":1492,"children":1493},{"style":504},[1494],{"type":398,"value":784},{"type":393,"tag":427,"props":1496,"children":1497},{"style":439},[1498],{"type":398,"value":789},{"type":393,"tag":427,"props":1500,"children":1501},{"style":493},[1502],{"type":398,"value":1503},"\"February sales:\"",{"type":393,"tag":427,"props":1505,"children":1506},{"style":439},[1507],{"type":398,"value":799},{"type":393,"tag":427,"props":1509,"children":1510},{"class":429,"line":177},[1511,1515],{"type":393,"tag":427,"props":1512,"children":1513},{"style":504},[1514],{"type":398,"value":784},{"type":393,"tag":427,"props":1516,"children":1517},{"style":439},[1518],{"type":398,"value":1519},"(feb_sales)\n",{"type":393,"tag":427,"props":1521,"children":1522},{"class":429,"line":186},[1523,1527],{"type":393,"tag":427,"props":1524,"children":1525},{"style":504},[1526],{"type":398,"value":784},{"type":393,"tag":427,"props":1528,"children":1529},{"style":439},[1530],{"type":398,"value":823},{"type":393,"tag":427,"props":1532,"children":1533},{"class":429,"line":197},[1534],{"type":393,"tag":427,"props":1535,"children":1536},{"emptyLinePlaceholder":12},[1537],{"type":398,"value":460},{"type":393,"tag":427,"props":1539,"children":1540},{"class":429,"line":206},[1541],{"type":393,"tag":427,"props":1542,"children":1543},{"style":466},[1544],{"type":398,"value":1545},"# Concatenate (stack) the monthly data\n",{"type":393,"tag":427,"props":1547,"children":1548},{"class":429,"line":215},[1549,1554,1558,1563,1568,1572,1577],{"type":393,"tag":427,"props":1550,"children":1551},{"style":439},[1552],{"type":398,"value":1553},"quarterly ",{"type":393,"tag":427,"props":1555,"children":1556},{"style":433},[1557],{"type":398,"value":482},{"type":393,"tag":427,"props":1559,"children":1560},{"style":439},[1561],{"type":398,"value":1562}," pd.concat([jan_sales, feb_sales], ",{"type":393,"tag":427,"props":1564,"children":1565},{"style":901},[1566],{"type":398,"value":1567},"ignore_index",{"type":393,"tag":427,"props":1569,"children":1570},{"style":433},[1571],{"type":398,"value":482},{"type":393,"tag":427,"props":1573,"children":1574},{"style":504},[1575],{"type":398,"value":1576},"True",{"type":393,"tag":427,"props":1578,"children":1579},{"style":439},[1580],{"type":398,"value":799},{"type":393,"tag":427,"props":1582,"children":1583},{"class":429,"line":224},[1584,1588,1592,1597],{"type":393,"tag":427,"props":1585,"children":1586},{"style":504},[1587],{"type":398,"value":784},{"type":393,"tag":427,"props":1589,"children":1590},{"style":439},[1591],{"type":398,"value":789},{"type":393,"tag":427,"props":1593,"children":1594},{"style":493},[1595],{"type":398,"value":1596},"\"Combined quarterly data:\"",{"type":393,"tag":427,"props":1598,"children":1599},{"style":439},[1600],{"type":398,"value":799},{"type":393,"tag":427,"props":1602,"children":1603},{"class":429,"line":233},[1604,1608],{"type":393,"tag":427,"props":1605,"children":1606},{"style":504},[1607],{"type":398,"value":784},{"type":393,"tag":427,"props":1609,"children":1610},{"style":439},[1611],{"type":398,"value":1612},"(quarterly)\n",{"type":393,"tag":1614,"props":1615,"children":1617},"h3",{"id":1616},"merging-related-data",[1618],{"type":398,"value":1619},"Merging Related Data",{"type":393,"tag":412,"props":1621,"children":1622},{},[1623],{"type":393,"tag":416,"props":1624,"children":1626},{"className":418,"code":1625,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Example 2: Merging (joining related data)\nproducts = pd.DataFrame({\n    'product_id': [1, 2, 3],\n    'name': ['Laptop', 'Mouse', 'Keyboard'],\n    'category': ['Electronics', 'Accessories', 'Accessories']\n})\n\nsales = pd.DataFrame({\n    'product_id': [1, 2, 1],\n    'quantity': [2, 10, 1],\n    'revenue': [2000, 250, 1000]\n})\n\nprint(\"Products:\")\nprint(products)\nprint()\nprint(\"Sales:\")\nprint(sales)\nprint()\n\n# Merge product details with sales\ndetailed_sales = sales.merge(products, on='product_id')\nprint(\"Sales with product details:\")\nprint(detailed_sales)\n",[1627],{"type":393,"tag":423,"props":1628,"children":1629},{"__ignoreMap":6},[1630,1649,1656,1664,1680,1716,1751,1789,1796,1803,1819,1854,1891,1929,1936,1943,1963,1975,1986,2006,2018,2029,2036,2044,2078,2098],{"type":393,"tag":427,"props":1631,"children":1632},{"class":429,"line":11},[1633,1637,1641,1645],{"type":393,"tag":427,"props":1634,"children":1635},{"style":433},[1636],{"type":398,"value":436},{"type":393,"tag":427,"props":1638,"children":1639},{"style":439},[1640],{"type":398,"value":442},{"type":393,"tag":427,"props":1642,"children":1643},{"style":433},[1644],{"type":398,"value":447},{"type":393,"tag":427,"props":1646,"children":1647},{"style":439},[1648],{"type":398,"value":452},{"type":393,"tag":427,"props":1650,"children":1651},{"class":429,"line":27},[1652],{"type":393,"tag":427,"props":1653,"children":1654},{"emptyLinePlaceholder":12},[1655],{"type":398,"value":460},{"type":393,"tag":427,"props":1657,"children":1658},{"class":429,"line":36},[1659],{"type":393,"tag":427,"props":1660,"children":1661},{"style":466},[1662],{"type":398,"value":1663},"# Example 2: Merging (joining related data)\n",{"type":393,"tag":427,"props":1665,"children":1666},{"class":429,"line":45},[1667,1672,1676],{"type":393,"tag":427,"props":1668,"children":1669},{"style":439},[1670],{"type":398,"value":1671},"products ",{"type":393,"tag":427,"props":1673,"children":1674},{"style":433},[1675],{"type":398,"value":482},{"type":393,"tag":427,"props":1677,"children":1678},{"style":439},[1679],{"type":398,"value":487},{"type":393,"tag":427,"props":1681,"children":1682},{"class":429,"line":54},[1683,1688,1692,1696,1700,1704,1708,1712],{"type":393,"tag":427,"props":1684,"children":1685},{"style":493},[1686],{"type":398,"value":1687},"    'product_id'",{"type":393,"tag":427,"props":1689,"children":1690},{"style":439},[1691],{"type":398,"value":501},{"type":393,"tag":427,"props":1693,"children":1694},{"style":504},[1695],{"type":398,"value":507},{"type":393,"tag":427,"props":1697,"children":1698},{"style":439},[1699],{"type":398,"value":512},{"type":393,"tag":427,"props":1701,"children":1702},{"style":504},[1703],{"type":398,"value":517},{"type":393,"tag":427,"props":1705,"children":1706},{"style":439},[1707],{"type":398,"value":512},{"type":393,"tag":427,"props":1709,"children":1710},{"style":504},[1711],{"type":398,"value":526},{"type":393,"tag":427,"props":1713,"children":1714},{"style":439},[1715],{"type":398,"value":531},{"type":393,"tag":427,"props":1717,"children":1718},{"class":429,"line":63},[1719,1723,1727,1731,1735,1739,1743,1747],{"type":393,"tag":427,"props":1720,"children":1721},{"style":493},[1722],{"type":398,"value":539},{"type":393,"tag":427,"props":1724,"children":1725},{"style":439},[1726],{"type":398,"value":501},{"type":393,"tag":427,"props":1728,"children":1729},{"style":493},[1730],{"type":398,"value":1300},{"type":393,"tag":427,"props":1732,"children":1733},{"style":439},[1734],{"type":398,"value":512},{"type":393,"tag":427,"props":1736,"children":1737},{"style":493},[1738],{"type":398,"value":1309},{"type":393,"tag":427,"props":1740,"children":1741},{"style":439},[1742],{"type":398,"value":512},{"type":393,"tag":427,"props":1744,"children":1745},{"style":493},[1746],{"type":398,"value":1397},{"type":393,"tag":427,"props":1748,"children":1749},{"style":439},[1750],{"type":398,"value":531},{"type":393,"tag":427,"props":1752,"children":1753},{"class":429,"line":72},[1754,1759,1763,1768,1772,1777,1781,1785],{"type":393,"tag":427,"props":1755,"children":1756},{"style":493},[1757],{"type":398,"value":1758},"    'category'",{"type":393,"tag":427,"props":1760,"children":1761},{"style":439},[1762],{"type":398,"value":501},{"type":393,"tag":427,"props":1764,"children":1765},{"style":493},[1766],{"type":398,"value":1767},"'Electronics'",{"type":393,"tag":427,"props":1769,"children":1770},{"style":439},[1771],{"type":398,"value":512},{"type":393,"tag":427,"props":1773,"children":1774},{"style":493},[1775],{"type":398,"value":1776},"'Accessories'",{"type":393,"tag":427,"props":1778,"children":1779},{"style":439},[1780],{"type":398,"value":512},{"type":393,"tag":427,"props":1782,"children":1783},{"style":493},[1784],{"type":398,"value":1776},{"type":393,"tag":427,"props":1786,"children":1787},{"style":439},[1788],{"type":398,"value":610},{"type":393,"tag":427,"props":1790,"children":1791},{"class":429,"line":83},[1792],{"type":393,"tag":427,"props":1793,"children":1794},{"style":439},[1795],{"type":398,"value":618},{"type":393,"tag":427,"props":1797,"children":1798},{"class":429,"line":92},[1799],{"type":393,"tag":427,"props":1800,"children":1801},{"emptyLinePlaceholder":12},[1802],{"type":398,"value":460},{"type":393,"tag":427,"props":1804,"children":1805},{"class":429,"line":101},[1806,1811,1815],{"type":393,"tag":427,"props":1807,"children":1808},{"style":439},[1809],{"type":398,"value":1810},"sales ",{"type":393,"tag":427,"props":1812,"children":1813},{"style":433},[1814],{"type":398,"value":482},{"type":393,"tag":427,"props":1816,"children":1817},{"style":439},[1818],{"type":398,"value":487},{"type":393,"tag":427,"props":1820,"children":1821},{"class":429,"line":110},[1822,1826,1830,1834,1838,1842,1846,1850],{"type":393,"tag":427,"props":1823,"children":1824},{"style":493},[1825],{"type":398,"value":1687},{"type":393,"tag":427,"props":1827,"children":1828},{"style":439},[1829],{"type":398,"value":501},{"type":393,"tag":427,"props":1831,"children":1832},{"style":504},[1833],{"type":398,"value":507},{"type":393,"tag":427,"props":1835,"children":1836},{"style":439},[1837],{"type":398,"value":512},{"type":393,"tag":427,"props":1839,"children":1840},{"style":504},[1841],{"type":398,"value":517},{"type":393,"tag":427,"props":1843,"children":1844},{"style":439},[1845],{"type":398,"value":512},{"type":393,"tag":427,"props":1847,"children":1848},{"style":504},[1849],{"type":398,"value":507},{"type":393,"tag":427,"props":1851,"children":1852},{"style":439},[1853],{"type":398,"value":531},{"type":393,"tag":427,"props":1855,"children":1856},{"class":429,"line":121},[1857,1862,1866,1870,1874,1879,1883,1887],{"type":393,"tag":427,"props":1858,"children":1859},{"style":493},[1860],{"type":398,"value":1861},"    'quantity'",{"type":393,"tag":427,"props":1863,"children":1864},{"style":439},[1865],{"type":398,"value":501},{"type":393,"tag":427,"props":1867,"children":1868},{"style":504},[1869],{"type":398,"value":517},{"type":393,"tag":427,"props":1871,"children":1872},{"style":439},[1873],{"type":398,"value":512},{"type":393,"tag":427,"props":1875,"children":1876},{"style":504},[1877],{"type":398,"value":1878},"10",{"type":393,"tag":427,"props":1880,"children":1881},{"style":439},[1882],{"type":398,"value":512},{"type":393,"tag":427,"props":1884,"children":1885},{"style":504},[1886],{"type":398,"value":507},{"type":393,"tag":427,"props":1888,"children":1889},{"style":439},[1890],{"type":398,"value":531},{"type":393,"tag":427,"props":1892,"children":1893},{"class":429,"line":130},[1894,1899,1903,1908,1912,1916,1920,1925],{"type":393,"tag":427,"props":1895,"children":1896},{"style":493},[1897],{"type":398,"value":1898},"    'revenue'",{"type":393,"tag":427,"props":1900,"children":1901},{"style":439},[1902],{"type":398,"value":501},{"type":393,"tag":427,"props":1904,"children":1905},{"style":504},[1906],{"type":398,"value":1907},"2000",{"type":393,"tag":427,"props":1909,"children":1910},{"style":439},[1911],{"type":398,"value":512},{"type":393,"tag":427,"props":1913,"children":1914},{"style":504},[1915],{"type":398,"value":740},{"type":393,"tag":427,"props":1917,"children":1918},{"style":439},[1919],{"type":398,"value":512},{"type":393,"tag":427,"props":1921,"children":1922},{"style":504},[1923],{"type":398,"value":1924},"1000",{"type":393,"tag":427,"props":1926,"children":1927},{"style":439},[1928],{"type":398,"value":610},{"type":393,"tag":427,"props":1930,"children":1931},{"class":429,"line":139},[1932],{"type":393,"tag":427,"props":1933,"children":1934},{"style":439},[1935],{"type":398,"value":618},{"type":393,"tag":427,"props":1937,"children":1938},{"class":429,"line":148},[1939],{"type":393,"tag":427,"props":1940,"children":1941},{"emptyLinePlaceholder":12},[1942],{"type":398,"value":460},{"type":393,"tag":427,"props":1944,"children":1945},{"class":429,"line":159},[1946,1950,1954,1959],{"type":393,"tag":427,"props":1947,"children":1948},{"style":504},[1949],{"type":398,"value":784},{"type":393,"tag":427,"props":1951,"children":1952},{"style":439},[1953],{"type":398,"value":789},{"type":393,"tag":427,"props":1955,"children":1956},{"style":493},[1957],{"type":398,"value":1958},"\"Products:\"",{"type":393,"tag":427,"props":1960,"children":1961},{"style":439},[1962],{"type":398,"value":799},{"type":393,"tag":427,"props":1964,"children":1965},{"class":429,"line":168},[1966,1970],{"type":393,"tag":427,"props":1967,"children":1968},{"style":504},[1969],{"type":398,"value":784},{"type":393,"tag":427,"props":1971,"children":1972},{"style":439},[1973],{"type":398,"value":1974},"(products)\n",{"type":393,"tag":427,"props":1976,"children":1977},{"class":429,"line":177},[1978,1982],{"type":393,"tag":427,"props":1979,"children":1980},{"style":504},[1981],{"type":398,"value":784},{"type":393,"tag":427,"props":1983,"children":1984},{"style":439},[1985],{"type":398,"value":823},{"type":393,"tag":427,"props":1987,"children":1988},{"class":429,"line":186},[1989,1993,1997,2002],{"type":393,"tag":427,"props":1990,"children":1991},{"style":504},[1992],{"type":398,"value":784},{"type":393,"tag":427,"props":1994,"children":1995},{"style":439},[1996],{"type":398,"value":789},{"type":393,"tag":427,"props":1998,"children":1999},{"style":493},[2000],{"type":398,"value":2001},"\"Sales:\"",{"type":393,"tag":427,"props":2003,"children":2004},{"style":439},[2005],{"type":398,"value":799},{"type":393,"tag":427,"props":2007,"children":2008},{"class":429,"line":197},[2009,2013],{"type":393,"tag":427,"props":2010,"children":2011},{"style":504},[2012],{"type":398,"value":784},{"type":393,"tag":427,"props":2014,"children":2015},{"style":439},[2016],{"type":398,"value":2017},"(sales)\n",{"type":393,"tag":427,"props":2019,"children":2020},{"class":429,"line":206},[2021,2025],{"type":393,"tag":427,"props":2022,"children":2023},{"style":504},[2024],{"type":398,"value":784},{"type":393,"tag":427,"props":2026,"children":2027},{"style":439},[2028],{"type":398,"value":823},{"type":393,"tag":427,"props":2030,"children":2031},{"class":429,"line":215},[2032],{"type":393,"tag":427,"props":2033,"children":2034},{"emptyLinePlaceholder":12},[2035],{"type":398,"value":460},{"type":393,"tag":427,"props":2037,"children":2038},{"class":429,"line":224},[2039],{"type":393,"tag":427,"props":2040,"children":2041},{"style":466},[2042],{"type":398,"value":2043},"# Merge product details with sales\n",{"type":393,"tag":427,"props":2045,"children":2046},{"class":429,"line":233},[2047,2052,2056,2061,2065,2069,2074],{"type":393,"tag":427,"props":2048,"children":2049},{"style":439},[2050],{"type":398,"value":2051},"detailed_sales ",{"type":393,"tag":427,"props":2053,"children":2054},{"style":433},[2055],{"type":398,"value":482},{"type":393,"tag":427,"props":2057,"children":2058},{"style":439},[2059],{"type":398,"value":2060}," sales.merge(products, ",{"type":393,"tag":427,"props":2062,"children":2063},{"style":901},[2064],{"type":398,"value":904},{"type":393,"tag":427,"props":2066,"children":2067},{"style":433},[2068],{"type":398,"value":482},{"type":393,"tag":427,"props":2070,"children":2071},{"style":493},[2072],{"type":398,"value":2073},"'product_id'",{"type":393,"tag":427,"props":2075,"children":2076},{"style":439},[2077],{"type":398,"value":799},{"type":393,"tag":427,"props":2079,"children":2080},{"class":429,"line":244},[2081,2085,2089,2094],{"type":393,"tag":427,"props":2082,"children":2083},{"style":504},[2084],{"type":398,"value":784},{"type":393,"tag":427,"props":2086,"children":2087},{"style":439},[2088],{"type":398,"value":789},{"type":393,"tag":427,"props":2090,"children":2091},{"style":493},[2092],{"type":398,"value":2093},"\"Sales with product details:\"",{"type":393,"tag":427,"props":2095,"children":2096},{"style":439},[2097],{"type":398,"value":799},{"type":393,"tag":427,"props":2099,"children":2100},{"class":429,"line":253},[2101,2105],{"type":393,"tag":427,"props":2102,"children":2103},{"style":504},[2104],{"type":398,"value":784},{"type":393,"tag":427,"props":2106,"children":2107},{"style":439},[2108],{"type":398,"value":2109},"(detailed_sales)\n",{"type":393,"tag":951,"props":2111,"children":2113},{"id":2112},"combination-workflow",[2114],{"type":398,"value":2115},"🎨 Combination Workflow",{"type":393,"tag":963,"props":2117,"children":2121},{"emoji":2118,"title":2119,"type":2120},"📋","Best Practice Workflow","warning",[2122,2130,2148,2156,2172,2180,2198,2206,2224],{"type":393,"tag":401,"props":2123,"children":2124},{},[2125],{"type":393,"tag":973,"props":2126,"children":2127},{},[2128],{"type":398,"value":2129},"Step 1: Understand Your Data",{"type":393,"tag":979,"props":2131,"children":2132},{},[2133,2138,2143],{"type":393,"tag":983,"props":2134,"children":2135},{},[2136],{"type":398,"value":2137},"What's the relationship between DataFrames?",{"type":393,"tag":983,"props":2139,"children":2140},{},[2141],{"type":398,"value":2142},"Do they have the same structure?",{"type":393,"tag":983,"props":2144,"children":2145},{},[2146],{"type":398,"value":2147},"What columns can link them?",{"type":393,"tag":401,"props":2149,"children":2150},{},[2151],{"type":393,"tag":973,"props":2152,"children":2153},{},[2154],{"type":398,"value":2155},"Step 2: Choose the Right Method",{"type":393,"tag":979,"props":2157,"children":2158},{},[2159,2163,2167],{"type":393,"tag":983,"props":2160,"children":2161},{},[2162],{"type":398,"value":1207},{"type":393,"tag":983,"props":2164,"children":2165},{},[2166],{"type":398,"value":1212},{"type":393,"tag":983,"props":2168,"children":2169},{},[2170],{"type":398,"value":2171},"Consider data size and performance",{"type":393,"tag":401,"props":2173,"children":2174},{},[2175],{"type":393,"tag":973,"props":2176,"children":2177},{},[2178],{"type":398,"value":2179},"Step 3: Prepare Your Data",{"type":393,"tag":979,"props":2181,"children":2182},{},[2183,2188,2193],{"type":393,"tag":983,"props":2184,"children":2185},{},[2186],{"type":398,"value":2187},"Check column names match",{"type":393,"tag":983,"props":2189,"children":2190},{},[2191],{"type":398,"value":2192},"Handle missing values",{"type":393,"tag":983,"props":2194,"children":2195},{},[2196],{"type":398,"value":2197},"Ensure data types are compatible",{"type":393,"tag":401,"props":2199,"children":2200},{},[2201],{"type":393,"tag":973,"props":2202,"children":2203},{},[2204],{"type":398,"value":2205},"Step 4: Combine and Validate",{"type":393,"tag":979,"props":2207,"children":2208},{},[2209,2214,2219],{"type":393,"tag":983,"props":2210,"children":2211},{},[2212],{"type":398,"value":2213},"Apply the combination",{"type":393,"tag":983,"props":2215,"children":2216},{},[2217],{"type":398,"value":2218},"Check the result size and structure",{"type":393,"tag":983,"props":2220,"children":2221},{},[2222],{"type":398,"value":2223},"Verify the combination worked as expected",{"type":393,"tag":401,"props":2225,"children":2226},{},[2227,2232],{"type":393,"tag":973,"props":2228,"children":2229},{},[2230],{"type":398,"value":2231},"Remember:",{"type":398,"value":2233}," Good preparation makes combination smooth!",{"type":393,"tag":951,"props":2235,"children":2237},{"id":2236},"real-world-scenarios",[2238],{"type":398,"value":2239},"📈 Real-World Scenarios",{"type":393,"tag":401,"props":2241,"children":2242},{},[2243],{"type":398,"value":2244},"Common business cases for data combination:",{"type":393,"tag":412,"props":2246,"children":2247},{},[2248],{"type":393,"tag":416,"props":2249,"children":2251},{"className":418,"code":2250,"language":420,"meta":6,"style":6},"import pandas as pd\n\n# Scenario: E-commerce analysis\n# Customer demographics\ndemographics = pd.DataFrame({\n    'customer_id': [1, 2, 3],\n    'age_group': ['25-34', '35-44', '18-24'],\n    'region': ['North', 'South', 'East']\n})\n\n# Purchase history\npurchases = pd.DataFrame({\n    'customer_id': [1, 1, 2, 3],\n    'product': ['Laptop', 'Mouse', 'Keyboard', 'Monitor'],\n    'amount': [999, 25, 75, 300]\n})\n\nprint(\"Customer demographics:\")\nprint(demographics)\nprint()\nprint(\"Purchase history:\")\nprint(purchases)\nprint()\n\n# Combine for customer analysis\ncustomer_analysis = purchases.merge(demographics, on='customer_id')\nprint(\"Customer purchase analysis:\")\nprint(customer_analysis)\nprint()\n\n# Summary by region\nregional_summary = customer_analysis.groupby('region')['amount'].agg(['sum', 'count'])\nprint(\"Sales summary by region:\")\nprint(regional_summary)\n",[2252],{"type":393,"tag":423,"props":2253,"children":2254},{"__ignoreMap":6},[2255,2274,2281,2289,2297,2313,2348,2387,2426,2433,2440,2448,2464,2507,2551,2597,2604,2611,2631,2643,2654,2674,2686,2697,2704,2712,2745,2765,2777,2788,2795,2803,2859,2879],{"type":393,"tag":427,"props":2256,"children":2257},{"class":429,"line":11},[2258,2262,2266,2270],{"type":393,"tag":427,"props":2259,"children":2260},{"style":433},[2261],{"type":398,"value":436},{"type":393,"tag":427,"props":2263,"children":2264},{"style":439},[2265],{"type":398,"value":442},{"type":393,"tag":427,"props":2267,"children":2268},{"style":433},[2269],{"type":398,"value":447},{"type":393,"tag":427,"props":2271,"children":2272},{"style":439},[2273],{"type":398,"value":452},{"type":393,"tag":427,"props":2275,"children":2276},{"class":429,"line":27},[2277],{"type":393,"tag":427,"props":2278,"children":2279},{"emptyLinePlaceholder":12},[2280],{"type":398,"value":460},{"type":393,"tag":427,"props":2282,"children":2283},{"class":429,"line":36},[2284],{"type":393,"tag":427,"props":2285,"children":2286},{"style":466},[2287],{"type":398,"value":2288},"# Scenario: E-commerce analysis\n",{"type":393,"tag":427,"props":2290,"children":2291},{"class":429,"line":45},[2292],{"type":393,"tag":427,"props":2293,"children":2294},{"style":466},[2295],{"type":398,"value":2296},"# Customer demographics\n",{"type":393,"tag":427,"props":2298,"children":2299},{"class":429,"line":54},[2300,2305,2309],{"type":393,"tag":427,"props":2301,"children":2302},{"style":439},[2303],{"type":398,"value":2304},"demographics ",{"type":393,"tag":427,"props":2306,"children":2307},{"style":433},[2308],{"type":398,"value":482},{"type":393,"tag":427,"props":2310,"children":2311},{"style":439},[2312],{"type":398,"value":487},{"type":393,"tag":427,"props":2314,"children":2315},{"class":429,"line":63},[2316,2320,2324,2328,2332,2336,2340,2344],{"type":393,"tag":427,"props":2317,"children":2318},{"style":493},[2319],{"type":398,"value":496},{"type":393,"tag":427,"props":2321,"children":2322},{"style":439},[2323],{"type":398,"value":501},{"type":393,"tag":427,"props":2325,"children":2326},{"style":504},[2327],{"type":398,"value":507},{"type":393,"tag":427,"props":2329,"children":2330},{"style":439},[2331],{"type":398,"value":512},{"type":393,"tag":427,"props":2333,"children":2334},{"style":504},[2335],{"type":398,"value":517},{"type":393,"tag":427,"props":2337,"children":2338},{"style":439},[2339],{"type":398,"value":512},{"type":393,"tag":427,"props":2341,"children":2342},{"style":504},[2343],{"type":398,"value":526},{"type":393,"tag":427,"props":2345,"children":2346},{"style":439},[2347],{"type":398,"value":531},{"type":393,"tag":427,"props":2349,"children":2350},{"class":429,"line":72},[2351,2356,2360,2365,2369,2374,2378,2383],{"type":393,"tag":427,"props":2352,"children":2353},{"style":493},[2354],{"type":398,"value":2355},"    'age_group'",{"type":393,"tag":427,"props":2357,"children":2358},{"style":439},[2359],{"type":398,"value":501},{"type":393,"tag":427,"props":2361,"children":2362},{"style":493},[2363],{"type":398,"value":2364},"'25-34'",{"type":393,"tag":427,"props":2366,"children":2367},{"style":439},[2368],{"type":398,"value":512},{"type":393,"tag":427,"props":2370,"children":2371},{"style":493},[2372],{"type":398,"value":2373},"'35-44'",{"type":393,"tag":427,"props":2375,"children":2376},{"style":439},[2377],{"type":398,"value":512},{"type":393,"tag":427,"props":2379,"children":2380},{"style":493},[2381],{"type":398,"value":2382},"'18-24'",{"type":393,"tag":427,"props":2384,"children":2385},{"style":439},[2386],{"type":398,"value":531},{"type":393,"tag":427,"props":2388,"children":2389},{"class":429,"line":83},[2390,2395,2399,2404,2408,2413,2417,2422],{"type":393,"tag":427,"props":2391,"children":2392},{"style":493},[2393],{"type":398,"value":2394},"    'region'",{"type":393,"tag":427,"props":2396,"children":2397},{"style":439},[2398],{"type":398,"value":501},{"type":393,"tag":427,"props":2400,"children":2401},{"style":493},[2402],{"type":398,"value":2403},"'North'",{"type":393,"tag":427,"props":2405,"children":2406},{"style":439},[2407],{"type":398,"value":512},{"type":393,"tag":427,"props":2409,"children":2410},{"style":493},[2411],{"type":398,"value":2412},"'South'",{"type":393,"tag":427,"props":2414,"children":2415},{"style":439},[2416],{"type":398,"value":512},{"type":393,"tag":427,"props":2418,"children":2419},{"style":493},[2420],{"type":398,"value":2421},"'East'",{"type":393,"tag":427,"props":2423,"children":2424},{"style":439},[2425],{"type":398,"value":610},{"type":393,"tag":427,"props":2427,"children":2428},{"class":429,"line":92},[2429],{"type":393,"tag":427,"props":2430,"children":2431},{"style":439},[2432],{"type":398,"value":618},{"type":393,"tag":427,"props":2434,"children":2435},{"class":429,"line":101},[2436],{"type":393,"tag":427,"props":2437,"children":2438},{"emptyLinePlaceholder":12},[2439],{"type":398,"value":460},{"type":393,"tag":427,"props":2441,"children":2442},{"class":429,"line":110},[2443],{"type":393,"tag":427,"props":2444,"children":2445},{"style":466},[2446],{"type":398,"value":2447},"# Purchase history\n",{"type":393,"tag":427,"props":2449,"children":2450},{"class":429,"line":121},[2451,2456,2460],{"type":393,"tag":427,"props":2452,"children":2453},{"style":439},[2454],{"type":398,"value":2455},"purchases ",{"type":393,"tag":427,"props":2457,"children":2458},{"style":433},[2459],{"type":398,"value":482},{"type":393,"tag":427,"props":2461,"children":2462},{"style":439},[2463],{"type":398,"value":487},{"type":393,"tag":427,"props":2465,"children":2466},{"class":429,"line":130},[2467,2471,2475,2479,2483,2487,2491,2495,2499,2503],{"type":393,"tag":427,"props":2468,"children":2469},{"style":493},[2470],{"type":398,"value":496},{"type":393,"tag":427,"props":2472,"children":2473},{"style":439},[2474],{"type":398,"value":501},{"type":393,"tag":427,"props":2476,"children":2477},{"style":504},[2478],{"type":398,"value":507},{"type":393,"tag":427,"props":2480,"children":2481},{"style":439},[2482],{"type":398,"value":512},{"type":393,"tag":427,"props":2484,"children":2485},{"style":504},[2486],{"type":398,"value":507},{"type":393,"tag":427,"props":2488,"children":2489},{"style":439},[2490],{"type":398,"value":512},{"type":393,"tag":427,"props":2492,"children":2493},{"style":504},[2494],{"type":398,"value":517},{"type":393,"tag":427,"props":2496,"children":2497},{"style":439},[2498],{"type":398,"value":512},{"type":393,"tag":427,"props":2500,"children":2501},{"style":504},[2502],{"type":398,"value":526},{"type":393,"tag":427,"props":2504,"children":2505},{"style":439},[2506],{"type":398,"value":531},{"type":393,"tag":427,"props":2508,"children":2509},{"class":429,"line":139},[2510,2514,2518,2522,2526,2530,2534,2538,2542,2547],{"type":393,"tag":427,"props":2511,"children":2512},{"style":493},[2513],{"type":398,"value":1291},{"type":393,"tag":427,"props":2515,"children":2516},{"style":439},[2517],{"type":398,"value":501},{"type":393,"tag":427,"props":2519,"children":2520},{"style":493},[2521],{"type":398,"value":1300},{"type":393,"tag":427,"props":2523,"children":2524},{"style":439},[2525],{"type":398,"value":512},{"type":393,"tag":427,"props":2527,"children":2528},{"style":493},[2529],{"type":398,"value":1309},{"type":393,"tag":427,"props":2531,"children":2532},{"style":439},[2533],{"type":398,"value":512},{"type":393,"tag":427,"props":2535,"children":2536},{"style":493},[2537],{"type":398,"value":1397},{"type":393,"tag":427,"props":2539,"children":2540},{"style":439},[2541],{"type":398,"value":512},{"type":393,"tag":427,"props":2543,"children":2544},{"style":493},[2545],{"type":398,"value":2546},"'Monitor'",{"type":393,"tag":427,"props":2548,"children":2549},{"style":439},[2550],{"type":398,"value":531},{"type":393,"tag":427,"props":2552,"children":2553},{"class":429,"line":148},[2554,2558,2562,2567,2571,2576,2580,2585,2589,2593],{"type":393,"tag":427,"props":2555,"children":2556},{"style":493},[2557],{"type":398,"value":731},{"type":393,"tag":427,"props":2559,"children":2560},{"style":439},[2561],{"type":398,"value":501},{"type":393,"tag":427,"props":2563,"children":2564},{"style":504},[2565],{"type":398,"value":2566},"999",{"type":393,"tag":427,"props":2568,"children":2569},{"style":439},[2570],{"type":398,"value":512},{"type":393,"tag":427,"props":2572,"children":2573},{"style":504},[2574],{"type":398,"value":2575},"25",{"type":393,"tag":427,"props":2577,"children":2578},{"style":439},[2579],{"type":398,"value":512},{"type":393,"tag":427,"props":2581,"children":2582},{"style":504},[2583],{"type":398,"value":2584},"75",{"type":393,"tag":427,"props":2586,"children":2587},{"style":439},[2588],{"type":398,"value":512},{"type":393,"tag":427,"props":2590,"children":2591},{"style":504},[2592],{"type":398,"value":758},{"type":393,"tag":427,"props":2594,"children":2595},{"style":439},[2596],{"type":398,"value":610},{"type":393,"tag":427,"props":2598,"children":2599},{"class":429,"line":159},[2600],{"type":393,"tag":427,"props":2601,"children":2602},{"style":439},[2603],{"type":398,"value":618},{"type":393,"tag":427,"props":2605,"children":2606},{"class":429,"line":168},[2607],{"type":393,"tag":427,"props":2608,"children":2609},{"emptyLinePlaceholder":12},[2610],{"type":398,"value":460},{"type":393,"tag":427,"props":2612,"children":2613},{"class":429,"line":177},[2614,2618,2622,2627],{"type":393,"tag":427,"props":2615,"children":2616},{"style":504},[2617],{"type":398,"value":784},{"type":393,"tag":427,"props":2619,"children":2620},{"style":439},[2621],{"type":398,"value":789},{"type":393,"tag":427,"props":2623,"children":2624},{"style":493},[2625],{"type":398,"value":2626},"\"Customer demographics:\"",{"type":393,"tag":427,"props":2628,"children":2629},{"style":439},[2630],{"type":398,"value":799},{"type":393,"tag":427,"props":2632,"children":2633},{"class":429,"line":186},[2634,2638],{"type":393,"tag":427,"props":2635,"children":2636},{"style":504},[2637],{"type":398,"value":784},{"type":393,"tag":427,"props":2639,"children":2640},{"style":439},[2641],{"type":398,"value":2642},"(demographics)\n",{"type":393,"tag":427,"props":2644,"children":2645},{"class":429,"line":197},[2646,2650],{"type":393,"tag":427,"props":2647,"children":2648},{"style":504},[2649],{"type":398,"value":784},{"type":393,"tag":427,"props":2651,"children":2652},{"style":439},[2653],{"type":398,"value":823},{"type":393,"tag":427,"props":2655,"children":2656},{"class":429,"line":206},[2657,2661,2665,2670],{"type":393,"tag":427,"props":2658,"children":2659},{"style":504},[2660],{"type":398,"value":784},{"type":393,"tag":427,"props":2662,"children":2663},{"style":439},[2664],{"type":398,"value":789},{"type":393,"tag":427,"props":2666,"children":2667},{"style":493},[2668],{"type":398,"value":2669},"\"Purchase history:\"",{"type":393,"tag":427,"props":2671,"children":2672},{"style":439},[2673],{"type":398,"value":799},{"type":393,"tag":427,"props":2675,"children":2676},{"class":429,"line":215},[2677,2681],{"type":393,"tag":427,"props":2678,"children":2679},{"style":504},[2680],{"type":398,"value":784},{"type":393,"tag":427,"props":2682,"children":2683},{"style":439},[2684],{"type":398,"value":2685},"(purchases)\n",{"type":393,"tag":427,"props":2687,"children":2688},{"class":429,"line":224},[2689,2693],{"type":393,"tag":427,"props":2690,"children":2691},{"style":504},[2692],{"type":398,"value":784},{"type":393,"tag":427,"props":2694,"children":2695},{"style":439},[2696],{"type":398,"value":823},{"type":393,"tag":427,"props":2698,"children":2699},{"class":429,"line":233},[2700],{"type":393,"tag":427,"props":2701,"children":2702},{"emptyLinePlaceholder":12},[2703],{"type":398,"value":460},{"type":393,"tag":427,"props":2705,"children":2706},{"class":429,"line":244},[2707],{"type":393,"tag":427,"props":2708,"children":2709},{"style":466},[2710],{"type":398,"value":2711},"# Combine for customer analysis\n",{"type":393,"tag":427,"props":2713,"children":2714},{"class":429,"line":253},[2715,2720,2724,2729,2733,2737,2741],{"type":393,"tag":427,"props":2716,"children":2717},{"style":439},[2718],{"type":398,"value":2719},"customer_analysis ",{"type":393,"tag":427,"props":2721,"children":2722},{"style":433},[2723],{"type":398,"value":482},{"type":393,"tag":427,"props":2725,"children":2726},{"style":439},[2727],{"type":398,"value":2728}," purchases.merge(demographics, ",{"type":393,"tag":427,"props":2730,"children":2731},{"style":901},[2732],{"type":398,"value":904},{"type":393,"tag":427,"props":2734,"children":2735},{"style":433},[2736],{"type":398,"value":482},{"type":393,"tag":427,"props":2738,"children":2739},{"style":493},[2740],{"type":398,"value":913},{"type":393,"tag":427,"props":2742,"children":2743},{"style":439},[2744],{"type":398,"value":799},{"type":393,"tag":427,"props":2746,"children":2747},{"class":429,"line":262},[2748,2752,2756,2761],{"type":393,"tag":427,"props":2749,"children":2750},{"style":504},[2751],{"type":398,"value":784},{"type":393,"tag":427,"props":2753,"children":2754},{"style":439},[2755],{"type":398,"value":789},{"type":393,"tag":427,"props":2757,"children":2758},{"style":493},[2759],{"type":398,"value":2760},"\"Customer purchase analysis:\"",{"type":393,"tag":427,"props":2762,"children":2763},{"style":439},[2764],{"type":398,"value":799},{"type":393,"tag":427,"props":2766,"children":2767},{"class":429,"line":271},[2768,2772],{"type":393,"tag":427,"props":2769,"children":2770},{"style":504},[2771],{"type":398,"value":784},{"type":393,"tag":427,"props":2773,"children":2774},{"style":439},[2775],{"type":398,"value":2776},"(customer_analysis)\n",{"type":393,"tag":427,"props":2778,"children":2779},{"class":429,"line":281},[2780,2784],{"type":393,"tag":427,"props":2781,"children":2782},{"style":504},[2783],{"type":398,"value":784},{"type":393,"tag":427,"props":2785,"children":2786},{"style":439},[2787],{"type":398,"value":823},{"type":393,"tag":427,"props":2789,"children":2790},{"class":429,"line":290},[2791],{"type":393,"tag":427,"props":2792,"children":2793},{"emptyLinePlaceholder":12},[2794],{"type":398,"value":460},{"type":393,"tag":427,"props":2796,"children":2797},{"class":429,"line":299},[2798],{"type":393,"tag":427,"props":2799,"children":2800},{"style":466},[2801],{"type":398,"value":2802},"# Summary by region\n",{"type":393,"tag":427,"props":2804,"children":2805},{"class":429,"line":308},[2806,2811,2815,2820,2825,2830,2835,2840,2845,2849,2854],{"type":393,"tag":427,"props":2807,"children":2808},{"style":439},[2809],{"type":398,"value":2810},"regional_summary ",{"type":393,"tag":427,"props":2812,"children":2813},{"style":433},[2814],{"type":398,"value":482},{"type":393,"tag":427,"props":2816,"children":2817},{"style":439},[2818],{"type":398,"value":2819}," customer_analysis.groupby(",{"type":393,"tag":427,"props":2821,"children":2822},{"style":493},[2823],{"type":398,"value":2824},"'region'",{"type":393,"tag":427,"props":2826,"children":2827},{"style":439},[2828],{"type":398,"value":2829},")[",{"type":393,"tag":427,"props":2831,"children":2832},{"style":493},[2833],{"type":398,"value":2834},"'amount'",{"type":393,"tag":427,"props":2836,"children":2837},{"style":439},[2838],{"type":398,"value":2839},"].agg([",{"type":393,"tag":427,"props":2841,"children":2842},{"style":493},[2843],{"type":398,"value":2844},"'sum'",{"type":393,"tag":427,"props":2846,"children":2847},{"style":439},[2848],{"type":398,"value":512},{"type":393,"tag":427,"props":2850,"children":2851},{"style":493},[2852],{"type":398,"value":2853},"'count'",{"type":393,"tag":427,"props":2855,"children":2856},{"style":439},[2857],{"type":398,"value":2858},"])\n",{"type":393,"tag":427,"props":2860,"children":2861},{"class":429,"line":318},[2862,2866,2870,2875],{"type":393,"tag":427,"props":2863,"children":2864},{"style":504},[2865],{"type":398,"value":784},{"type":393,"tag":427,"props":2867,"children":2868},{"style":439},[2869],{"type":398,"value":789},{"type":393,"tag":427,"props":2871,"children":2872},{"style":493},[2873],{"type":398,"value":2874},"\"Sales summary by region:\"",{"type":393,"tag":427,"props":2876,"children":2877},{"style":439},[2878],{"type":398,"value":799},{"type":393,"tag":427,"props":2880,"children":2881},{"class":429,"line":327},[2882,2886],{"type":393,"tag":427,"props":2883,"children":2884},{"style":504},[2885],{"type":398,"value":784},{"type":393,"tag":427,"props":2887,"children":2888},{"style":439},[2889],{"type":398,"value":2890},"(regional_summary)\n",{"type":393,"tag":951,"props":2892,"children":2894},{"id":2893},"data-quality-considerations",[2895],{"type":398,"value":2896},"🔍 Data Quality Considerations",{"type":393,"tag":963,"props":2898,"children":2901},{"emoji":2899,"title":2900,"type":2120},"⚠️","Combination Challenges",[2902,2910,2953,2961,2984,2992],{"type":393,"tag":401,"props":2903,"children":2904},{},[2905],{"type":393,"tag":973,"props":2906,"children":2907},{},[2908],{"type":398,"value":2909},"Common Issues:",{"type":393,"tag":979,"props":2911,"children":2912},{},[2913,2923,2933,2943],{"type":393,"tag":983,"props":2914,"children":2915},{},[2916,2921],{"type":393,"tag":973,"props":2917,"children":2918},{},[2919],{"type":398,"value":2920},"Missing matches",{"type":398,"value":2922},": Not all records have counterparts",{"type":393,"tag":983,"props":2924,"children":2925},{},[2926,2931],{"type":393,"tag":973,"props":2927,"children":2928},{},[2929],{"type":398,"value":2930},"Duplicate keys",{"type":398,"value":2932},": Same ID appears multiple times",{"type":393,"tag":983,"props":2934,"children":2935},{},[2936,2941],{"type":393,"tag":973,"props":2937,"children":2938},{},[2939],{"type":398,"value":2940},"Column conflicts",{"type":398,"value":2942},": Same column names with different meanings",{"type":393,"tag":983,"props":2944,"children":2945},{},[2946,2951],{"type":393,"tag":973,"props":2947,"children":2948},{},[2949],{"type":398,"value":2950},"Data type mismatches",{"type":398,"value":2952},": Keys have different formats",{"type":393,"tag":401,"props":2954,"children":2955},{},[2956],{"type":393,"tag":973,"props":2957,"children":2958},{},[2959],{"type":398,"value":2960},"Solutions:",{"type":393,"tag":979,"props":2962,"children":2963},{},[2964,2969,2974,2979],{"type":393,"tag":983,"props":2965,"children":2966},{},[2967],{"type":398,"value":2968},"Use appropriate join types (inner, left, right, outer)",{"type":393,"tag":983,"props":2970,"children":2971},{},[2972],{"type":398,"value":2973},"Handle duplicates before combining",{"type":393,"tag":983,"props":2975,"children":2976},{},[2977],{"type":398,"value":2978},"Rename conflicting columns",{"type":393,"tag":983,"props":2980,"children":2981},{},[2982],{"type":398,"value":2983},"Convert data types before joining",{"type":393,"tag":401,"props":2985,"children":2986},{},[2987],{"type":393,"tag":973,"props":2988,"children":2989},{},[2990],{"type":398,"value":2991},"Validation Steps:",{"type":393,"tag":979,"props":2993,"children":2994},{},[2995,3000,3005,3010],{"type":393,"tag":983,"props":2996,"children":2997},{},[2998],{"type":398,"value":2999},"Check result size vs expected",{"type":393,"tag":983,"props":3001,"children":3002},{},[3003],{"type":398,"value":3004},"Verify no unexpected missing data",{"type":393,"tag":983,"props":3006,"children":3007},{},[3008],{"type":398,"value":3009},"Confirm all important records included",{"type":393,"tag":983,"props":3011,"children":3012},{},[3013],{"type":398,"value":3014},"Test with small samples first",{"type":393,"tag":951,"props":3016,"children":3018},{"id":3017},"key-combination-concepts",[3019],{"type":398,"value":3020},"🎯 Key Combination Concepts",{"type":393,"tag":963,"props":3022,"children":3025},{"emoji":3023,"title":3024,"type":967},"🔑","Essential Concepts",[3026,3034,3081,3089,3136,3144],{"type":393,"tag":401,"props":3027,"children":3028},{},[3029],{"type":393,"tag":973,"props":3030,"children":3031},{},[3032],{"type":398,"value":3033},"Concatenation Concepts:",{"type":393,"tag":979,"props":3035,"children":3036},{},[3037,3048,3059,3070],{"type":393,"tag":983,"props":3038,"children":3039},{},[3040,3046],{"type":393,"tag":423,"props":3041,"children":3043},{"className":3042},[],[3044],{"type":398,"value":3045},"pd.concat()",{"type":398,"value":3047}," - Main function for stacking",{"type":393,"tag":983,"props":3049,"children":3050},{},[3051,3057],{"type":393,"tag":423,"props":3052,"children":3054},{"className":3053},[],[3055],{"type":398,"value":3056},"axis=0",{"type":398,"value":3058}," - Stack vertically (default)",{"type":393,"tag":983,"props":3060,"children":3061},{},[3062,3068],{"type":393,"tag":423,"props":3063,"children":3065},{"className":3064},[],[3066],{"type":398,"value":3067},"axis=1",{"type":398,"value":3069}," - Stack horizontally",{"type":393,"tag":983,"props":3071,"children":3072},{},[3073,3079],{"type":393,"tag":423,"props":3074,"children":3076},{"className":3075},[],[3077],{"type":398,"value":3078},"ignore_index=True",{"type":398,"value":3080}," - Reset row numbers",{"type":393,"tag":401,"props":3082,"children":3083},{},[3084],{"type":393,"tag":973,"props":3085,"children":3086},{},[3087],{"type":398,"value":3088},"Merge Concepts:",{"type":393,"tag":979,"props":3090,"children":3091},{},[3092,3103,3114,3125],{"type":393,"tag":983,"props":3093,"children":3094},{},[3095,3101],{"type":393,"tag":423,"props":3096,"children":3098},{"className":3097},[],[3099],{"type":398,"value":3100},"df.merge()",{"type":398,"value":3102}," - Main function for joining",{"type":393,"tag":983,"props":3104,"children":3105},{},[3106,3112],{"type":393,"tag":423,"props":3107,"children":3109},{"className":3108},[],[3110],{"type":398,"value":3111},"on='column'",{"type":398,"value":3113}," - Specify join key",{"type":393,"tag":983,"props":3115,"children":3116},{},[3117,3123],{"type":393,"tag":423,"props":3118,"children":3120},{"className":3119},[],[3121],{"type":398,"value":3122},"how='inner/left/right/outer'",{"type":398,"value":3124}," - Join type",{"type":393,"tag":983,"props":3126,"children":3127},{},[3128,3134],{"type":393,"tag":423,"props":3129,"children":3131},{"className":3130},[],[3132],{"type":398,"value":3133},"suffixes",{"type":398,"value":3135}," - Handle duplicate column names",{"type":393,"tag":401,"props":3137,"children":3138},{},[3139],{"type":393,"tag":973,"props":3140,"children":3141},{},[3142],{"type":398,"value":3143},"Performance Tips:",{"type":393,"tag":979,"props":3145,"children":3146},{},[3147,3152,3157,3162],{"type":393,"tag":983,"props":3148,"children":3149},{},[3150],{"type":398,"value":3151},"Sort data by join keys for faster merging",{"type":393,"tag":983,"props":3153,"children":3154},{},[3155],{"type":398,"value":3156},"Use categorical data types for repeated values",{"type":393,"tag":983,"props":3158,"children":3159},{},[3160],{"type":398,"value":3161},"Consider memory usage with large datasets",{"type":393,"tag":983,"props":3163,"children":3164},{},[3165],{"type":398,"value":3166},"Index on join keys for better performance",{"type":393,"tag":951,"props":3168,"children":3170},{"id":3169},"whats-next",[3171],{"type":398,"value":3172},"🚀 What's Next?",{"type":393,"tag":401,"props":3174,"children":3175},{},[3176],{"type":398,"value":3177},"Ready to start combining your data like a pro? Let's begin with concatenation - the simpler method for stacking similar DataFrames.",{"type":393,"tag":401,"props":3179,"children":3180},{},[3181,3186,3188],{"type":393,"tag":973,"props":3182,"children":3183},{},[3184],{"type":398,"value":3185},"Start with",{"type":398,"value":3187},": ",{"type":393,"tag":1096,"props":3189,"children":3190},{"href":314},[3191],{"type":398,"value":315},{"type":393,"tag":401,"props":3193,"children":3194},{},[3195],{"type":398,"value":3196},"Time to combine! 🔗✨",{"type":393,"tag":3198,"props":3199,"children":3200},"style",{},[3201],{"type":398,"value":3202},"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":3204},[3205,3206,3207,3208,3211,3212,3213,3214,3215],{"id":953,"depth":27,"text":956},{"id":1078,"depth":27,"text":1081},{"id":1115,"depth":27,"text":1118},{"id":1215,"depth":27,"text":1218,"children":3209},[3210],{"id":1616,"depth":36,"text":1619},{"id":2112,"depth":27,"text":2115},{"id":2236,"depth":27,"text":2239},{"id":2893,"depth":27,"text":2896},{"id":3017,"depth":27,"text":3020},{"id":3169,"depth":27,"text":3172},1782373726450]