[{"data":1,"prerenderedAt":5939},["ShallowReactive",2],{"tutorials-pandas":3,"category-items-pandas":387,"content-/pandas/selecting-columns-and-rows":388},[4,21,31,40,49,58,67,78,87,96,105,116,125,134,143,154,163,172,181,192,201,210,219,228,239,248,257,266,276,285,294,303,313,322,331,341,350,359,369,378],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":6,"title":8,"description":9,"slug":10,"order":11,"isParent":12,"icon":13,"_type":14,"_id":15,"_source":16,"_file":17,"_stem":18,"_extension":19,"children":20},"/pandas","",false,"Getting Started","Learn the basics of Pandas, Python's powerful data analysis library for working with spreadsheet-like data","getting-started",1,true,"pi pi-play","markdown","content:pandas:1.index.md","content","pandas/1.index.md","pandas/1.index","md",[21,31,40,49,58],{"_path":22,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":14,"_id":28,"_source":16,"_file":29,"_stem":30,"_extension":19},"/pandas/what-is-pandas","pandas","What is Pandas","Understand what Pandas is, why it's essential for data analysis, and how it makes working with data simple and powerful","what-is-pandas",2,"content:pandas:2.what-is-pandas.md","pandas/2.what-is-pandas.md","pandas/2.what-is-pandas",{"_path":32,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":14,"_id":37,"_source":16,"_file":38,"_stem":39,"_extension":19},"/pandas/installing-pandas","Installing Pandas","Learn how to install Pandas on your computer and verify it's working properly","installing-pandas",3,"content:pandas:3.installing-pandas.md","pandas/3.installing-pandas.md","pandas/3.installing-pandas",{"_path":41,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":14,"_id":46,"_source":16,"_file":47,"_stem":48,"_extension":19},"/pandas/your-first-dataframe","Your First DataFrame","Create your first Pandas DataFrame and learn the basics of working with tabular data","your-first-dataframe",4,"content:pandas:4.your-first-dataframe.md","pandas/4.your-first-dataframe.md","pandas/4.your-first-dataframe",{"_path":50,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":14,"_id":55,"_source":16,"_file":56,"_stem":57,"_extension":19},"/pandas/series-vs-dataframe","Series vs DataFrame","Understand the difference between Pandas Series and DataFrames, and learn when to use each one","series-vs-dataframe",5,"content:pandas:5.series-vs-dataframe.md","pandas/5.series-vs-dataframe.md","pandas/5.series-vs-dataframe",{"_path":59,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":14,"_id":64,"_source":16,"_file":65,"_stem":66,"_extension":19},"/pandas/basic-dataframe-info","Basic DataFrame Info","Learn how to explore and get basic information about your DataFrames to understand your data","basic-dataframe-info",6,"content:pandas:6.basic-dataframe-info.md","pandas/6.basic-dataframe-info.md","pandas/6.basic-dataframe-info",{"_path":68,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":69,"description":70,"slug":71,"order":72,"isParent":12,"icon":73,"_type":14,"_id":74,"_source":16,"_file":75,"_stem":76,"_extension":19,"children":77,"expanded":12},"/pandas/loading-data","Loading Data","Learn how to load data from various sources into Pandas DataFrames","loading-data",7,"pi pi-download","content:pandas:7.loading-data.md","pandas/7.loading-data.md","pandas/7.loading-data",[78,87,96],{"_path":79,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":80,"description":81,"slug":82,"parentId":68,"order":83,"_type":14,"_id":84,"_source":16,"_file":85,"_stem":86,"_extension":19},"/pandas/reading-files","Reading Files (CSV, Excel, JSON)","Learn how to load data from CSV, Excel, and JSON files into Pandas DataFrames","reading-files",8,"content:pandas:8.reading-files.md","pandas/8.reading-files.md","pandas/8.reading-files",{"_path":88,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":89,"description":90,"slug":91,"parentId":68,"order":92,"_type":14,"_id":93,"_source":16,"_file":94,"_stem":95,"_extension":19},"/pandas/loading-from-databases","Loading from Databases","Learn how to connect to databases and load data directly into Pandas DataFrames","loading-from-databases",9,"content:pandas:9.loading-from-databases.md","pandas/9.loading-from-databases.md","pandas/9.loading-from-databases",{"_path":97,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":98,"description":99,"slug":100,"parentId":68,"order":101,"_type":14,"_id":102,"_source":16,"_file":103,"_stem":104,"_extension":19},"/pandas/handling-file-errors","Handling File Errors","Learn how to handle common errors when loading data files and how to troubleshoot loading problems","handling-file-errors",10,"content:pandas:10.handling-file-errors.md","pandas/10.handling-file-errors.md","pandas/10.handling-file-errors",{"_path":106,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":107,"description":108,"slug":109,"order":110,"isParent":12,"icon":111,"_type":14,"_id":112,"_source":16,"_file":113,"_stem":114,"_extension":19,"children":115,"expanded":12},"/pandas/data-exploration","Data Exploration","Learn how to explore and understand your data using Pandas methods and techniques","data-exploration",11,"pi pi-search","content:pandas:11.data-exploration.md","pandas/11.data-exploration.md","pandas/11.data-exploration",[116,125,134],{"_path":117,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":118,"description":119,"slug":120,"parentId":106,"order":121,"_type":14,"_id":122,"_source":16,"_file":123,"_stem":124,"_extension":19},"/pandas/viewing-your-data","Viewing Your Data","Learn different ways to look at and sample your DataFrame data for exploration and understanding","viewing-your-data",12,"content:pandas:12.viewing-your-data.md","pandas/12.viewing-your-data.md","pandas/12.viewing-your-data",{"_path":126,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":127,"description":128,"slug":129,"parentId":106,"order":130,"_type":14,"_id":131,"_source":16,"_file":132,"_stem":133,"_extension":19},"/pandas/data-shape-and-statistics","Data Shape and Statistics","Learn how to understand your DataFrame's size, structure, and get basic statistical summaries","data-shape-and-statistics",13,"content:pandas:13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics.md","pandas/13.data-shape-and-statistics",{"_path":135,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":136,"description":137,"slug":138,"parentId":106,"order":139,"_type":14,"_id":140,"_source":16,"_file":141,"_stem":142,"_extension":19},"/pandas/column-information-and-data-types","Column Information and Data Types","Learn how to explore individual columns and understand different data types in your DataFrames","column-information-and-data-types",14,"content:pandas:14.column-information-and-data-types.md","pandas/14.column-information-and-data-types.md","pandas/14.column-information-and-data-types",{"_path":144,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":145,"description":146,"slug":147,"order":148,"isParent":12,"icon":149,"_type":14,"_id":150,"_source":16,"_file":151,"_stem":152,"_extension":19,"children":153,"expanded":12},"/pandas/selecting-data","Selecting Data","Learn how to select specific columns, rows, and subsets of data from your DataFrames","selecting-data",15,"pi pi-filter","content:pandas:15.selecting-data.md","pandas/15.selecting-data.md","pandas/15.selecting-data",[154,163,172],{"_path":155,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":156,"description":157,"slug":158,"parentId":144,"order":159,"_type":14,"_id":160,"_source":16,"_file":161,"_stem":162,"_extension":19},"/pandas/selecting-columns-and-rows","Selecting Columns and Rows","Learn how to select specific columns and rows from your DataFrames using basic selection techniques","selecting-columns-and-rows",16,"content:pandas:16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows.md","pandas/16.selecting-columns-and-rows",{"_path":164,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":165,"description":166,"slug":167,"parentId":144,"order":168,"_type":14,"_id":169,"_source":16,"_file":170,"_stem":171,"_extension":19},"/pandas/using-loc-and-iloc","Using loc and iloc","Master precise data selection with label-based (loc) and position-based (iloc) indexing in pandas","using-loc-and-iloc",17,"content:pandas:17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc.md","pandas/17.using-loc-and-iloc",{"_path":173,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":174,"description":175,"slug":176,"parentId":144,"order":177,"_type":14,"_id":178,"_source":16,"_file":179,"_stem":180,"_extension":19},"/pandas/boolean-and-conditional-selection","Boolean and Conditional Selection","Learn to filter DataFrames using conditions, boolean logic, and multiple criteria for precise data selection","boolean-and-conditional-selection",18,"content:pandas:18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection.md","pandas/18.boolean-and-conditional-selection",{"_path":182,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":183,"description":184,"slug":185,"order":186,"isParent":12,"icon":187,"_type":14,"_id":188,"_source":16,"_file":189,"_stem":190,"_extension":19,"children":191},"/pandas/data-cleaning","Data Cleaning","Learn essential data cleaning techniques to prepare messy data for analysis","data-cleaning",19,"pi pi-wrench","content:pandas:19.data-cleaning.md","pandas/19.data-cleaning.md","pandas/19.data-cleaning",[192,201,210,219],{"_path":193,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":194,"description":195,"slug":196,"parentId":182,"order":197,"_type":14,"_id":198,"_source":16,"_file":199,"_stem":200,"_extension":19},"/pandas/handling-missing-data","Handling Missing Data","Learn to identify, fill, and remove missing values in your DataFrames effectively","handling-missing-data",20,"content:pandas:20.handling-missing-data.md","pandas/20.handling-missing-data.md","pandas/20.handling-missing-data",{"_path":202,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":203,"description":204,"slug":205,"parentId":182,"order":206,"_type":14,"_id":207,"_source":16,"_file":208,"_stem":209,"_extension":19},"/pandas/removing-duplicates","Removing Duplicates","Learn to find and eliminate duplicate rows from your DataFrames to ensure data quality","removing-duplicates",21,"content:pandas:21.removing-duplicates.md","pandas/21.removing-duplicates.md","pandas/21.removing-duplicates",{"_path":211,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":212,"description":213,"slug":214,"parentId":182,"order":215,"_type":14,"_id":216,"_source":16,"_file":217,"_stem":218,"_extension":19},"/pandas/data-type-conversion","Data Type Conversion","Learn to convert data to the right types for proper analysis and calculations","data-type-conversion",22,"content:pandas:22.data-type-conversion.md","pandas/22.data-type-conversion.md","pandas/22.data-type-conversion",{"_path":220,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":221,"description":222,"slug":223,"parentId":182,"order":224,"_type":14,"_id":225,"_source":16,"_file":226,"_stem":227,"_extension":19},"/pandas/string-cleaning-operations","String Cleaning Operations","Learn to clean and standardize text data for consistent analysis using pandas string methods","string-cleaning-operations",23,"content:pandas:23.string-cleaning-operations.md","pandas/23.string-cleaning-operations.md","pandas/23.string-cleaning-operations",{"_path":229,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":230,"description":231,"slug":232,"order":233,"isParent":12,"icon":234,"_type":14,"_id":235,"_source":16,"_file":236,"_stem":237,"_extension":19,"children":238},"/pandas/data-transformation","Data Transformation","Learn how to modify, add, and transform data in your DataFrames for analysis","data-transformation",24,"pi pi-folder","content:pandas:24.data-transformation.md","pandas/24.data-transformation.md","pandas/24.data-transformation",[239,248,257],{"_path":240,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":241,"description":242,"slug":243,"parentId":229,"order":244,"_type":14,"_id":245,"_source":16,"_file":246,"_stem":247,"_extension":19},"/pandas/adding-and-modifying-columns","Adding and Modifying Columns","Learn how to create new columns and update existing ones with calculations and conditional logic","adding-and-modifying-columns",25,"content:pandas:25.adding-and-modifying-columns.md","pandas/25.adding-and-modifying-columns.md","pandas/25.adding-and-modifying-columns",{"_path":249,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":250,"description":251,"slug":252,"parentId":229,"order":253,"_type":14,"_id":254,"_source":16,"_file":255,"_stem":256,"_extension":19},"/pandas/applying-functions","Applying Functions","Use built-in and custom functions to transform your data efficiently","applying-functions",26,"content:pandas:26.applying-functions.md","pandas/26.applying-functions.md","pandas/26.applying-functions",{"_path":258,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":259,"description":260,"slug":261,"parentId":229,"order":262,"_type":14,"_id":263,"_source":16,"_file":264,"_stem":265,"_extension":19},"/pandas/renaming-and-sorting-data","Renaming and Sorting Data","Organize your DataFrame with better column names and logical data ordering","renaming-and-sorting-data",27,"content:pandas:27.renaming-and-sorting-data.md","pandas/27.renaming-and-sorting-data.md","pandas/27.renaming-and-sorting-data",{"_path":267,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":268,"description":269,"slug":270,"order":271,"isParent":12,"icon":234,"_type":14,"_id":272,"_source":16,"_file":273,"_stem":274,"_extension":19,"children":275},"/pandas/grouping-and-aggregation","Grouping and Aggregation","Learn to group data and calculate summary statistics for powerful data analysis","grouping-and-aggregation",28,"content:pandas:28.grouping-and-aggregation.md","pandas/28.grouping-and-aggregation.md","pandas/28.grouping-and-aggregation",[276,285,294],{"_path":277,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":278,"description":279,"slug":280,"parentId":267,"order":281,"_type":14,"_id":282,"_source":16,"_file":283,"_stem":284,"_extension":19},"/pandas/groupby-operations","GroupBy Operations","Learn the fundamentals of splitting data into groups and basic aggregations","groupby-operations",29,"content:pandas:29.groupby-operations.md","pandas/29.groupby-operations.md","pandas/29.groupby-operations",{"_path":286,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":287,"description":288,"slug":289,"parentId":267,"order":290,"_type":14,"_id":291,"_source":16,"_file":292,"_stem":293,"_extension":19},"/pandas/aggregation-functions","Aggregation Functions","Explore different ways to summarize your grouped data with built-in and custom functions","aggregation-functions",30,"content:pandas:30.aggregation-functions.md","pandas/30.aggregation-functions.md","pandas/30.aggregation-functions",{"_path":295,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":296,"description":297,"slug":298,"parentId":267,"order":299,"_type":14,"_id":300,"_source":16,"_file":301,"_stem":302,"_extension":19},"/pandas/pivot-tables-and-cross-tabulation","Pivot Tables and Cross Tabulation","Create powerful summary tables and cross-tabulations for analysis","pivot-tables-and-cross-tabulation",31,"content:pandas:31.pivot-tables-and-cross-tabulation.md","pandas/31.pivot-tables-and-cross-tabulation.md","pandas/31.pivot-tables-and-cross-tabulation",{"_path":304,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":305,"description":306,"slug":307,"order":308,"isParent":12,"icon":234,"_type":14,"_id":309,"_source":16,"_file":310,"_stem":311,"_extension":19,"children":312},"/pandas/combining-data","Combining Data","Learn to combine data from multiple DataFrames for comprehensive analysis","combining-data",32,"content:pandas:32.combining-data.md","pandas/32.combining-data.md","pandas/32.combining-data",[313,322],{"_path":314,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":315,"description":316,"slug":317,"parentId":304,"order":318,"_type":14,"_id":319,"_source":16,"_file":320,"_stem":321,"_extension":19},"/pandas/concatenating-dataframes","Concatenating DataFrames","Learn to stack DataFrames vertically and horizontally for simple data combination","concatenating-dataframes",33,"content:pandas:33.concatenating-dataframes.md","pandas/33.concatenating-dataframes.md","pandas/33.concatenating-dataframes",{"_path":323,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":324,"description":325,"slug":326,"parentId":304,"order":327,"_type":14,"_id":328,"_source":16,"_file":329,"_stem":330,"_extension":19},"/pandas/merging-and-join-operations","Merging and Join Operations","Master different types of joins to combine related data from multiple sources","merging-and-join-operations",34,"content:pandas:34.merging-and-join-operations.md","pandas/34.merging-and-join-operations.md","pandas/34.merging-and-join-operations",{"_path":332,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":333,"description":334,"slug":335,"order":336,"isParent":12,"icon":234,"_type":14,"_id":337,"_source":16,"_file":338,"_stem":339,"_extension":19,"children":340},"/pandas/working-with-dates","Working with Dates","Master date and time operations for time-based analysis and reporting","working-with-dates",35,"content:pandas:35.working-with-dates.md","pandas/35.working-with-dates.md","pandas/35.working-with-dates",[341,350],{"_path":342,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":343,"description":344,"slug":345,"parentId":332,"order":346,"_type":14,"_id":347,"_source":16,"_file":348,"_stem":349,"_extension":19},"/pandas/datetime-operations","DateTime Operations","Learn to convert, manipulate, and extract information from dates and times","datetime-operations",36,"content:pandas:36.datetime-operations.md","pandas/36.datetime-operations.md","pandas/36.datetime-operations",{"_path":351,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":352,"description":353,"slug":354,"parentId":332,"order":355,"_type":14,"_id":356,"_source":16,"_file":357,"_stem":358,"_extension":19},"/pandas/time-series-and-resampling","Time Series and Resampling","Discover how to analyze data over time periods and aggregate by different time intervals","time-series-and-resampling",37,"content:pandas:37.time-series-and-resampling.md","pandas/37.time-series-and-resampling.md","pandas/37.time-series-and-resampling",{"_path":360,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":361,"description":362,"slug":363,"order":364,"isParent":12,"icon":234,"_type":14,"_id":365,"_source":16,"_file":366,"_stem":367,"_extension":19,"children":368},"/pandas/saving-your-work","Saving Your Work","Learn to export your analyzed data to different formats for sharing and reporting","saving-your-work",38,"content:pandas:38.saving-your-work.md","pandas/38.saving-your-work.md","pandas/38.saving-your-work",[369,378],{"_path":370,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":371,"description":372,"slug":373,"parentId":360,"order":374,"_type":14,"_id":375,"_source":16,"_file":376,"_stem":377,"_extension":19},"/pandas/exporting-data","Exporting Data (CSV, Excel, JSON)","Learn to save your DataFrames to common file formats for sharing and reporting","exporting-data",39,"content:pandas:39.exporting-data.md","pandas/39.exporting-data.md","pandas/39.exporting-data",{"_path":379,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":380,"description":381,"slug":382,"parentId":360,"order":383,"_type":14,"_id":384,"_source":16,"_file":385,"_stem":386,"_extension":19},"/pandas/database-export","Database Export","Discover how to save data back to databases for integration with other systems","database-export",40,"content:pandas:40.database-export.md","pandas/40.database-export.md","pandas/40.database-export",[154],{"_path":155,"_dir":23,"_draft":7,"_partial":7,"_locale":6,"title":156,"description":157,"slug":158,"parentId":144,"order":159,"body":389,"_type":14,"_id":160,"_source":16,"_file":161,"_stem":162,"_extension":19},{"type":390,"children":391,"toc":5926},"root",[392,400,406,527,534,539,1119,1125,1130,1619,1625,1630,2184,2190,2195,2746,2752,2757,3396,3402,3407,4044,4050,4055,4250,4793,4799,4977,4983,5210,5216,5221,5875,5881,5901,5915,5920],{"type":393,"tag":394,"props":395,"children":396},"element","h1",{"id":158},[397],{"type":398,"value":399},"text","📋 Selecting Columns and Rows",{"type":393,"tag":401,"props":402,"children":403},"p",{},[404],{"type":398,"value":405},"Learning to select specific columns and rows is fundamental to working with DataFrames. It's like knowing how to pick items from a menu - you want exactly what you need, nothing more, nothing less!",{"type":393,"tag":407,"props":408,"children":412},"info-box",{"emoji":409,"title":410,"type":411},"📋","Basic Selection Concepts","info",[413,422,454,462,501],{"type":393,"tag":401,"props":414,"children":415},{},[416],{"type":393,"tag":417,"props":418,"children":419},"strong",{},[420],{"type":398,"value":421},"Column Selection:",{"type":393,"tag":423,"props":424,"children":425},"ul",{},[426,441],{"type":393,"tag":427,"props":428,"children":429},"li",{},[430,432,439],{"type":398,"value":431},"Single column: ",{"type":393,"tag":433,"props":434,"children":436},"code",{"className":435},[],[437],{"type":398,"value":438},"df['column_name']",{"type":398,"value":440}," → Returns a Series",{"type":393,"tag":427,"props":442,"children":443},{},[444,446,452],{"type":398,"value":445},"Multiple columns: ",{"type":393,"tag":433,"props":447,"children":449},{"className":448},[],[450],{"type":398,"value":451},"df[['col1', 'col2']]",{"type":398,"value":453}," → Returns a DataFrame",{"type":393,"tag":401,"props":455,"children":456},{},[457],{"type":393,"tag":417,"props":458,"children":459},{},[460],{"type":398,"value":461},"Row Selection:",{"type":393,"tag":423,"props":463,"children":464},{},[465,477,489],{"type":393,"tag":427,"props":466,"children":467},{},[468,470,476],{"type":398,"value":469},"Single row: ",{"type":393,"tag":433,"props":471,"children":473},{"className":472},[],[474],{"type":398,"value":475},"df.iloc[0]",{"type":398,"value":440},{"type":393,"tag":427,"props":478,"children":479},{},[480,482,488],{"type":398,"value":481},"Multiple rows: ",{"type":393,"tag":433,"props":483,"children":485},{"className":484},[],[486],{"type":398,"value":487},"df.iloc[0:3]",{"type":398,"value":453},{"type":393,"tag":427,"props":490,"children":491},{},[492,494,500],{"type":398,"value":493},"Specific rows: ",{"type":393,"tag":433,"props":495,"children":497},{"className":496},[],[498],{"type":398,"value":499},"df.iloc[[0, 2, 4]]",{"type":398,"value":453},{"type":393,"tag":401,"props":502,"children":503},{},[504,509,511,517,519,525],{"type":393,"tag":417,"props":505,"children":506},{},[507],{"type":398,"value":508},"Remember:",{"type":398,"value":510}," Single brackets ",{"type":393,"tag":433,"props":512,"children":514},{"className":513},[],[515],{"type":398,"value":516},"[]",{"type":398,"value":518}," for one column, double brackets ",{"type":393,"tag":433,"props":520,"children":522},{"className":521},[],[523],{"type":398,"value":524},"[[]]",{"type":398,"value":526}," for multiple columns!",{"type":393,"tag":528,"props":529,"children":531},"h2",{"id":530},"selecting-single-columns",[532],{"type":398,"value":533},"📊 Selecting Single Columns",{"type":393,"tag":401,"props":535,"children":536},{},[537],{"type":398,"value":538},"The most basic selection - getting one column at a time:",{"type":393,"tag":540,"props":541,"children":542},"code-try",{},[543],{"type":393,"tag":544,"props":545,"children":549},"pre",{"className":546,"code":547,"language":548,"meta":6,"style":6},"language-python shiki shiki-themes github-light github-dark","import pandas as pd\n\n# Sample data\nstudents = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie'],\n    'age': [20, 22, 21],\n    'grade': ['A', 'B', 'A'],\n    'score': [85, 78, 92]\n})\n\nprint(\"Original Data:\")\nprint(students)\nprint()\n\nprint(\"📋 Single Column Selection:\")\nprint()\n\n# Get just names\nnames = students['name']\nprint(\"Student names:\")\nprint(names)\nprint(f\"Type: {type(names)}\")\nprint()\n\n# Get just scores\nscores = students['score']\nprint(\"Student scores:\")\nprint(scores)\nprint(f\"Average score: {scores.mean()}\")\n","python",[550],{"type":393,"tag":433,"props":551,"children":552},{"__ignoreMap":6},[553,580,588,597,615,658,698,736,776,784,791,814,826,838,845,865,876,883,891,917,937,949,994,1005,1012,1020,1045,1065,1077],{"type":393,"tag":554,"props":555,"children":557},"span",{"class":556,"line":11},"line",[558,564,570,575],{"type":393,"tag":554,"props":559,"children":561},{"style":560},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[562],{"type":398,"value":563},"import",{"type":393,"tag":554,"props":565,"children":567},{"style":566},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[568],{"type":398,"value":569}," pandas ",{"type":393,"tag":554,"props":571,"children":572},{"style":560},[573],{"type":398,"value":574},"as",{"type":393,"tag":554,"props":576,"children":577},{"style":566},[578],{"type":398,"value":579}," pd\n",{"type":393,"tag":554,"props":581,"children":582},{"class":556,"line":27},[583],{"type":393,"tag":554,"props":584,"children":585},{"emptyLinePlaceholder":12},[586],{"type":398,"value":587},"\n",{"type":393,"tag":554,"props":589,"children":590},{"class":556,"line":36},[591],{"type":393,"tag":554,"props":592,"children":594},{"style":593},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[595],{"type":398,"value":596},"# Sample data\n",{"type":393,"tag":554,"props":598,"children":599},{"class":556,"line":45},[600,605,610],{"type":393,"tag":554,"props":601,"children":602},{"style":566},[603],{"type":398,"value":604},"students ",{"type":393,"tag":554,"props":606,"children":607},{"style":560},[608],{"type":398,"value":609},"=",{"type":393,"tag":554,"props":611,"children":612},{"style":566},[613],{"type":398,"value":614}," pd.DataFrame({\n",{"type":393,"tag":554,"props":616,"children":617},{"class":556,"line":54},[618,624,629,634,639,644,648,653],{"type":393,"tag":554,"props":619,"children":621},{"style":620},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[622],{"type":398,"value":623},"    'name'",{"type":393,"tag":554,"props":625,"children":626},{"style":566},[627],{"type":398,"value":628},": [",{"type":393,"tag":554,"props":630,"children":631},{"style":620},[632],{"type":398,"value":633},"'Alice'",{"type":393,"tag":554,"props":635,"children":636},{"style":566},[637],{"type":398,"value":638},", ",{"type":393,"tag":554,"props":640,"children":641},{"style":620},[642],{"type":398,"value":643},"'Bob'",{"type":393,"tag":554,"props":645,"children":646},{"style":566},[647],{"type":398,"value":638},{"type":393,"tag":554,"props":649,"children":650},{"style":620},[651],{"type":398,"value":652},"'Charlie'",{"type":393,"tag":554,"props":654,"children":655},{"style":566},[656],{"type":398,"value":657},"],\n",{"type":393,"tag":554,"props":659,"children":660},{"class":556,"line":63},[661,666,670,676,680,685,689,694],{"type":393,"tag":554,"props":662,"children":663},{"style":620},[664],{"type":398,"value":665},"    'age'",{"type":393,"tag":554,"props":667,"children":668},{"style":566},[669],{"type":398,"value":628},{"type":393,"tag":554,"props":671,"children":673},{"style":672},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[674],{"type":398,"value":675},"20",{"type":393,"tag":554,"props":677,"children":678},{"style":566},[679],{"type":398,"value":638},{"type":393,"tag":554,"props":681,"children":682},{"style":672},[683],{"type":398,"value":684},"22",{"type":393,"tag":554,"props":686,"children":687},{"style":566},[688],{"type":398,"value":638},{"type":393,"tag":554,"props":690,"children":691},{"style":672},[692],{"type":398,"value":693},"21",{"type":393,"tag":554,"props":695,"children":696},{"style":566},[697],{"type":398,"value":657},{"type":393,"tag":554,"props":699,"children":700},{"class":556,"line":72},[701,706,710,715,719,724,728,732],{"type":393,"tag":554,"props":702,"children":703},{"style":620},[704],{"type":398,"value":705},"    'grade'",{"type":393,"tag":554,"props":707,"children":708},{"style":566},[709],{"type":398,"value":628},{"type":393,"tag":554,"props":711,"children":712},{"style":620},[713],{"type":398,"value":714},"'A'",{"type":393,"tag":554,"props":716,"children":717},{"style":566},[718],{"type":398,"value":638},{"type":393,"tag":554,"props":720,"children":721},{"style":620},[722],{"type":398,"value":723},"'B'",{"type":393,"tag":554,"props":725,"children":726},{"style":566},[727],{"type":398,"value":638},{"type":393,"tag":554,"props":729,"children":730},{"style":620},[731],{"type":398,"value":714},{"type":393,"tag":554,"props":733,"children":734},{"style":566},[735],{"type":398,"value":657},{"type":393,"tag":554,"props":737,"children":738},{"class":556,"line":83},[739,744,748,753,757,762,766,771],{"type":393,"tag":554,"props":740,"children":741},{"style":620},[742],{"type":398,"value":743},"    'score'",{"type":393,"tag":554,"props":745,"children":746},{"style":566},[747],{"type":398,"value":628},{"type":393,"tag":554,"props":749,"children":750},{"style":672},[751],{"type":398,"value":752},"85",{"type":393,"tag":554,"props":754,"children":755},{"style":566},[756],{"type":398,"value":638},{"type":393,"tag":554,"props":758,"children":759},{"style":672},[760],{"type":398,"value":761},"78",{"type":393,"tag":554,"props":763,"children":764},{"style":566},[765],{"type":398,"value":638},{"type":393,"tag":554,"props":767,"children":768},{"style":672},[769],{"type":398,"value":770},"92",{"type":393,"tag":554,"props":772,"children":773},{"style":566},[774],{"type":398,"value":775},"]\n",{"type":393,"tag":554,"props":777,"children":778},{"class":556,"line":92},[779],{"type":393,"tag":554,"props":780,"children":781},{"style":566},[782],{"type":398,"value":783},"})\n",{"type":393,"tag":554,"props":785,"children":786},{"class":556,"line":101},[787],{"type":393,"tag":554,"props":788,"children":789},{"emptyLinePlaceholder":12},[790],{"type":398,"value":587},{"type":393,"tag":554,"props":792,"children":793},{"class":556,"line":110},[794,799,804,809],{"type":393,"tag":554,"props":795,"children":796},{"style":672},[797],{"type":398,"value":798},"print",{"type":393,"tag":554,"props":800,"children":801},{"style":566},[802],{"type":398,"value":803},"(",{"type":393,"tag":554,"props":805,"children":806},{"style":620},[807],{"type":398,"value":808},"\"Original Data:\"",{"type":393,"tag":554,"props":810,"children":811},{"style":566},[812],{"type":398,"value":813},")\n",{"type":393,"tag":554,"props":815,"children":816},{"class":556,"line":121},[817,821],{"type":393,"tag":554,"props":818,"children":819},{"style":672},[820],{"type":398,"value":798},{"type":393,"tag":554,"props":822,"children":823},{"style":566},[824],{"type":398,"value":825},"(students)\n",{"type":393,"tag":554,"props":827,"children":828},{"class":556,"line":130},[829,833],{"type":393,"tag":554,"props":830,"children":831},{"style":672},[832],{"type":398,"value":798},{"type":393,"tag":554,"props":834,"children":835},{"style":566},[836],{"type":398,"value":837},"()\n",{"type":393,"tag":554,"props":839,"children":840},{"class":556,"line":139},[841],{"type":393,"tag":554,"props":842,"children":843},{"emptyLinePlaceholder":12},[844],{"type":398,"value":587},{"type":393,"tag":554,"props":846,"children":847},{"class":556,"line":148},[848,852,856,861],{"type":393,"tag":554,"props":849,"children":850},{"style":672},[851],{"type":398,"value":798},{"type":393,"tag":554,"props":853,"children":854},{"style":566},[855],{"type":398,"value":803},{"type":393,"tag":554,"props":857,"children":858},{"style":620},[859],{"type":398,"value":860},"\"📋 Single Column Selection:\"",{"type":393,"tag":554,"props":862,"children":863},{"style":566},[864],{"type":398,"value":813},{"type":393,"tag":554,"props":866,"children":867},{"class":556,"line":159},[868,872],{"type":393,"tag":554,"props":869,"children":870},{"style":672},[871],{"type":398,"value":798},{"type":393,"tag":554,"props":873,"children":874},{"style":566},[875],{"type":398,"value":837},{"type":393,"tag":554,"props":877,"children":878},{"class":556,"line":168},[879],{"type":393,"tag":554,"props":880,"children":881},{"emptyLinePlaceholder":12},[882],{"type":398,"value":587},{"type":393,"tag":554,"props":884,"children":885},{"class":556,"line":177},[886],{"type":393,"tag":554,"props":887,"children":888},{"style":593},[889],{"type":398,"value":890},"# Get just names\n",{"type":393,"tag":554,"props":892,"children":893},{"class":556,"line":186},[894,899,903,908,913],{"type":393,"tag":554,"props":895,"children":896},{"style":566},[897],{"type":398,"value":898},"names ",{"type":393,"tag":554,"props":900,"children":901},{"style":560},[902],{"type":398,"value":609},{"type":393,"tag":554,"props":904,"children":905},{"style":566},[906],{"type":398,"value":907}," students[",{"type":393,"tag":554,"props":909,"children":910},{"style":620},[911],{"type":398,"value":912},"'name'",{"type":393,"tag":554,"props":914,"children":915},{"style":566},[916],{"type":398,"value":775},{"type":393,"tag":554,"props":918,"children":919},{"class":556,"line":197},[920,924,928,933],{"type":393,"tag":554,"props":921,"children":922},{"style":672},[923],{"type":398,"value":798},{"type":393,"tag":554,"props":925,"children":926},{"style":566},[927],{"type":398,"value":803},{"type":393,"tag":554,"props":929,"children":930},{"style":620},[931],{"type":398,"value":932},"\"Student names:\"",{"type":393,"tag":554,"props":934,"children":935},{"style":566},[936],{"type":398,"value":813},{"type":393,"tag":554,"props":938,"children":939},{"class":556,"line":206},[940,944],{"type":393,"tag":554,"props":941,"children":942},{"style":672},[943],{"type":398,"value":798},{"type":393,"tag":554,"props":945,"children":946},{"style":566},[947],{"type":398,"value":948},"(names)\n",{"type":393,"tag":554,"props":950,"children":951},{"class":556,"line":215},[952,956,960,965,970,975,980,985,990],{"type":393,"tag":554,"props":953,"children":954},{"style":672},[955],{"type":398,"value":798},{"type":393,"tag":554,"props":957,"children":958},{"style":566},[959],{"type":398,"value":803},{"type":393,"tag":554,"props":961,"children":962},{"style":560},[963],{"type":398,"value":964},"f",{"type":393,"tag":554,"props":966,"children":967},{"style":620},[968],{"type":398,"value":969},"\"Type: ",{"type":393,"tag":554,"props":971,"children":972},{"style":672},[973],{"type":398,"value":974},"{type",{"type":393,"tag":554,"props":976,"children":977},{"style":566},[978],{"type":398,"value":979},"(names)",{"type":393,"tag":554,"props":981,"children":982},{"style":672},[983],{"type":398,"value":984},"}",{"type":393,"tag":554,"props":986,"children":987},{"style":620},[988],{"type":398,"value":989},"\"",{"type":393,"tag":554,"props":991,"children":992},{"style":566},[993],{"type":398,"value":813},{"type":393,"tag":554,"props":995,"children":996},{"class":556,"line":224},[997,1001],{"type":393,"tag":554,"props":998,"children":999},{"style":672},[1000],{"type":398,"value":798},{"type":393,"tag":554,"props":1002,"children":1003},{"style":566},[1004],{"type":398,"value":837},{"type":393,"tag":554,"props":1006,"children":1007},{"class":556,"line":233},[1008],{"type":393,"tag":554,"props":1009,"children":1010},{"emptyLinePlaceholder":12},[1011],{"type":398,"value":587},{"type":393,"tag":554,"props":1013,"children":1014},{"class":556,"line":244},[1015],{"type":393,"tag":554,"props":1016,"children":1017},{"style":593},[1018],{"type":398,"value":1019},"# Get just scores\n",{"type":393,"tag":554,"props":1021,"children":1022},{"class":556,"line":253},[1023,1028,1032,1036,1041],{"type":393,"tag":554,"props":1024,"children":1025},{"style":566},[1026],{"type":398,"value":1027},"scores ",{"type":393,"tag":554,"props":1029,"children":1030},{"style":560},[1031],{"type":398,"value":609},{"type":393,"tag":554,"props":1033,"children":1034},{"style":566},[1035],{"type":398,"value":907},{"type":393,"tag":554,"props":1037,"children":1038},{"style":620},[1039],{"type":398,"value":1040},"'score'",{"type":393,"tag":554,"props":1042,"children":1043},{"style":566},[1044],{"type":398,"value":775},{"type":393,"tag":554,"props":1046,"children":1047},{"class":556,"line":262},[1048,1052,1056,1061],{"type":393,"tag":554,"props":1049,"children":1050},{"style":672},[1051],{"type":398,"value":798},{"type":393,"tag":554,"props":1053,"children":1054},{"style":566},[1055],{"type":398,"value":803},{"type":393,"tag":554,"props":1057,"children":1058},{"style":620},[1059],{"type":398,"value":1060},"\"Student scores:\"",{"type":393,"tag":554,"props":1062,"children":1063},{"style":566},[1064],{"type":398,"value":813},{"type":393,"tag":554,"props":1066,"children":1067},{"class":556,"line":271},[1068,1072],{"type":393,"tag":554,"props":1069,"children":1070},{"style":672},[1071],{"type":398,"value":798},{"type":393,"tag":554,"props":1073,"children":1074},{"style":566},[1075],{"type":398,"value":1076},"(scores)\n",{"type":393,"tag":554,"props":1078,"children":1079},{"class":556,"line":281},[1080,1084,1088,1092,1097,1102,1107,1111,1115],{"type":393,"tag":554,"props":1081,"children":1082},{"style":672},[1083],{"type":398,"value":798},{"type":393,"tag":554,"props":1085,"children":1086},{"style":566},[1087],{"type":398,"value":803},{"type":393,"tag":554,"props":1089,"children":1090},{"style":560},[1091],{"type":398,"value":964},{"type":393,"tag":554,"props":1093,"children":1094},{"style":620},[1095],{"type":398,"value":1096},"\"Average score: ",{"type":393,"tag":554,"props":1098,"children":1099},{"style":672},[1100],{"type":398,"value":1101},"{",{"type":393,"tag":554,"props":1103,"children":1104},{"style":566},[1105],{"type":398,"value":1106},"scores.mean()",{"type":393,"tag":554,"props":1108,"children":1109},{"style":672},[1110],{"type":398,"value":984},{"type":393,"tag":554,"props":1112,"children":1113},{"style":620},[1114],{"type":398,"value":989},{"type":393,"tag":554,"props":1116,"children":1117},{"style":566},[1118],{"type":398,"value":813},{"type":393,"tag":528,"props":1120,"children":1122},{"id":1121},"selecting-multiple-columns",[1123],{"type":398,"value":1124},"📊 Selecting Multiple Columns",{"type":393,"tag":401,"props":1126,"children":1127},{},[1128],{"type":398,"value":1129},"When you need several columns but not all:",{"type":393,"tag":540,"props":1131,"children":1132},{},[1133],{"type":393,"tag":544,"props":1134,"children":1136},{"className":546,"code":1135,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Employee data\nemployees = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie'],\n    'department': ['Sales', 'IT', 'Marketing'],\n    'salary': [50000, 75000, 60000],\n    'years': [2, 5, 3]\n})\n\nprint(\"Employee Data:\")\nprint(employees)\nprint()\n\nprint(\"📋 Multiple Column Selection:\")\nprint()\n\n# Select name and salary\nbasic_info = employees[['name', 'salary']]\nprint(\"Name and salary:\")\nprint(basic_info)\nprint()\n\n# Select name, department, and years\nsummary = employees[['name', 'department', 'years']]\nprint(\"Employee summary:\")\nprint(summary)\n",[1137],{"type":393,"tag":433,"props":1138,"children":1139},{"__ignoreMap":6},[1140,1159,1166,1174,1190,1225,1264,1303,1342,1349,1356,1376,1388,1399,1406,1426,1437,1444,1452,1487,1507,1519,1530,1537,1545,1587,1607],{"type":393,"tag":554,"props":1141,"children":1142},{"class":556,"line":11},[1143,1147,1151,1155],{"type":393,"tag":554,"props":1144,"children":1145},{"style":560},[1146],{"type":398,"value":563},{"type":393,"tag":554,"props":1148,"children":1149},{"style":566},[1150],{"type":398,"value":569},{"type":393,"tag":554,"props":1152,"children":1153},{"style":560},[1154],{"type":398,"value":574},{"type":393,"tag":554,"props":1156,"children":1157},{"style":566},[1158],{"type":398,"value":579},{"type":393,"tag":554,"props":1160,"children":1161},{"class":556,"line":27},[1162],{"type":393,"tag":554,"props":1163,"children":1164},{"emptyLinePlaceholder":12},[1165],{"type":398,"value":587},{"type":393,"tag":554,"props":1167,"children":1168},{"class":556,"line":36},[1169],{"type":393,"tag":554,"props":1170,"children":1171},{"style":593},[1172],{"type":398,"value":1173},"# Employee data\n",{"type":393,"tag":554,"props":1175,"children":1176},{"class":556,"line":45},[1177,1182,1186],{"type":393,"tag":554,"props":1178,"children":1179},{"style":566},[1180],{"type":398,"value":1181},"employees ",{"type":393,"tag":554,"props":1183,"children":1184},{"style":560},[1185],{"type":398,"value":609},{"type":393,"tag":554,"props":1187,"children":1188},{"style":566},[1189],{"type":398,"value":614},{"type":393,"tag":554,"props":1191,"children":1192},{"class":556,"line":54},[1193,1197,1201,1205,1209,1213,1217,1221],{"type":393,"tag":554,"props":1194,"children":1195},{"style":620},[1196],{"type":398,"value":623},{"type":393,"tag":554,"props":1198,"children":1199},{"style":566},[1200],{"type":398,"value":628},{"type":393,"tag":554,"props":1202,"children":1203},{"style":620},[1204],{"type":398,"value":633},{"type":393,"tag":554,"props":1206,"children":1207},{"style":566},[1208],{"type":398,"value":638},{"type":393,"tag":554,"props":1210,"children":1211},{"style":620},[1212],{"type":398,"value":643},{"type":393,"tag":554,"props":1214,"children":1215},{"style":566},[1216],{"type":398,"value":638},{"type":393,"tag":554,"props":1218,"children":1219},{"style":620},[1220],{"type":398,"value":652},{"type":393,"tag":554,"props":1222,"children":1223},{"style":566},[1224],{"type":398,"value":657},{"type":393,"tag":554,"props":1226,"children":1227},{"class":556,"line":63},[1228,1233,1237,1242,1246,1251,1255,1260],{"type":393,"tag":554,"props":1229,"children":1230},{"style":620},[1231],{"type":398,"value":1232},"    'department'",{"type":393,"tag":554,"props":1234,"children":1235},{"style":566},[1236],{"type":398,"value":628},{"type":393,"tag":554,"props":1238,"children":1239},{"style":620},[1240],{"type":398,"value":1241},"'Sales'",{"type":393,"tag":554,"props":1243,"children":1244},{"style":566},[1245],{"type":398,"value":638},{"type":393,"tag":554,"props":1247,"children":1248},{"style":620},[1249],{"type":398,"value":1250},"'IT'",{"type":393,"tag":554,"props":1252,"children":1253},{"style":566},[1254],{"type":398,"value":638},{"type":393,"tag":554,"props":1256,"children":1257},{"style":620},[1258],{"type":398,"value":1259},"'Marketing'",{"type":393,"tag":554,"props":1261,"children":1262},{"style":566},[1263],{"type":398,"value":657},{"type":393,"tag":554,"props":1265,"children":1266},{"class":556,"line":72},[1267,1272,1276,1281,1285,1290,1294,1299],{"type":393,"tag":554,"props":1268,"children":1269},{"style":620},[1270],{"type":398,"value":1271},"    'salary'",{"type":393,"tag":554,"props":1273,"children":1274},{"style":566},[1275],{"type":398,"value":628},{"type":393,"tag":554,"props":1277,"children":1278},{"style":672},[1279],{"type":398,"value":1280},"50000",{"type":393,"tag":554,"props":1282,"children":1283},{"style":566},[1284],{"type":398,"value":638},{"type":393,"tag":554,"props":1286,"children":1287},{"style":672},[1288],{"type":398,"value":1289},"75000",{"type":393,"tag":554,"props":1291,"children":1292},{"style":566},[1293],{"type":398,"value":638},{"type":393,"tag":554,"props":1295,"children":1296},{"style":672},[1297],{"type":398,"value":1298},"60000",{"type":393,"tag":554,"props":1300,"children":1301},{"style":566},[1302],{"type":398,"value":657},{"type":393,"tag":554,"props":1304,"children":1305},{"class":556,"line":83},[1306,1311,1315,1320,1324,1329,1333,1338],{"type":393,"tag":554,"props":1307,"children":1308},{"style":620},[1309],{"type":398,"value":1310},"    'years'",{"type":393,"tag":554,"props":1312,"children":1313},{"style":566},[1314],{"type":398,"value":628},{"type":393,"tag":554,"props":1316,"children":1317},{"style":672},[1318],{"type":398,"value":1319},"2",{"type":393,"tag":554,"props":1321,"children":1322},{"style":566},[1323],{"type":398,"value":638},{"type":393,"tag":554,"props":1325,"children":1326},{"style":672},[1327],{"type":398,"value":1328},"5",{"type":393,"tag":554,"props":1330,"children":1331},{"style":566},[1332],{"type":398,"value":638},{"type":393,"tag":554,"props":1334,"children":1335},{"style":672},[1336],{"type":398,"value":1337},"3",{"type":393,"tag":554,"props":1339,"children":1340},{"style":566},[1341],{"type":398,"value":775},{"type":393,"tag":554,"props":1343,"children":1344},{"class":556,"line":92},[1345],{"type":393,"tag":554,"props":1346,"children":1347},{"style":566},[1348],{"type":398,"value":783},{"type":393,"tag":554,"props":1350,"children":1351},{"class":556,"line":101},[1352],{"type":393,"tag":554,"props":1353,"children":1354},{"emptyLinePlaceholder":12},[1355],{"type":398,"value":587},{"type":393,"tag":554,"props":1357,"children":1358},{"class":556,"line":110},[1359,1363,1367,1372],{"type":393,"tag":554,"props":1360,"children":1361},{"style":672},[1362],{"type":398,"value":798},{"type":393,"tag":554,"props":1364,"children":1365},{"style":566},[1366],{"type":398,"value":803},{"type":393,"tag":554,"props":1368,"children":1369},{"style":620},[1370],{"type":398,"value":1371},"\"Employee Data:\"",{"type":393,"tag":554,"props":1373,"children":1374},{"style":566},[1375],{"type":398,"value":813},{"type":393,"tag":554,"props":1377,"children":1378},{"class":556,"line":121},[1379,1383],{"type":393,"tag":554,"props":1380,"children":1381},{"style":672},[1382],{"type":398,"value":798},{"type":393,"tag":554,"props":1384,"children":1385},{"style":566},[1386],{"type":398,"value":1387},"(employees)\n",{"type":393,"tag":554,"props":1389,"children":1390},{"class":556,"line":130},[1391,1395],{"type":393,"tag":554,"props":1392,"children":1393},{"style":672},[1394],{"type":398,"value":798},{"type":393,"tag":554,"props":1396,"children":1397},{"style":566},[1398],{"type":398,"value":837},{"type":393,"tag":554,"props":1400,"children":1401},{"class":556,"line":139},[1402],{"type":393,"tag":554,"props":1403,"children":1404},{"emptyLinePlaceholder":12},[1405],{"type":398,"value":587},{"type":393,"tag":554,"props":1407,"children":1408},{"class":556,"line":148},[1409,1413,1417,1422],{"type":393,"tag":554,"props":1410,"children":1411},{"style":672},[1412],{"type":398,"value":798},{"type":393,"tag":554,"props":1414,"children":1415},{"style":566},[1416],{"type":398,"value":803},{"type":393,"tag":554,"props":1418,"children":1419},{"style":620},[1420],{"type":398,"value":1421},"\"📋 Multiple Column Selection:\"",{"type":393,"tag":554,"props":1423,"children":1424},{"style":566},[1425],{"type":398,"value":813},{"type":393,"tag":554,"props":1427,"children":1428},{"class":556,"line":159},[1429,1433],{"type":393,"tag":554,"props":1430,"children":1431},{"style":672},[1432],{"type":398,"value":798},{"type":393,"tag":554,"props":1434,"children":1435},{"style":566},[1436],{"type":398,"value":837},{"type":393,"tag":554,"props":1438,"children":1439},{"class":556,"line":168},[1440],{"type":393,"tag":554,"props":1441,"children":1442},{"emptyLinePlaceholder":12},[1443],{"type":398,"value":587},{"type":393,"tag":554,"props":1445,"children":1446},{"class":556,"line":177},[1447],{"type":393,"tag":554,"props":1448,"children":1449},{"style":593},[1450],{"type":398,"value":1451},"# Select name and salary\n",{"type":393,"tag":554,"props":1453,"children":1454},{"class":556,"line":186},[1455,1460,1464,1469,1473,1477,1482],{"type":393,"tag":554,"props":1456,"children":1457},{"style":566},[1458],{"type":398,"value":1459},"basic_info ",{"type":393,"tag":554,"props":1461,"children":1462},{"style":560},[1463],{"type":398,"value":609},{"type":393,"tag":554,"props":1465,"children":1466},{"style":566},[1467],{"type":398,"value":1468}," employees[[",{"type":393,"tag":554,"props":1470,"children":1471},{"style":620},[1472],{"type":398,"value":912},{"type":393,"tag":554,"props":1474,"children":1475},{"style":566},[1476],{"type":398,"value":638},{"type":393,"tag":554,"props":1478,"children":1479},{"style":620},[1480],{"type":398,"value":1481},"'salary'",{"type":393,"tag":554,"props":1483,"children":1484},{"style":566},[1485],{"type":398,"value":1486},"]]\n",{"type":393,"tag":554,"props":1488,"children":1489},{"class":556,"line":197},[1490,1494,1498,1503],{"type":393,"tag":554,"props":1491,"children":1492},{"style":672},[1493],{"type":398,"value":798},{"type":393,"tag":554,"props":1495,"children":1496},{"style":566},[1497],{"type":398,"value":803},{"type":393,"tag":554,"props":1499,"children":1500},{"style":620},[1501],{"type":398,"value":1502},"\"Name and salary:\"",{"type":393,"tag":554,"props":1504,"children":1505},{"style":566},[1506],{"type":398,"value":813},{"type":393,"tag":554,"props":1508,"children":1509},{"class":556,"line":206},[1510,1514],{"type":393,"tag":554,"props":1511,"children":1512},{"style":672},[1513],{"type":398,"value":798},{"type":393,"tag":554,"props":1515,"children":1516},{"style":566},[1517],{"type":398,"value":1518},"(basic_info)\n",{"type":393,"tag":554,"props":1520,"children":1521},{"class":556,"line":215},[1522,1526],{"type":393,"tag":554,"props":1523,"children":1524},{"style":672},[1525],{"type":398,"value":798},{"type":393,"tag":554,"props":1527,"children":1528},{"style":566},[1529],{"type":398,"value":837},{"type":393,"tag":554,"props":1531,"children":1532},{"class":556,"line":224},[1533],{"type":393,"tag":554,"props":1534,"children":1535},{"emptyLinePlaceholder":12},[1536],{"type":398,"value":587},{"type":393,"tag":554,"props":1538,"children":1539},{"class":556,"line":233},[1540],{"type":393,"tag":554,"props":1541,"children":1542},{"style":593},[1543],{"type":398,"value":1544},"# Select name, department, and years\n",{"type":393,"tag":554,"props":1546,"children":1547},{"class":556,"line":244},[1548,1553,1557,1561,1565,1569,1574,1578,1583],{"type":393,"tag":554,"props":1549,"children":1550},{"style":566},[1551],{"type":398,"value":1552},"summary ",{"type":393,"tag":554,"props":1554,"children":1555},{"style":560},[1556],{"type":398,"value":609},{"type":393,"tag":554,"props":1558,"children":1559},{"style":566},[1560],{"type":398,"value":1468},{"type":393,"tag":554,"props":1562,"children":1563},{"style":620},[1564],{"type":398,"value":912},{"type":393,"tag":554,"props":1566,"children":1567},{"style":566},[1568],{"type":398,"value":638},{"type":393,"tag":554,"props":1570,"children":1571},{"style":620},[1572],{"type":398,"value":1573},"'department'",{"type":393,"tag":554,"props":1575,"children":1576},{"style":566},[1577],{"type":398,"value":638},{"type":393,"tag":554,"props":1579,"children":1580},{"style":620},[1581],{"type":398,"value":1582},"'years'",{"type":393,"tag":554,"props":1584,"children":1585},{"style":566},[1586],{"type":398,"value":1486},{"type":393,"tag":554,"props":1588,"children":1589},{"class":556,"line":253},[1590,1594,1598,1603],{"type":393,"tag":554,"props":1591,"children":1592},{"style":672},[1593],{"type":398,"value":798},{"type":393,"tag":554,"props":1595,"children":1596},{"style":566},[1597],{"type":398,"value":803},{"type":393,"tag":554,"props":1599,"children":1600},{"style":620},[1601],{"type":398,"value":1602},"\"Employee summary:\"",{"type":393,"tag":554,"props":1604,"children":1605},{"style":566},[1606],{"type":398,"value":813},{"type":393,"tag":554,"props":1608,"children":1609},{"class":556,"line":262},[1610,1614],{"type":393,"tag":554,"props":1611,"children":1612},{"style":672},[1613],{"type":398,"value":798},{"type":393,"tag":554,"props":1615,"children":1616},{"style":566},[1617],{"type":398,"value":1618},"(summary)\n",{"type":393,"tag":528,"props":1620,"children":1622},{"id":1621},"selecting-rows-by-position",[1623],{"type":398,"value":1624},"🔢 Selecting Rows by Position",{"type":393,"tag":401,"props":1626,"children":1627},{},[1628],{"type":398,"value":1629},"Select rows using their position (index):",{"type":393,"tag":540,"props":1631,"children":1632},{},[1633],{"type":393,"tag":544,"props":1634,"children":1636},{"className":546,"code":1635,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Product data\nproducts = pd.DataFrame({\n    'product': ['Laptop', 'Mouse', 'Keyboard', 'Monitor'],\n    'price': [999, 25, 75, 300],\n    'stock': [10, 50, 30, 8]\n})\n\nprint(\"Product Data:\")\nprint(products)\nprint()\n\nprint(\"🔢 Row Selection by Position:\")\nprint()\n\n# First row\nfirst_product = products.iloc[0]\nprint(\"First product:\")\nprint(first_product)\nprint()\n\n# First 2 rows\nfirst_two = products.iloc[0:2]\nprint(\"First 2 products:\")\nprint(first_two)\nprint()\n\n# Specific rows (1st and 3rd)\nselected = products.iloc[[0, 2]]\nprint(\"1st and 3rd products:\")\nprint(selected)\n",[1637],{"type":393,"tag":433,"props":1638,"children":1639},{"__ignoreMap":6},[1640,1659,1666,1674,1690,1738,1786,1834,1841,1848,1868,1880,1891,1898,1918,1929,1936,1944,1970,1990,2002,2013,2020,2028,2061,2081,2093,2104,2111,2119,2152,2172],{"type":393,"tag":554,"props":1641,"children":1642},{"class":556,"line":11},[1643,1647,1651,1655],{"type":393,"tag":554,"props":1644,"children":1645},{"style":560},[1646],{"type":398,"value":563},{"type":393,"tag":554,"props":1648,"children":1649},{"style":566},[1650],{"type":398,"value":569},{"type":393,"tag":554,"props":1652,"children":1653},{"style":560},[1654],{"type":398,"value":574},{"type":393,"tag":554,"props":1656,"children":1657},{"style":566},[1658],{"type":398,"value":579},{"type":393,"tag":554,"props":1660,"children":1661},{"class":556,"line":27},[1662],{"type":393,"tag":554,"props":1663,"children":1664},{"emptyLinePlaceholder":12},[1665],{"type":398,"value":587},{"type":393,"tag":554,"props":1667,"children":1668},{"class":556,"line":36},[1669],{"type":393,"tag":554,"props":1670,"children":1671},{"style":593},[1672],{"type":398,"value":1673},"# Product data\n",{"type":393,"tag":554,"props":1675,"children":1676},{"class":556,"line":45},[1677,1682,1686],{"type":393,"tag":554,"props":1678,"children":1679},{"style":566},[1680],{"type":398,"value":1681},"products ",{"type":393,"tag":554,"props":1683,"children":1684},{"style":560},[1685],{"type":398,"value":609},{"type":393,"tag":554,"props":1687,"children":1688},{"style":566},[1689],{"type":398,"value":614},{"type":393,"tag":554,"props":1691,"children":1692},{"class":556,"line":54},[1693,1698,1702,1707,1711,1716,1720,1725,1729,1734],{"type":393,"tag":554,"props":1694,"children":1695},{"style":620},[1696],{"type":398,"value":1697},"    'product'",{"type":393,"tag":554,"props":1699,"children":1700},{"style":566},[1701],{"type":398,"value":628},{"type":393,"tag":554,"props":1703,"children":1704},{"style":620},[1705],{"type":398,"value":1706},"'Laptop'",{"type":393,"tag":554,"props":1708,"children":1709},{"style":566},[1710],{"type":398,"value":638},{"type":393,"tag":554,"props":1712,"children":1713},{"style":620},[1714],{"type":398,"value":1715},"'Mouse'",{"type":393,"tag":554,"props":1717,"children":1718},{"style":566},[1719],{"type":398,"value":638},{"type":393,"tag":554,"props":1721,"children":1722},{"style":620},[1723],{"type":398,"value":1724},"'Keyboard'",{"type":393,"tag":554,"props":1726,"children":1727},{"style":566},[1728],{"type":398,"value":638},{"type":393,"tag":554,"props":1730,"children":1731},{"style":620},[1732],{"type":398,"value":1733},"'Monitor'",{"type":393,"tag":554,"props":1735,"children":1736},{"style":566},[1737],{"type":398,"value":657},{"type":393,"tag":554,"props":1739,"children":1740},{"class":556,"line":63},[1741,1746,1750,1755,1759,1764,1768,1773,1777,1782],{"type":393,"tag":554,"props":1742,"children":1743},{"style":620},[1744],{"type":398,"value":1745},"    'price'",{"type":393,"tag":554,"props":1747,"children":1748},{"style":566},[1749],{"type":398,"value":628},{"type":393,"tag":554,"props":1751,"children":1752},{"style":672},[1753],{"type":398,"value":1754},"999",{"type":393,"tag":554,"props":1756,"children":1757},{"style":566},[1758],{"type":398,"value":638},{"type":393,"tag":554,"props":1760,"children":1761},{"style":672},[1762],{"type":398,"value":1763},"25",{"type":393,"tag":554,"props":1765,"children":1766},{"style":566},[1767],{"type":398,"value":638},{"type":393,"tag":554,"props":1769,"children":1770},{"style":672},[1771],{"type":398,"value":1772},"75",{"type":393,"tag":554,"props":1774,"children":1775},{"style":566},[1776],{"type":398,"value":638},{"type":393,"tag":554,"props":1778,"children":1779},{"style":672},[1780],{"type":398,"value":1781},"300",{"type":393,"tag":554,"props":1783,"children":1784},{"style":566},[1785],{"type":398,"value":657},{"type":393,"tag":554,"props":1787,"children":1788},{"class":556,"line":72},[1789,1794,1798,1803,1807,1812,1816,1821,1825,1830],{"type":393,"tag":554,"props":1790,"children":1791},{"style":620},[1792],{"type":398,"value":1793},"    'stock'",{"type":393,"tag":554,"props":1795,"children":1796},{"style":566},[1797],{"type":398,"value":628},{"type":393,"tag":554,"props":1799,"children":1800},{"style":672},[1801],{"type":398,"value":1802},"10",{"type":393,"tag":554,"props":1804,"children":1805},{"style":566},[1806],{"type":398,"value":638},{"type":393,"tag":554,"props":1808,"children":1809},{"style":672},[1810],{"type":398,"value":1811},"50",{"type":393,"tag":554,"props":1813,"children":1814},{"style":566},[1815],{"type":398,"value":638},{"type":393,"tag":554,"props":1817,"children":1818},{"style":672},[1819],{"type":398,"value":1820},"30",{"type":393,"tag":554,"props":1822,"children":1823},{"style":566},[1824],{"type":398,"value":638},{"type":393,"tag":554,"props":1826,"children":1827},{"style":672},[1828],{"type":398,"value":1829},"8",{"type":393,"tag":554,"props":1831,"children":1832},{"style":566},[1833],{"type":398,"value":775},{"type":393,"tag":554,"props":1835,"children":1836},{"class":556,"line":83},[1837],{"type":393,"tag":554,"props":1838,"children":1839},{"style":566},[1840],{"type":398,"value":783},{"type":393,"tag":554,"props":1842,"children":1843},{"class":556,"line":92},[1844],{"type":393,"tag":554,"props":1845,"children":1846},{"emptyLinePlaceholder":12},[1847],{"type":398,"value":587},{"type":393,"tag":554,"props":1849,"children":1850},{"class":556,"line":101},[1851,1855,1859,1864],{"type":393,"tag":554,"props":1852,"children":1853},{"style":672},[1854],{"type":398,"value":798},{"type":393,"tag":554,"props":1856,"children":1857},{"style":566},[1858],{"type":398,"value":803},{"type":393,"tag":554,"props":1860,"children":1861},{"style":620},[1862],{"type":398,"value":1863},"\"Product Data:\"",{"type":393,"tag":554,"props":1865,"children":1866},{"style":566},[1867],{"type":398,"value":813},{"type":393,"tag":554,"props":1869,"children":1870},{"class":556,"line":110},[1871,1875],{"type":393,"tag":554,"props":1872,"children":1873},{"style":672},[1874],{"type":398,"value":798},{"type":393,"tag":554,"props":1876,"children":1877},{"style":566},[1878],{"type":398,"value":1879},"(products)\n",{"type":393,"tag":554,"props":1881,"children":1882},{"class":556,"line":121},[1883,1887],{"type":393,"tag":554,"props":1884,"children":1885},{"style":672},[1886],{"type":398,"value":798},{"type":393,"tag":554,"props":1888,"children":1889},{"style":566},[1890],{"type":398,"value":837},{"type":393,"tag":554,"props":1892,"children":1893},{"class":556,"line":130},[1894],{"type":393,"tag":554,"props":1895,"children":1896},{"emptyLinePlaceholder":12},[1897],{"type":398,"value":587},{"type":393,"tag":554,"props":1899,"children":1900},{"class":556,"line":139},[1901,1905,1909,1914],{"type":393,"tag":554,"props":1902,"children":1903},{"style":672},[1904],{"type":398,"value":798},{"type":393,"tag":554,"props":1906,"children":1907},{"style":566},[1908],{"type":398,"value":803},{"type":393,"tag":554,"props":1910,"children":1911},{"style":620},[1912],{"type":398,"value":1913},"\"🔢 Row Selection by Position:\"",{"type":393,"tag":554,"props":1915,"children":1916},{"style":566},[1917],{"type":398,"value":813},{"type":393,"tag":554,"props":1919,"children":1920},{"class":556,"line":148},[1921,1925],{"type":393,"tag":554,"props":1922,"children":1923},{"style":672},[1924],{"type":398,"value":798},{"type":393,"tag":554,"props":1926,"children":1927},{"style":566},[1928],{"type":398,"value":837},{"type":393,"tag":554,"props":1930,"children":1931},{"class":556,"line":159},[1932],{"type":393,"tag":554,"props":1933,"children":1934},{"emptyLinePlaceholder":12},[1935],{"type":398,"value":587},{"type":393,"tag":554,"props":1937,"children":1938},{"class":556,"line":168},[1939],{"type":393,"tag":554,"props":1940,"children":1941},{"style":593},[1942],{"type":398,"value":1943},"# First row\n",{"type":393,"tag":554,"props":1945,"children":1946},{"class":556,"line":177},[1947,1952,1956,1961,1966],{"type":393,"tag":554,"props":1948,"children":1949},{"style":566},[1950],{"type":398,"value":1951},"first_product ",{"type":393,"tag":554,"props":1953,"children":1954},{"style":560},[1955],{"type":398,"value":609},{"type":393,"tag":554,"props":1957,"children":1958},{"style":566},[1959],{"type":398,"value":1960}," products.iloc[",{"type":393,"tag":554,"props":1962,"children":1963},{"style":672},[1964],{"type":398,"value":1965},"0",{"type":393,"tag":554,"props":1967,"children":1968},{"style":566},[1969],{"type":398,"value":775},{"type":393,"tag":554,"props":1971,"children":1972},{"class":556,"line":186},[1973,1977,1981,1986],{"type":393,"tag":554,"props":1974,"children":1975},{"style":672},[1976],{"type":398,"value":798},{"type":393,"tag":554,"props":1978,"children":1979},{"style":566},[1980],{"type":398,"value":803},{"type":393,"tag":554,"props":1982,"children":1983},{"style":620},[1984],{"type":398,"value":1985},"\"First product:\"",{"type":393,"tag":554,"props":1987,"children":1988},{"style":566},[1989],{"type":398,"value":813},{"type":393,"tag":554,"props":1991,"children":1992},{"class":556,"line":197},[1993,1997],{"type":393,"tag":554,"props":1994,"children":1995},{"style":672},[1996],{"type":398,"value":798},{"type":393,"tag":554,"props":1998,"children":1999},{"style":566},[2000],{"type":398,"value":2001},"(first_product)\n",{"type":393,"tag":554,"props":2003,"children":2004},{"class":556,"line":206},[2005,2009],{"type":393,"tag":554,"props":2006,"children":2007},{"style":672},[2008],{"type":398,"value":798},{"type":393,"tag":554,"props":2010,"children":2011},{"style":566},[2012],{"type":398,"value":837},{"type":393,"tag":554,"props":2014,"children":2015},{"class":556,"line":215},[2016],{"type":393,"tag":554,"props":2017,"children":2018},{"emptyLinePlaceholder":12},[2019],{"type":398,"value":587},{"type":393,"tag":554,"props":2021,"children":2022},{"class":556,"line":224},[2023],{"type":393,"tag":554,"props":2024,"children":2025},{"style":593},[2026],{"type":398,"value":2027},"# First 2 rows\n",{"type":393,"tag":554,"props":2029,"children":2030},{"class":556,"line":233},[2031,2036,2040,2044,2048,2053,2057],{"type":393,"tag":554,"props":2032,"children":2033},{"style":566},[2034],{"type":398,"value":2035},"first_two ",{"type":393,"tag":554,"props":2037,"children":2038},{"style":560},[2039],{"type":398,"value":609},{"type":393,"tag":554,"props":2041,"children":2042},{"style":566},[2043],{"type":398,"value":1960},{"type":393,"tag":554,"props":2045,"children":2046},{"style":672},[2047],{"type":398,"value":1965},{"type":393,"tag":554,"props":2049,"children":2050},{"style":566},[2051],{"type":398,"value":2052},":",{"type":393,"tag":554,"props":2054,"children":2055},{"style":672},[2056],{"type":398,"value":1319},{"type":393,"tag":554,"props":2058,"children":2059},{"style":566},[2060],{"type":398,"value":775},{"type":393,"tag":554,"props":2062,"children":2063},{"class":556,"line":244},[2064,2068,2072,2077],{"type":393,"tag":554,"props":2065,"children":2066},{"style":672},[2067],{"type":398,"value":798},{"type":393,"tag":554,"props":2069,"children":2070},{"style":566},[2071],{"type":398,"value":803},{"type":393,"tag":554,"props":2073,"children":2074},{"style":620},[2075],{"type":398,"value":2076},"\"First 2 products:\"",{"type":393,"tag":554,"props":2078,"children":2079},{"style":566},[2080],{"type":398,"value":813},{"type":393,"tag":554,"props":2082,"children":2083},{"class":556,"line":253},[2084,2088],{"type":393,"tag":554,"props":2085,"children":2086},{"style":672},[2087],{"type":398,"value":798},{"type":393,"tag":554,"props":2089,"children":2090},{"style":566},[2091],{"type":398,"value":2092},"(first_two)\n",{"type":393,"tag":554,"props":2094,"children":2095},{"class":556,"line":262},[2096,2100],{"type":393,"tag":554,"props":2097,"children":2098},{"style":672},[2099],{"type":398,"value":798},{"type":393,"tag":554,"props":2101,"children":2102},{"style":566},[2103],{"type":398,"value":837},{"type":393,"tag":554,"props":2105,"children":2106},{"class":556,"line":271},[2107],{"type":393,"tag":554,"props":2108,"children":2109},{"emptyLinePlaceholder":12},[2110],{"type":398,"value":587},{"type":393,"tag":554,"props":2112,"children":2113},{"class":556,"line":281},[2114],{"type":393,"tag":554,"props":2115,"children":2116},{"style":593},[2117],{"type":398,"value":2118},"# Specific rows (1st and 3rd)\n",{"type":393,"tag":554,"props":2120,"children":2121},{"class":556,"line":290},[2122,2127,2131,2136,2140,2144,2148],{"type":393,"tag":554,"props":2123,"children":2124},{"style":566},[2125],{"type":398,"value":2126},"selected ",{"type":393,"tag":554,"props":2128,"children":2129},{"style":560},[2130],{"type":398,"value":609},{"type":393,"tag":554,"props":2132,"children":2133},{"style":566},[2134],{"type":398,"value":2135}," products.iloc[[",{"type":393,"tag":554,"props":2137,"children":2138},{"style":672},[2139],{"type":398,"value":1965},{"type":393,"tag":554,"props":2141,"children":2142},{"style":566},[2143],{"type":398,"value":638},{"type":393,"tag":554,"props":2145,"children":2146},{"style":672},[2147],{"type":398,"value":1319},{"type":393,"tag":554,"props":2149,"children":2150},{"style":566},[2151],{"type":398,"value":1486},{"type":393,"tag":554,"props":2153,"children":2154},{"class":556,"line":299},[2155,2159,2163,2168],{"type":393,"tag":554,"props":2156,"children":2157},{"style":672},[2158],{"type":398,"value":798},{"type":393,"tag":554,"props":2160,"children":2161},{"style":566},[2162],{"type":398,"value":803},{"type":393,"tag":554,"props":2164,"children":2165},{"style":620},[2166],{"type":398,"value":2167},"\"1st and 3rd products:\"",{"type":393,"tag":554,"props":2169,"children":2170},{"style":566},[2171],{"type":398,"value":813},{"type":393,"tag":554,"props":2173,"children":2174},{"class":556,"line":308},[2175,2179],{"type":393,"tag":554,"props":2176,"children":2177},{"style":672},[2178],{"type":398,"value":798},{"type":393,"tag":554,"props":2180,"children":2181},{"style":566},[2182],{"type":398,"value":2183},"(selected)\n",{"type":393,"tag":528,"props":2185,"children":2187},{"id":2186},"combining-column-and-row-selection",[2188],{"type":398,"value":2189},"🎯 Combining Column and Row Selection",{"type":393,"tag":401,"props":2191,"children":2192},{},[2193],{"type":398,"value":2194},"Select specific rows AND specific columns:",{"type":393,"tag":540,"props":2196,"children":2197},{},[2198],{"type":393,"tag":544,"props":2199,"children":2201},{"className":546,"code":2200,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Survey data\nsurvey = pd.DataFrame({\n    'respondent': ['Person1', 'Person2', 'Person3', 'Person4'],\n    'age': [25, 34, 28, 45],\n    'satisfaction': [4, 5, 3, 4],\n    'city': ['NYC', 'LA', 'Chicago', 'Miami']\n})\n\nprint(\"Survey Data:\")\nprint(survey)\nprint()\n\nprint(\"🎯 Combined Selection:\")\nprint()\n\n# First 2 people, age and satisfaction only\nsubset = survey.iloc[0:2][['age', 'satisfaction']]\nprint(\"First 2 respondents - age and satisfaction:\")\nprint(subset)\nprint()\n\n# Specific people and columns\nspecific = survey.iloc[[0, 3]][['respondent', 'city']]\nprint(\"1st and 4th respondent - name and city:\")\nprint(specific)\n",[2202],{"type":393,"tag":433,"props":2203,"children":2204},{"__ignoreMap":6},[2205,2224,2231,2239,2255,2303,2349,2394,2442,2449,2456,2476,2488,2499,2506,2526,2537,2544,2552,2604,2624,2636,2647,2654,2662,2714,2734],{"type":393,"tag":554,"props":2206,"children":2207},{"class":556,"line":11},[2208,2212,2216,2220],{"type":393,"tag":554,"props":2209,"children":2210},{"style":560},[2211],{"type":398,"value":563},{"type":393,"tag":554,"props":2213,"children":2214},{"style":566},[2215],{"type":398,"value":569},{"type":393,"tag":554,"props":2217,"children":2218},{"style":560},[2219],{"type":398,"value":574},{"type":393,"tag":554,"props":2221,"children":2222},{"style":566},[2223],{"type":398,"value":579},{"type":393,"tag":554,"props":2225,"children":2226},{"class":556,"line":27},[2227],{"type":393,"tag":554,"props":2228,"children":2229},{"emptyLinePlaceholder":12},[2230],{"type":398,"value":587},{"type":393,"tag":554,"props":2232,"children":2233},{"class":556,"line":36},[2234],{"type":393,"tag":554,"props":2235,"children":2236},{"style":593},[2237],{"type":398,"value":2238},"# Survey data\n",{"type":393,"tag":554,"props":2240,"children":2241},{"class":556,"line":45},[2242,2247,2251],{"type":393,"tag":554,"props":2243,"children":2244},{"style":566},[2245],{"type":398,"value":2246},"survey ",{"type":393,"tag":554,"props":2248,"children":2249},{"style":560},[2250],{"type":398,"value":609},{"type":393,"tag":554,"props":2252,"children":2253},{"style":566},[2254],{"type":398,"value":614},{"type":393,"tag":554,"props":2256,"children":2257},{"class":556,"line":54},[2258,2263,2267,2272,2276,2281,2285,2290,2294,2299],{"type":393,"tag":554,"props":2259,"children":2260},{"style":620},[2261],{"type":398,"value":2262},"    'respondent'",{"type":393,"tag":554,"props":2264,"children":2265},{"style":566},[2266],{"type":398,"value":628},{"type":393,"tag":554,"props":2268,"children":2269},{"style":620},[2270],{"type":398,"value":2271},"'Person1'",{"type":393,"tag":554,"props":2273,"children":2274},{"style":566},[2275],{"type":398,"value":638},{"type":393,"tag":554,"props":2277,"children":2278},{"style":620},[2279],{"type":398,"value":2280},"'Person2'",{"type":393,"tag":554,"props":2282,"children":2283},{"style":566},[2284],{"type":398,"value":638},{"type":393,"tag":554,"props":2286,"children":2287},{"style":620},[2288],{"type":398,"value":2289},"'Person3'",{"type":393,"tag":554,"props":2291,"children":2292},{"style":566},[2293],{"type":398,"value":638},{"type":393,"tag":554,"props":2295,"children":2296},{"style":620},[2297],{"type":398,"value":2298},"'Person4'",{"type":393,"tag":554,"props":2300,"children":2301},{"style":566},[2302],{"type":398,"value":657},{"type":393,"tag":554,"props":2304,"children":2305},{"class":556,"line":63},[2306,2310,2314,2318,2322,2327,2331,2336,2340,2345],{"type":393,"tag":554,"props":2307,"children":2308},{"style":620},[2309],{"type":398,"value":665},{"type":393,"tag":554,"props":2311,"children":2312},{"style":566},[2313],{"type":398,"value":628},{"type":393,"tag":554,"props":2315,"children":2316},{"style":672},[2317],{"type":398,"value":1763},{"type":393,"tag":554,"props":2319,"children":2320},{"style":566},[2321],{"type":398,"value":638},{"type":393,"tag":554,"props":2323,"children":2324},{"style":672},[2325],{"type":398,"value":2326},"34",{"type":393,"tag":554,"props":2328,"children":2329},{"style":566},[2330],{"type":398,"value":638},{"type":393,"tag":554,"props":2332,"children":2333},{"style":672},[2334],{"type":398,"value":2335},"28",{"type":393,"tag":554,"props":2337,"children":2338},{"style":566},[2339],{"type":398,"value":638},{"type":393,"tag":554,"props":2341,"children":2342},{"style":672},[2343],{"type":398,"value":2344},"45",{"type":393,"tag":554,"props":2346,"children":2347},{"style":566},[2348],{"type":398,"value":657},{"type":393,"tag":554,"props":2350,"children":2351},{"class":556,"line":72},[2352,2357,2361,2366,2370,2374,2378,2382,2386,2390],{"type":393,"tag":554,"props":2353,"children":2354},{"style":620},[2355],{"type":398,"value":2356},"    'satisfaction'",{"type":393,"tag":554,"props":2358,"children":2359},{"style":566},[2360],{"type":398,"value":628},{"type":393,"tag":554,"props":2362,"children":2363},{"style":672},[2364],{"type":398,"value":2365},"4",{"type":393,"tag":554,"props":2367,"children":2368},{"style":566},[2369],{"type":398,"value":638},{"type":393,"tag":554,"props":2371,"children":2372},{"style":672},[2373],{"type":398,"value":1328},{"type":393,"tag":554,"props":2375,"children":2376},{"style":566},[2377],{"type":398,"value":638},{"type":393,"tag":554,"props":2379,"children":2380},{"style":672},[2381],{"type":398,"value":1337},{"type":393,"tag":554,"props":2383,"children":2384},{"style":566},[2385],{"type":398,"value":638},{"type":393,"tag":554,"props":2387,"children":2388},{"style":672},[2389],{"type":398,"value":2365},{"type":393,"tag":554,"props":2391,"children":2392},{"style":566},[2393],{"type":398,"value":657},{"type":393,"tag":554,"props":2395,"children":2396},{"class":556,"line":83},[2397,2402,2406,2411,2415,2420,2424,2429,2433,2438],{"type":393,"tag":554,"props":2398,"children":2399},{"style":620},[2400],{"type":398,"value":2401},"    'city'",{"type":393,"tag":554,"props":2403,"children":2404},{"style":566},[2405],{"type":398,"value":628},{"type":393,"tag":554,"props":2407,"children":2408},{"style":620},[2409],{"type":398,"value":2410},"'NYC'",{"type":393,"tag":554,"props":2412,"children":2413},{"style":566},[2414],{"type":398,"value":638},{"type":393,"tag":554,"props":2416,"children":2417},{"style":620},[2418],{"type":398,"value":2419},"'LA'",{"type":393,"tag":554,"props":2421,"children":2422},{"style":566},[2423],{"type":398,"value":638},{"type":393,"tag":554,"props":2425,"children":2426},{"style":620},[2427],{"type":398,"value":2428},"'Chicago'",{"type":393,"tag":554,"props":2430,"children":2431},{"style":566},[2432],{"type":398,"value":638},{"type":393,"tag":554,"props":2434,"children":2435},{"style":620},[2436],{"type":398,"value":2437},"'Miami'",{"type":393,"tag":554,"props":2439,"children":2440},{"style":566},[2441],{"type":398,"value":775},{"type":393,"tag":554,"props":2443,"children":2444},{"class":556,"line":92},[2445],{"type":393,"tag":554,"props":2446,"children":2447},{"style":566},[2448],{"type":398,"value":783},{"type":393,"tag":554,"props":2450,"children":2451},{"class":556,"line":101},[2452],{"type":393,"tag":554,"props":2453,"children":2454},{"emptyLinePlaceholder":12},[2455],{"type":398,"value":587},{"type":393,"tag":554,"props":2457,"children":2458},{"class":556,"line":110},[2459,2463,2467,2472],{"type":393,"tag":554,"props":2460,"children":2461},{"style":672},[2462],{"type":398,"value":798},{"type":393,"tag":554,"props":2464,"children":2465},{"style":566},[2466],{"type":398,"value":803},{"type":393,"tag":554,"props":2468,"children":2469},{"style":620},[2470],{"type":398,"value":2471},"\"Survey Data:\"",{"type":393,"tag":554,"props":2473,"children":2474},{"style":566},[2475],{"type":398,"value":813},{"type":393,"tag":554,"props":2477,"children":2478},{"class":556,"line":121},[2479,2483],{"type":393,"tag":554,"props":2480,"children":2481},{"style":672},[2482],{"type":398,"value":798},{"type":393,"tag":554,"props":2484,"children":2485},{"style":566},[2486],{"type":398,"value":2487},"(survey)\n",{"type":393,"tag":554,"props":2489,"children":2490},{"class":556,"line":130},[2491,2495],{"type":393,"tag":554,"props":2492,"children":2493},{"style":672},[2494],{"type":398,"value":798},{"type":393,"tag":554,"props":2496,"children":2497},{"style":566},[2498],{"type":398,"value":837},{"type":393,"tag":554,"props":2500,"children":2501},{"class":556,"line":139},[2502],{"type":393,"tag":554,"props":2503,"children":2504},{"emptyLinePlaceholder":12},[2505],{"type":398,"value":587},{"type":393,"tag":554,"props":2507,"children":2508},{"class":556,"line":148},[2509,2513,2517,2522],{"type":393,"tag":554,"props":2510,"children":2511},{"style":672},[2512],{"type":398,"value":798},{"type":393,"tag":554,"props":2514,"children":2515},{"style":566},[2516],{"type":398,"value":803},{"type":393,"tag":554,"props":2518,"children":2519},{"style":620},[2520],{"type":398,"value":2521},"\"🎯 Combined Selection:\"",{"type":393,"tag":554,"props":2523,"children":2524},{"style":566},[2525],{"type":398,"value":813},{"type":393,"tag":554,"props":2527,"children":2528},{"class":556,"line":159},[2529,2533],{"type":393,"tag":554,"props":2530,"children":2531},{"style":672},[2532],{"type":398,"value":798},{"type":393,"tag":554,"props":2534,"children":2535},{"style":566},[2536],{"type":398,"value":837},{"type":393,"tag":554,"props":2538,"children":2539},{"class":556,"line":168},[2540],{"type":393,"tag":554,"props":2541,"children":2542},{"emptyLinePlaceholder":12},[2543],{"type":398,"value":587},{"type":393,"tag":554,"props":2545,"children":2546},{"class":556,"line":177},[2547],{"type":393,"tag":554,"props":2548,"children":2549},{"style":593},[2550],{"type":398,"value":2551},"# First 2 people, age and satisfaction only\n",{"type":393,"tag":554,"props":2553,"children":2554},{"class":556,"line":186},[2555,2560,2564,2569,2573,2577,2581,2586,2591,2595,2600],{"type":393,"tag":554,"props":2556,"children":2557},{"style":566},[2558],{"type":398,"value":2559},"subset ",{"type":393,"tag":554,"props":2561,"children":2562},{"style":560},[2563],{"type":398,"value":609},{"type":393,"tag":554,"props":2565,"children":2566},{"style":566},[2567],{"type":398,"value":2568}," survey.iloc[",{"type":393,"tag":554,"props":2570,"children":2571},{"style":672},[2572],{"type":398,"value":1965},{"type":393,"tag":554,"props":2574,"children":2575},{"style":566},[2576],{"type":398,"value":2052},{"type":393,"tag":554,"props":2578,"children":2579},{"style":672},[2580],{"type":398,"value":1319},{"type":393,"tag":554,"props":2582,"children":2583},{"style":566},[2584],{"type":398,"value":2585},"][[",{"type":393,"tag":554,"props":2587,"children":2588},{"style":620},[2589],{"type":398,"value":2590},"'age'",{"type":393,"tag":554,"props":2592,"children":2593},{"style":566},[2594],{"type":398,"value":638},{"type":393,"tag":554,"props":2596,"children":2597},{"style":620},[2598],{"type":398,"value":2599},"'satisfaction'",{"type":393,"tag":554,"props":2601,"children":2602},{"style":566},[2603],{"type":398,"value":1486},{"type":393,"tag":554,"props":2605,"children":2606},{"class":556,"line":197},[2607,2611,2615,2620],{"type":393,"tag":554,"props":2608,"children":2609},{"style":672},[2610],{"type":398,"value":798},{"type":393,"tag":554,"props":2612,"children":2613},{"style":566},[2614],{"type":398,"value":803},{"type":393,"tag":554,"props":2616,"children":2617},{"style":620},[2618],{"type":398,"value":2619},"\"First 2 respondents - age and satisfaction:\"",{"type":393,"tag":554,"props":2621,"children":2622},{"style":566},[2623],{"type":398,"value":813},{"type":393,"tag":554,"props":2625,"children":2626},{"class":556,"line":206},[2627,2631],{"type":393,"tag":554,"props":2628,"children":2629},{"style":672},[2630],{"type":398,"value":798},{"type":393,"tag":554,"props":2632,"children":2633},{"style":566},[2634],{"type":398,"value":2635},"(subset)\n",{"type":393,"tag":554,"props":2637,"children":2638},{"class":556,"line":215},[2639,2643],{"type":393,"tag":554,"props":2640,"children":2641},{"style":672},[2642],{"type":398,"value":798},{"type":393,"tag":554,"props":2644,"children":2645},{"style":566},[2646],{"type":398,"value":837},{"type":393,"tag":554,"props":2648,"children":2649},{"class":556,"line":224},[2650],{"type":393,"tag":554,"props":2651,"children":2652},{"emptyLinePlaceholder":12},[2653],{"type":398,"value":587},{"type":393,"tag":554,"props":2655,"children":2656},{"class":556,"line":233},[2657],{"type":393,"tag":554,"props":2658,"children":2659},{"style":593},[2660],{"type":398,"value":2661},"# Specific people and columns\n",{"type":393,"tag":554,"props":2663,"children":2664},{"class":556,"line":244},[2665,2670,2674,2679,2683,2687,2691,2696,2701,2705,2710],{"type":393,"tag":554,"props":2666,"children":2667},{"style":566},[2668],{"type":398,"value":2669},"specific ",{"type":393,"tag":554,"props":2671,"children":2672},{"style":560},[2673],{"type":398,"value":609},{"type":393,"tag":554,"props":2675,"children":2676},{"style":566},[2677],{"type":398,"value":2678}," survey.iloc[[",{"type":393,"tag":554,"props":2680,"children":2681},{"style":672},[2682],{"type":398,"value":1965},{"type":393,"tag":554,"props":2684,"children":2685},{"style":566},[2686],{"type":398,"value":638},{"type":393,"tag":554,"props":2688,"children":2689},{"style":672},[2690],{"type":398,"value":1337},{"type":393,"tag":554,"props":2692,"children":2693},{"style":566},[2694],{"type":398,"value":2695},"]][[",{"type":393,"tag":554,"props":2697,"children":2698},{"style":620},[2699],{"type":398,"value":2700},"'respondent'",{"type":393,"tag":554,"props":2702,"children":2703},{"style":566},[2704],{"type":398,"value":638},{"type":393,"tag":554,"props":2706,"children":2707},{"style":620},[2708],{"type":398,"value":2709},"'city'",{"type":393,"tag":554,"props":2711,"children":2712},{"style":566},[2713],{"type":398,"value":1486},{"type":393,"tag":554,"props":2715,"children":2716},{"class":556,"line":253},[2717,2721,2725,2730],{"type":393,"tag":554,"props":2718,"children":2719},{"style":672},[2720],{"type":398,"value":798},{"type":393,"tag":554,"props":2722,"children":2723},{"style":566},[2724],{"type":398,"value":803},{"type":393,"tag":554,"props":2726,"children":2727},{"style":620},[2728],{"type":398,"value":2729},"\"1st and 4th respondent - name and city:\"",{"type":393,"tag":554,"props":2731,"children":2732},{"style":566},[2733],{"type":398,"value":813},{"type":393,"tag":554,"props":2735,"children":2736},{"class":556,"line":262},[2737,2741],{"type":393,"tag":554,"props":2738,"children":2739},{"style":672},[2740],{"type":398,"value":798},{"type":393,"tag":554,"props":2742,"children":2743},{"style":566},[2744],{"type":398,"value":2745},"(specific)\n",{"type":393,"tag":528,"props":2747,"children":2749},{"id":2748},"column-selection-patterns",[2750],{"type":398,"value":2751},"📋 Column Selection Patterns",{"type":393,"tag":401,"props":2753,"children":2754},{},[2755],{"type":398,"value":2756},"Common patterns you'll use all the time:",{"type":393,"tag":540,"props":2758,"children":2759},{},[2760],{"type":393,"tag":544,"props":2761,"children":2763},{"className":546,"code":2762,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Sales data\nsales = pd.DataFrame({\n    'date': ['2023-01-01', '2023-01-02', '2023-01-03'],\n    'product': ['A', 'B', 'C'],\n    'quantity': [10, 5, 8],\n    'revenue': [1000, 500, 800],\n    'region': ['North', 'South', 'North']\n})\n\nprint(\"Sales Data:\")\nprint(sales)\nprint()\n\nprint(\"📋 Common Column Patterns:\")\nprint()\n\n# Pattern 1: Key metrics only\nmetrics = sales[['product', 'revenue']]\nprint(\"1️⃣ Key metrics:\")\nprint(metrics)\nprint()\n\n# Pattern 2: All except one column\n# (Select all columns except 'date')\nno_date = sales[['product', 'quantity', 'revenue', 'region']]\nprint(\"2️⃣ Everything except date:\")\nprint(no_date)\nprint()\n\n# Pattern 3: Related columns\nfinancials = sales[['product', 'quantity', 'revenue']]\nprint(\"3️⃣ Financial data:\")\nprint(financials)\n",[2764],{"type":393,"tag":433,"props":2765,"children":2766},{"__ignoreMap":6},[2767,2786,2793,2801,2817,2856,2892,2928,2967,3005,3012,3019,3039,3051,3062,3069,3089,3100,3107,3115,3150,3170,3182,3193,3200,3208,3216,3266,3286,3298,3309,3316,3324,3364,3384],{"type":393,"tag":554,"props":2768,"children":2769},{"class":556,"line":11},[2770,2774,2778,2782],{"type":393,"tag":554,"props":2771,"children":2772},{"style":560},[2773],{"type":398,"value":563},{"type":393,"tag":554,"props":2775,"children":2776},{"style":566},[2777],{"type":398,"value":569},{"type":393,"tag":554,"props":2779,"children":2780},{"style":560},[2781],{"type":398,"value":574},{"type":393,"tag":554,"props":2783,"children":2784},{"style":566},[2785],{"type":398,"value":579},{"type":393,"tag":554,"props":2787,"children":2788},{"class":556,"line":27},[2789],{"type":393,"tag":554,"props":2790,"children":2791},{"emptyLinePlaceholder":12},[2792],{"type":398,"value":587},{"type":393,"tag":554,"props":2794,"children":2795},{"class":556,"line":36},[2796],{"type":393,"tag":554,"props":2797,"children":2798},{"style":593},[2799],{"type":398,"value":2800},"# Sales data\n",{"type":393,"tag":554,"props":2802,"children":2803},{"class":556,"line":45},[2804,2809,2813],{"type":393,"tag":554,"props":2805,"children":2806},{"style":566},[2807],{"type":398,"value":2808},"sales ",{"type":393,"tag":554,"props":2810,"children":2811},{"style":560},[2812],{"type":398,"value":609},{"type":393,"tag":554,"props":2814,"children":2815},{"style":566},[2816],{"type":398,"value":614},{"type":393,"tag":554,"props":2818,"children":2819},{"class":556,"line":54},[2820,2825,2829,2834,2838,2843,2847,2852],{"type":393,"tag":554,"props":2821,"children":2822},{"style":620},[2823],{"type":398,"value":2824},"    'date'",{"type":393,"tag":554,"props":2826,"children":2827},{"style":566},[2828],{"type":398,"value":628},{"type":393,"tag":554,"props":2830,"children":2831},{"style":620},[2832],{"type":398,"value":2833},"'2023-01-01'",{"type":393,"tag":554,"props":2835,"children":2836},{"style":566},[2837],{"type":398,"value":638},{"type":393,"tag":554,"props":2839,"children":2840},{"style":620},[2841],{"type":398,"value":2842},"'2023-01-02'",{"type":393,"tag":554,"props":2844,"children":2845},{"style":566},[2846],{"type":398,"value":638},{"type":393,"tag":554,"props":2848,"children":2849},{"style":620},[2850],{"type":398,"value":2851},"'2023-01-03'",{"type":393,"tag":554,"props":2853,"children":2854},{"style":566},[2855],{"type":398,"value":657},{"type":393,"tag":554,"props":2857,"children":2858},{"class":556,"line":63},[2859,2863,2867,2871,2875,2879,2883,2888],{"type":393,"tag":554,"props":2860,"children":2861},{"style":620},[2862],{"type":398,"value":1697},{"type":393,"tag":554,"props":2864,"children":2865},{"style":566},[2866],{"type":398,"value":628},{"type":393,"tag":554,"props":2868,"children":2869},{"style":620},[2870],{"type":398,"value":714},{"type":393,"tag":554,"props":2872,"children":2873},{"style":566},[2874],{"type":398,"value":638},{"type":393,"tag":554,"props":2876,"children":2877},{"style":620},[2878],{"type":398,"value":723},{"type":393,"tag":554,"props":2880,"children":2881},{"style":566},[2882],{"type":398,"value":638},{"type":393,"tag":554,"props":2884,"children":2885},{"style":620},[2886],{"type":398,"value":2887},"'C'",{"type":393,"tag":554,"props":2889,"children":2890},{"style":566},[2891],{"type":398,"value":657},{"type":393,"tag":554,"props":2893,"children":2894},{"class":556,"line":72},[2895,2900,2904,2908,2912,2916,2920,2924],{"type":393,"tag":554,"props":2896,"children":2897},{"style":620},[2898],{"type":398,"value":2899},"    'quantity'",{"type":393,"tag":554,"props":2901,"children":2902},{"style":566},[2903],{"type":398,"value":628},{"type":393,"tag":554,"props":2905,"children":2906},{"style":672},[2907],{"type":398,"value":1802},{"type":393,"tag":554,"props":2909,"children":2910},{"style":566},[2911],{"type":398,"value":638},{"type":393,"tag":554,"props":2913,"children":2914},{"style":672},[2915],{"type":398,"value":1328},{"type":393,"tag":554,"props":2917,"children":2918},{"style":566},[2919],{"type":398,"value":638},{"type":393,"tag":554,"props":2921,"children":2922},{"style":672},[2923],{"type":398,"value":1829},{"type":393,"tag":554,"props":2925,"children":2926},{"style":566},[2927],{"type":398,"value":657},{"type":393,"tag":554,"props":2929,"children":2930},{"class":556,"line":83},[2931,2936,2940,2945,2949,2954,2958,2963],{"type":393,"tag":554,"props":2932,"children":2933},{"style":620},[2934],{"type":398,"value":2935},"    'revenue'",{"type":393,"tag":554,"props":2937,"children":2938},{"style":566},[2939],{"type":398,"value":628},{"type":393,"tag":554,"props":2941,"children":2942},{"style":672},[2943],{"type":398,"value":2944},"1000",{"type":393,"tag":554,"props":2946,"children":2947},{"style":566},[2948],{"type":398,"value":638},{"type":393,"tag":554,"props":2950,"children":2951},{"style":672},[2952],{"type":398,"value":2953},"500",{"type":393,"tag":554,"props":2955,"children":2956},{"style":566},[2957],{"type":398,"value":638},{"type":393,"tag":554,"props":2959,"children":2960},{"style":672},[2961],{"type":398,"value":2962},"800",{"type":393,"tag":554,"props":2964,"children":2965},{"style":566},[2966],{"type":398,"value":657},{"type":393,"tag":554,"props":2968,"children":2969},{"class":556,"line":92},[2970,2975,2979,2984,2988,2993,2997,3001],{"type":393,"tag":554,"props":2971,"children":2972},{"style":620},[2973],{"type":398,"value":2974},"    'region'",{"type":393,"tag":554,"props":2976,"children":2977},{"style":566},[2978],{"type":398,"value":628},{"type":393,"tag":554,"props":2980,"children":2981},{"style":620},[2982],{"type":398,"value":2983},"'North'",{"type":393,"tag":554,"props":2985,"children":2986},{"style":566},[2987],{"type":398,"value":638},{"type":393,"tag":554,"props":2989,"children":2990},{"style":620},[2991],{"type":398,"value":2992},"'South'",{"type":393,"tag":554,"props":2994,"children":2995},{"style":566},[2996],{"type":398,"value":638},{"type":393,"tag":554,"props":2998,"children":2999},{"style":620},[3000],{"type":398,"value":2983},{"type":393,"tag":554,"props":3002,"children":3003},{"style":566},[3004],{"type":398,"value":775},{"type":393,"tag":554,"props":3006,"children":3007},{"class":556,"line":101},[3008],{"type":393,"tag":554,"props":3009,"children":3010},{"style":566},[3011],{"type":398,"value":783},{"type":393,"tag":554,"props":3013,"children":3014},{"class":556,"line":110},[3015],{"type":393,"tag":554,"props":3016,"children":3017},{"emptyLinePlaceholder":12},[3018],{"type":398,"value":587},{"type":393,"tag":554,"props":3020,"children":3021},{"class":556,"line":121},[3022,3026,3030,3035],{"type":393,"tag":554,"props":3023,"children":3024},{"style":672},[3025],{"type":398,"value":798},{"type":393,"tag":554,"props":3027,"children":3028},{"style":566},[3029],{"type":398,"value":803},{"type":393,"tag":554,"props":3031,"children":3032},{"style":620},[3033],{"type":398,"value":3034},"\"Sales Data:\"",{"type":393,"tag":554,"props":3036,"children":3037},{"style":566},[3038],{"type":398,"value":813},{"type":393,"tag":554,"props":3040,"children":3041},{"class":556,"line":130},[3042,3046],{"type":393,"tag":554,"props":3043,"children":3044},{"style":672},[3045],{"type":398,"value":798},{"type":393,"tag":554,"props":3047,"children":3048},{"style":566},[3049],{"type":398,"value":3050},"(sales)\n",{"type":393,"tag":554,"props":3052,"children":3053},{"class":556,"line":139},[3054,3058],{"type":393,"tag":554,"props":3055,"children":3056},{"style":672},[3057],{"type":398,"value":798},{"type":393,"tag":554,"props":3059,"children":3060},{"style":566},[3061],{"type":398,"value":837},{"type":393,"tag":554,"props":3063,"children":3064},{"class":556,"line":148},[3065],{"type":393,"tag":554,"props":3066,"children":3067},{"emptyLinePlaceholder":12},[3068],{"type":398,"value":587},{"type":393,"tag":554,"props":3070,"children":3071},{"class":556,"line":159},[3072,3076,3080,3085],{"type":393,"tag":554,"props":3073,"children":3074},{"style":672},[3075],{"type":398,"value":798},{"type":393,"tag":554,"props":3077,"children":3078},{"style":566},[3079],{"type":398,"value":803},{"type":393,"tag":554,"props":3081,"children":3082},{"style":620},[3083],{"type":398,"value":3084},"\"📋 Common Column Patterns:\"",{"type":393,"tag":554,"props":3086,"children":3087},{"style":566},[3088],{"type":398,"value":813},{"type":393,"tag":554,"props":3090,"children":3091},{"class":556,"line":168},[3092,3096],{"type":393,"tag":554,"props":3093,"children":3094},{"style":672},[3095],{"type":398,"value":798},{"type":393,"tag":554,"props":3097,"children":3098},{"style":566},[3099],{"type":398,"value":837},{"type":393,"tag":554,"props":3101,"children":3102},{"class":556,"line":177},[3103],{"type":393,"tag":554,"props":3104,"children":3105},{"emptyLinePlaceholder":12},[3106],{"type":398,"value":587},{"type":393,"tag":554,"props":3108,"children":3109},{"class":556,"line":186},[3110],{"type":393,"tag":554,"props":3111,"children":3112},{"style":593},[3113],{"type":398,"value":3114},"# Pattern 1: Key metrics only\n",{"type":393,"tag":554,"props":3116,"children":3117},{"class":556,"line":197},[3118,3123,3127,3132,3137,3141,3146],{"type":393,"tag":554,"props":3119,"children":3120},{"style":566},[3121],{"type":398,"value":3122},"metrics ",{"type":393,"tag":554,"props":3124,"children":3125},{"style":560},[3126],{"type":398,"value":609},{"type":393,"tag":554,"props":3128,"children":3129},{"style":566},[3130],{"type":398,"value":3131}," sales[[",{"type":393,"tag":554,"props":3133,"children":3134},{"style":620},[3135],{"type":398,"value":3136},"'product'",{"type":393,"tag":554,"props":3138,"children":3139},{"style":566},[3140],{"type":398,"value":638},{"type":393,"tag":554,"props":3142,"children":3143},{"style":620},[3144],{"type":398,"value":3145},"'revenue'",{"type":393,"tag":554,"props":3147,"children":3148},{"style":566},[3149],{"type":398,"value":1486},{"type":393,"tag":554,"props":3151,"children":3152},{"class":556,"line":206},[3153,3157,3161,3166],{"type":393,"tag":554,"props":3154,"children":3155},{"style":672},[3156],{"type":398,"value":798},{"type":393,"tag":554,"props":3158,"children":3159},{"style":566},[3160],{"type":398,"value":803},{"type":393,"tag":554,"props":3162,"children":3163},{"style":620},[3164],{"type":398,"value":3165},"\"1️⃣ Key metrics:\"",{"type":393,"tag":554,"props":3167,"children":3168},{"style":566},[3169],{"type":398,"value":813},{"type":393,"tag":554,"props":3171,"children":3172},{"class":556,"line":215},[3173,3177],{"type":393,"tag":554,"props":3174,"children":3175},{"style":672},[3176],{"type":398,"value":798},{"type":393,"tag":554,"props":3178,"children":3179},{"style":566},[3180],{"type":398,"value":3181},"(metrics)\n",{"type":393,"tag":554,"props":3183,"children":3184},{"class":556,"line":224},[3185,3189],{"type":393,"tag":554,"props":3186,"children":3187},{"style":672},[3188],{"type":398,"value":798},{"type":393,"tag":554,"props":3190,"children":3191},{"style":566},[3192],{"type":398,"value":837},{"type":393,"tag":554,"props":3194,"children":3195},{"class":556,"line":233},[3196],{"type":393,"tag":554,"props":3197,"children":3198},{"emptyLinePlaceholder":12},[3199],{"type":398,"value":587},{"type":393,"tag":554,"props":3201,"children":3202},{"class":556,"line":244},[3203],{"type":393,"tag":554,"props":3204,"children":3205},{"style":593},[3206],{"type":398,"value":3207},"# Pattern 2: All except one column\n",{"type":393,"tag":554,"props":3209,"children":3210},{"class":556,"line":253},[3211],{"type":393,"tag":554,"props":3212,"children":3213},{"style":593},[3214],{"type":398,"value":3215},"# (Select all columns except 'date')\n",{"type":393,"tag":554,"props":3217,"children":3218},{"class":556,"line":262},[3219,3224,3228,3232,3236,3240,3245,3249,3253,3257,3262],{"type":393,"tag":554,"props":3220,"children":3221},{"style":566},[3222],{"type":398,"value":3223},"no_date ",{"type":393,"tag":554,"props":3225,"children":3226},{"style":560},[3227],{"type":398,"value":609},{"type":393,"tag":554,"props":3229,"children":3230},{"style":566},[3231],{"type":398,"value":3131},{"type":393,"tag":554,"props":3233,"children":3234},{"style":620},[3235],{"type":398,"value":3136},{"type":393,"tag":554,"props":3237,"children":3238},{"style":566},[3239],{"type":398,"value":638},{"type":393,"tag":554,"props":3241,"children":3242},{"style":620},[3243],{"type":398,"value":3244},"'quantity'",{"type":393,"tag":554,"props":3246,"children":3247},{"style":566},[3248],{"type":398,"value":638},{"type":393,"tag":554,"props":3250,"children":3251},{"style":620},[3252],{"type":398,"value":3145},{"type":393,"tag":554,"props":3254,"children":3255},{"style":566},[3256],{"type":398,"value":638},{"type":393,"tag":554,"props":3258,"children":3259},{"style":620},[3260],{"type":398,"value":3261},"'region'",{"type":393,"tag":554,"props":3263,"children":3264},{"style":566},[3265],{"type":398,"value":1486},{"type":393,"tag":554,"props":3267,"children":3268},{"class":556,"line":271},[3269,3273,3277,3282],{"type":393,"tag":554,"props":3270,"children":3271},{"style":672},[3272],{"type":398,"value":798},{"type":393,"tag":554,"props":3274,"children":3275},{"style":566},[3276],{"type":398,"value":803},{"type":393,"tag":554,"props":3278,"children":3279},{"style":620},[3280],{"type":398,"value":3281},"\"2️⃣ Everything except date:\"",{"type":393,"tag":554,"props":3283,"children":3284},{"style":566},[3285],{"type":398,"value":813},{"type":393,"tag":554,"props":3287,"children":3288},{"class":556,"line":281},[3289,3293],{"type":393,"tag":554,"props":3290,"children":3291},{"style":672},[3292],{"type":398,"value":798},{"type":393,"tag":554,"props":3294,"children":3295},{"style":566},[3296],{"type":398,"value":3297},"(no_date)\n",{"type":393,"tag":554,"props":3299,"children":3300},{"class":556,"line":290},[3301,3305],{"type":393,"tag":554,"props":3302,"children":3303},{"style":672},[3304],{"type":398,"value":798},{"type":393,"tag":554,"props":3306,"children":3307},{"style":566},[3308],{"type":398,"value":837},{"type":393,"tag":554,"props":3310,"children":3311},{"class":556,"line":299},[3312],{"type":393,"tag":554,"props":3313,"children":3314},{"emptyLinePlaceholder":12},[3315],{"type":398,"value":587},{"type":393,"tag":554,"props":3317,"children":3318},{"class":556,"line":308},[3319],{"type":393,"tag":554,"props":3320,"children":3321},{"style":593},[3322],{"type":398,"value":3323},"# Pattern 3: Related columns\n",{"type":393,"tag":554,"props":3325,"children":3326},{"class":556,"line":318},[3327,3332,3336,3340,3344,3348,3352,3356,3360],{"type":393,"tag":554,"props":3328,"children":3329},{"style":566},[3330],{"type":398,"value":3331},"financials ",{"type":393,"tag":554,"props":3333,"children":3334},{"style":560},[3335],{"type":398,"value":609},{"type":393,"tag":554,"props":3337,"children":3338},{"style":566},[3339],{"type":398,"value":3131},{"type":393,"tag":554,"props":3341,"children":3342},{"style":620},[3343],{"type":398,"value":3136},{"type":393,"tag":554,"props":3345,"children":3346},{"style":566},[3347],{"type":398,"value":638},{"type":393,"tag":554,"props":3349,"children":3350},{"style":620},[3351],{"type":398,"value":3244},{"type":393,"tag":554,"props":3353,"children":3354},{"style":566},[3355],{"type":398,"value":638},{"type":393,"tag":554,"props":3357,"children":3358},{"style":620},[3359],{"type":398,"value":3145},{"type":393,"tag":554,"props":3361,"children":3362},{"style":566},[3363],{"type":398,"value":1486},{"type":393,"tag":554,"props":3365,"children":3366},{"class":556,"line":327},[3367,3371,3375,3380],{"type":393,"tag":554,"props":3368,"children":3369},{"style":672},[3370],{"type":398,"value":798},{"type":393,"tag":554,"props":3372,"children":3373},{"style":566},[3374],{"type":398,"value":803},{"type":393,"tag":554,"props":3376,"children":3377},{"style":620},[3378],{"type":398,"value":3379},"\"3️⃣ Financial data:\"",{"type":393,"tag":554,"props":3381,"children":3382},{"style":566},[3383],{"type":398,"value":813},{"type":393,"tag":554,"props":3385,"children":3386},{"class":556,"line":336},[3387,3391],{"type":393,"tag":554,"props":3388,"children":3389},{"style":672},[3390],{"type":398,"value":798},{"type":393,"tag":554,"props":3392,"children":3393},{"style":566},[3394],{"type":398,"value":3395},"(financials)\n",{"type":393,"tag":528,"props":3397,"children":3399},{"id":3398},"working-with-selected-data",[3400],{"type":398,"value":3401},"🔍 Working with Selected Data",{"type":393,"tag":401,"props":3403,"children":3404},{},[3405],{"type":398,"value":3406},"Once you select data, you can analyze it immediately:",{"type":393,"tag":540,"props":3408,"children":3409},{},[3410],{"type":393,"tag":544,"props":3411,"children":3413},{"className":546,"code":3412,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Customer data\ncustomers = pd.DataFrame({\n    'name': ['Alice', 'Bob', 'Charlie', 'Diana'],\n    'age': [25, 35, 30, 28],\n    'purchases': [5, 12, 8, 15],\n    'total_spent': [500, 1200, 800, 1500]\n})\n\nprint(\"Customer Data:\")\nprint(customers)\nprint()\n\n# Select and analyze spending data\nspending = customers[['name', 'total_spent']]\nprint(\"💰 Spending Analysis:\")\nprint(spending)\nprint(f\"Average spending: ${spending['total_spent'].mean():.0f}\")\nprint(f\"Top spender: {spending.loc[spending['total_spent'].idxmax(), 'name']}\")\nprint()\n\n# Select and analyze purchase behavior\nbehavior = customers[['name', 'purchases']]\nprint(\"🛒 Purchase Behavior:\")\nprint(behavior)\nprint(f\"Average purchases: {behavior['purchases'].mean():.1f}\")\n",[3414],{"type":393,"tag":433,"props":3415,"children":3416},{"__ignoreMap":6},[3417,3436,3443,3451,3467,3511,3555,3601,3647,3654,3661,3681,3693,3704,3711,3719,3753,3773,3785,3840,3899,3910,3917,3925,3958,3978,3990],{"type":393,"tag":554,"props":3418,"children":3419},{"class":556,"line":11},[3420,3424,3428,3432],{"type":393,"tag":554,"props":3421,"children":3422},{"style":560},[3423],{"type":398,"value":563},{"type":393,"tag":554,"props":3425,"children":3426},{"style":566},[3427],{"type":398,"value":569},{"type":393,"tag":554,"props":3429,"children":3430},{"style":560},[3431],{"type":398,"value":574},{"type":393,"tag":554,"props":3433,"children":3434},{"style":566},[3435],{"type":398,"value":579},{"type":393,"tag":554,"props":3437,"children":3438},{"class":556,"line":27},[3439],{"type":393,"tag":554,"props":3440,"children":3441},{"emptyLinePlaceholder":12},[3442],{"type":398,"value":587},{"type":393,"tag":554,"props":3444,"children":3445},{"class":556,"line":36},[3446],{"type":393,"tag":554,"props":3447,"children":3448},{"style":593},[3449],{"type":398,"value":3450},"# Customer data\n",{"type":393,"tag":554,"props":3452,"children":3453},{"class":556,"line":45},[3454,3459,3463],{"type":393,"tag":554,"props":3455,"children":3456},{"style":566},[3457],{"type":398,"value":3458},"customers ",{"type":393,"tag":554,"props":3460,"children":3461},{"style":560},[3462],{"type":398,"value":609},{"type":393,"tag":554,"props":3464,"children":3465},{"style":566},[3466],{"type":398,"value":614},{"type":393,"tag":554,"props":3468,"children":3469},{"class":556,"line":54},[3470,3474,3478,3482,3486,3490,3494,3498,3502,3507],{"type":393,"tag":554,"props":3471,"children":3472},{"style":620},[3473],{"type":398,"value":623},{"type":393,"tag":554,"props":3475,"children":3476},{"style":566},[3477],{"type":398,"value":628},{"type":393,"tag":554,"props":3479,"children":3480},{"style":620},[3481],{"type":398,"value":633},{"type":393,"tag":554,"props":3483,"children":3484},{"style":566},[3485],{"type":398,"value":638},{"type":393,"tag":554,"props":3487,"children":3488},{"style":620},[3489],{"type":398,"value":643},{"type":393,"tag":554,"props":3491,"children":3492},{"style":566},[3493],{"type":398,"value":638},{"type":393,"tag":554,"props":3495,"children":3496},{"style":620},[3497],{"type":398,"value":652},{"type":393,"tag":554,"props":3499,"children":3500},{"style":566},[3501],{"type":398,"value":638},{"type":393,"tag":554,"props":3503,"children":3504},{"style":620},[3505],{"type":398,"value":3506},"'Diana'",{"type":393,"tag":554,"props":3508,"children":3509},{"style":566},[3510],{"type":398,"value":657},{"type":393,"tag":554,"props":3512,"children":3513},{"class":556,"line":63},[3514,3518,3522,3526,3530,3535,3539,3543,3547,3551],{"type":393,"tag":554,"props":3515,"children":3516},{"style":620},[3517],{"type":398,"value":665},{"type":393,"tag":554,"props":3519,"children":3520},{"style":566},[3521],{"type":398,"value":628},{"type":393,"tag":554,"props":3523,"children":3524},{"style":672},[3525],{"type":398,"value":1763},{"type":393,"tag":554,"props":3527,"children":3528},{"style":566},[3529],{"type":398,"value":638},{"type":393,"tag":554,"props":3531,"children":3532},{"style":672},[3533],{"type":398,"value":3534},"35",{"type":393,"tag":554,"props":3536,"children":3537},{"style":566},[3538],{"type":398,"value":638},{"type":393,"tag":554,"props":3540,"children":3541},{"style":672},[3542],{"type":398,"value":1820},{"type":393,"tag":554,"props":3544,"children":3545},{"style":566},[3546],{"type":398,"value":638},{"type":393,"tag":554,"props":3548,"children":3549},{"style":672},[3550],{"type":398,"value":2335},{"type":393,"tag":554,"props":3552,"children":3553},{"style":566},[3554],{"type":398,"value":657},{"type":393,"tag":554,"props":3556,"children":3557},{"class":556,"line":72},[3558,3563,3567,3571,3575,3580,3584,3588,3592,3597],{"type":393,"tag":554,"props":3559,"children":3560},{"style":620},[3561],{"type":398,"value":3562},"    'purchases'",{"type":393,"tag":554,"props":3564,"children":3565},{"style":566},[3566],{"type":398,"value":628},{"type":393,"tag":554,"props":3568,"children":3569},{"style":672},[3570],{"type":398,"value":1328},{"type":393,"tag":554,"props":3572,"children":3573},{"style":566},[3574],{"type":398,"value":638},{"type":393,"tag":554,"props":3576,"children":3577},{"style":672},[3578],{"type":398,"value":3579},"12",{"type":393,"tag":554,"props":3581,"children":3582},{"style":566},[3583],{"type":398,"value":638},{"type":393,"tag":554,"props":3585,"children":3586},{"style":672},[3587],{"type":398,"value":1829},{"type":393,"tag":554,"props":3589,"children":3590},{"style":566},[3591],{"type":398,"value":638},{"type":393,"tag":554,"props":3593,"children":3594},{"style":672},[3595],{"type":398,"value":3596},"15",{"type":393,"tag":554,"props":3598,"children":3599},{"style":566},[3600],{"type":398,"value":657},{"type":393,"tag":554,"props":3602,"children":3603},{"class":556,"line":83},[3604,3609,3613,3617,3621,3626,3630,3634,3638,3643],{"type":393,"tag":554,"props":3605,"children":3606},{"style":620},[3607],{"type":398,"value":3608},"    'total_spent'",{"type":393,"tag":554,"props":3610,"children":3611},{"style":566},[3612],{"type":398,"value":628},{"type":393,"tag":554,"props":3614,"children":3615},{"style":672},[3616],{"type":398,"value":2953},{"type":393,"tag":554,"props":3618,"children":3619},{"style":566},[3620],{"type":398,"value":638},{"type":393,"tag":554,"props":3622,"children":3623},{"style":672},[3624],{"type":398,"value":3625},"1200",{"type":393,"tag":554,"props":3627,"children":3628},{"style":566},[3629],{"type":398,"value":638},{"type":393,"tag":554,"props":3631,"children":3632},{"style":672},[3633],{"type":398,"value":2962},{"type":393,"tag":554,"props":3635,"children":3636},{"style":566},[3637],{"type":398,"value":638},{"type":393,"tag":554,"props":3639,"children":3640},{"style":672},[3641],{"type":398,"value":3642},"1500",{"type":393,"tag":554,"props":3644,"children":3645},{"style":566},[3646],{"type":398,"value":775},{"type":393,"tag":554,"props":3648,"children":3649},{"class":556,"line":92},[3650],{"type":393,"tag":554,"props":3651,"children":3652},{"style":566},[3653],{"type":398,"value":783},{"type":393,"tag":554,"props":3655,"children":3656},{"class":556,"line":101},[3657],{"type":393,"tag":554,"props":3658,"children":3659},{"emptyLinePlaceholder":12},[3660],{"type":398,"value":587},{"type":393,"tag":554,"props":3662,"children":3663},{"class":556,"line":110},[3664,3668,3672,3677],{"type":393,"tag":554,"props":3665,"children":3666},{"style":672},[3667],{"type":398,"value":798},{"type":393,"tag":554,"props":3669,"children":3670},{"style":566},[3671],{"type":398,"value":803},{"type":393,"tag":554,"props":3673,"children":3674},{"style":620},[3675],{"type":398,"value":3676},"\"Customer Data:\"",{"type":393,"tag":554,"props":3678,"children":3679},{"style":566},[3680],{"type":398,"value":813},{"type":393,"tag":554,"props":3682,"children":3683},{"class":556,"line":121},[3684,3688],{"type":393,"tag":554,"props":3685,"children":3686},{"style":672},[3687],{"type":398,"value":798},{"type":393,"tag":554,"props":3689,"children":3690},{"style":566},[3691],{"type":398,"value":3692},"(customers)\n",{"type":393,"tag":554,"props":3694,"children":3695},{"class":556,"line":130},[3696,3700],{"type":393,"tag":554,"props":3697,"children":3698},{"style":672},[3699],{"type":398,"value":798},{"type":393,"tag":554,"props":3701,"children":3702},{"style":566},[3703],{"type":398,"value":837},{"type":393,"tag":554,"props":3705,"children":3706},{"class":556,"line":139},[3707],{"type":393,"tag":554,"props":3708,"children":3709},{"emptyLinePlaceholder":12},[3710],{"type":398,"value":587},{"type":393,"tag":554,"props":3712,"children":3713},{"class":556,"line":148},[3714],{"type":393,"tag":554,"props":3715,"children":3716},{"style":593},[3717],{"type":398,"value":3718},"# Select and analyze spending data\n",{"type":393,"tag":554,"props":3720,"children":3721},{"class":556,"line":159},[3722,3727,3731,3736,3740,3744,3749],{"type":393,"tag":554,"props":3723,"children":3724},{"style":566},[3725],{"type":398,"value":3726},"spending ",{"type":393,"tag":554,"props":3728,"children":3729},{"style":560},[3730],{"type":398,"value":609},{"type":393,"tag":554,"props":3732,"children":3733},{"style":566},[3734],{"type":398,"value":3735}," customers[[",{"type":393,"tag":554,"props":3737,"children":3738},{"style":620},[3739],{"type":398,"value":912},{"type":393,"tag":554,"props":3741,"children":3742},{"style":566},[3743],{"type":398,"value":638},{"type":393,"tag":554,"props":3745,"children":3746},{"style":620},[3747],{"type":398,"value":3748},"'total_spent'",{"type":393,"tag":554,"props":3750,"children":3751},{"style":566},[3752],{"type":398,"value":1486},{"type":393,"tag":554,"props":3754,"children":3755},{"class":556,"line":168},[3756,3760,3764,3769],{"type":393,"tag":554,"props":3757,"children":3758},{"style":672},[3759],{"type":398,"value":798},{"type":393,"tag":554,"props":3761,"children":3762},{"style":566},[3763],{"type":398,"value":803},{"type":393,"tag":554,"props":3765,"children":3766},{"style":620},[3767],{"type":398,"value":3768},"\"💰 Spending Analysis:\"",{"type":393,"tag":554,"props":3770,"children":3771},{"style":566},[3772],{"type":398,"value":813},{"type":393,"tag":554,"props":3774,"children":3775},{"class":556,"line":177},[3776,3780],{"type":393,"tag":554,"props":3777,"children":3778},{"style":672},[3779],{"type":398,"value":798},{"type":393,"tag":554,"props":3781,"children":3782},{"style":566},[3783],{"type":398,"value":3784},"(spending)\n",{"type":393,"tag":554,"props":3786,"children":3787},{"class":556,"line":186},[3788,3792,3796,3800,3805,3809,3814,3818,3823,3828,3832,3836],{"type":393,"tag":554,"props":3789,"children":3790},{"style":672},[3791],{"type":398,"value":798},{"type":393,"tag":554,"props":3793,"children":3794},{"style":566},[3795],{"type":398,"value":803},{"type":393,"tag":554,"props":3797,"children":3798},{"style":560},[3799],{"type":398,"value":964},{"type":393,"tag":554,"props":3801,"children":3802},{"style":620},[3803],{"type":398,"value":3804},"\"Average spending: $",{"type":393,"tag":554,"props":3806,"children":3807},{"style":672},[3808],{"type":398,"value":1101},{"type":393,"tag":554,"props":3810,"children":3811},{"style":566},[3812],{"type":398,"value":3813},"spending[",{"type":393,"tag":554,"props":3815,"children":3816},{"style":620},[3817],{"type":398,"value":3748},{"type":393,"tag":554,"props":3819,"children":3820},{"style":566},[3821],{"type":398,"value":3822},"].mean()",{"type":393,"tag":554,"props":3824,"children":3825},{"style":560},[3826],{"type":398,"value":3827},":.0f",{"type":393,"tag":554,"props":3829,"children":3830},{"style":672},[3831],{"type":398,"value":984},{"type":393,"tag":554,"props":3833,"children":3834},{"style":620},[3835],{"type":398,"value":989},{"type":393,"tag":554,"props":3837,"children":3838},{"style":566},[3839],{"type":398,"value":813},{"type":393,"tag":554,"props":3841,"children":3842},{"class":556,"line":197},[3843,3847,3851,3855,3860,3864,3869,3873,3878,3882,3887,3891,3895],{"type":393,"tag":554,"props":3844,"children":3845},{"style":672},[3846],{"type":398,"value":798},{"type":393,"tag":554,"props":3848,"children":3849},{"style":566},[3850],{"type":398,"value":803},{"type":393,"tag":554,"props":3852,"children":3853},{"style":560},[3854],{"type":398,"value":964},{"type":393,"tag":554,"props":3856,"children":3857},{"style":620},[3858],{"type":398,"value":3859},"\"Top spender: ",{"type":393,"tag":554,"props":3861,"children":3862},{"style":672},[3863],{"type":398,"value":1101},{"type":393,"tag":554,"props":3865,"children":3866},{"style":566},[3867],{"type":398,"value":3868},"spending.loc[spending[",{"type":393,"tag":554,"props":3870,"children":3871},{"style":620},[3872],{"type":398,"value":3748},{"type":393,"tag":554,"props":3874,"children":3875},{"style":566},[3876],{"type":398,"value":3877},"].idxmax(), ",{"type":393,"tag":554,"props":3879,"children":3880},{"style":620},[3881],{"type":398,"value":912},{"type":393,"tag":554,"props":3883,"children":3884},{"style":566},[3885],{"type":398,"value":3886},"]",{"type":393,"tag":554,"props":3888,"children":3889},{"style":672},[3890],{"type":398,"value":984},{"type":393,"tag":554,"props":3892,"children":3893},{"style":620},[3894],{"type":398,"value":989},{"type":393,"tag":554,"props":3896,"children":3897},{"style":566},[3898],{"type":398,"value":813},{"type":393,"tag":554,"props":3900,"children":3901},{"class":556,"line":206},[3902,3906],{"type":393,"tag":554,"props":3903,"children":3904},{"style":672},[3905],{"type":398,"value":798},{"type":393,"tag":554,"props":3907,"children":3908},{"style":566},[3909],{"type":398,"value":837},{"type":393,"tag":554,"props":3911,"children":3912},{"class":556,"line":215},[3913],{"type":393,"tag":554,"props":3914,"children":3915},{"emptyLinePlaceholder":12},[3916],{"type":398,"value":587},{"type":393,"tag":554,"props":3918,"children":3919},{"class":556,"line":224},[3920],{"type":393,"tag":554,"props":3921,"children":3922},{"style":593},[3923],{"type":398,"value":3924},"# Select and analyze purchase behavior\n",{"type":393,"tag":554,"props":3926,"children":3927},{"class":556,"line":233},[3928,3933,3937,3941,3945,3949,3954],{"type":393,"tag":554,"props":3929,"children":3930},{"style":566},[3931],{"type":398,"value":3932},"behavior ",{"type":393,"tag":554,"props":3934,"children":3935},{"style":560},[3936],{"type":398,"value":609},{"type":393,"tag":554,"props":3938,"children":3939},{"style":566},[3940],{"type":398,"value":3735},{"type":393,"tag":554,"props":3942,"children":3943},{"style":620},[3944],{"type":398,"value":912},{"type":393,"tag":554,"props":3946,"children":3947},{"style":566},[3948],{"type":398,"value":638},{"type":393,"tag":554,"props":3950,"children":3951},{"style":620},[3952],{"type":398,"value":3953},"'purchases'",{"type":393,"tag":554,"props":3955,"children":3956},{"style":566},[3957],{"type":398,"value":1486},{"type":393,"tag":554,"props":3959,"children":3960},{"class":556,"line":244},[3961,3965,3969,3974],{"type":393,"tag":554,"props":3962,"children":3963},{"style":672},[3964],{"type":398,"value":798},{"type":393,"tag":554,"props":3966,"children":3967},{"style":566},[3968],{"type":398,"value":803},{"type":393,"tag":554,"props":3970,"children":3971},{"style":620},[3972],{"type":398,"value":3973},"\"🛒 Purchase Behavior:\"",{"type":393,"tag":554,"props":3975,"children":3976},{"style":566},[3977],{"type":398,"value":813},{"type":393,"tag":554,"props":3979,"children":3980},{"class":556,"line":253},[3981,3985],{"type":393,"tag":554,"props":3982,"children":3983},{"style":672},[3984],{"type":398,"value":798},{"type":393,"tag":554,"props":3986,"children":3987},{"style":566},[3988],{"type":398,"value":3989},"(behavior)\n",{"type":393,"tag":554,"props":3991,"children":3992},{"class":556,"line":262},[3993,3997,4001,4005,4010,4014,4019,4023,4027,4032,4036,4040],{"type":393,"tag":554,"props":3994,"children":3995},{"style":672},[3996],{"type":398,"value":798},{"type":393,"tag":554,"props":3998,"children":3999},{"style":566},[4000],{"type":398,"value":803},{"type":393,"tag":554,"props":4002,"children":4003},{"style":560},[4004],{"type":398,"value":964},{"type":393,"tag":554,"props":4006,"children":4007},{"style":620},[4008],{"type":398,"value":4009},"\"Average purchases: ",{"type":393,"tag":554,"props":4011,"children":4012},{"style":672},[4013],{"type":398,"value":1101},{"type":393,"tag":554,"props":4015,"children":4016},{"style":566},[4017],{"type":398,"value":4018},"behavior[",{"type":393,"tag":554,"props":4020,"children":4021},{"style":620},[4022],{"type":398,"value":3953},{"type":393,"tag":554,"props":4024,"children":4025},{"style":566},[4026],{"type":398,"value":3822},{"type":393,"tag":554,"props":4028,"children":4029},{"style":560},[4030],{"type":398,"value":4031},":.1f",{"type":393,"tag":554,"props":4033,"children":4034},{"style":672},[4035],{"type":398,"value":984},{"type":393,"tag":554,"props":4037,"children":4038},{"style":620},[4039],{"type":398,"value":989},{"type":393,"tag":554,"props":4041,"children":4042},{"style":566},[4043],{"type":398,"value":813},{"type":393,"tag":528,"props":4045,"children":4047},{"id":4046},"️-common-selection-mistakes",[4048],{"type":398,"value":4049},"⚠️ Common Selection Mistakes",{"type":393,"tag":401,"props":4051,"children":4052},{},[4053],{"type":398,"value":4054},"Avoid these common errors that can cause confusion or errors:",{"type":393,"tag":407,"props":4056,"children":4060},{"emoji":4057,"title":4058,"type":4059},"⚠️","Selection Mistakes to Avoid","warning",[4061,4069,4098,4106,4138,4146,4193,4201,4241],{"type":393,"tag":401,"props":4062,"children":4063},{},[4064],{"type":393,"tag":417,"props":4065,"children":4066},{},[4067],{"type":398,"value":4068},"Most Common Mistake: Wrong Brackets for Multiple Columns",{"type":393,"tag":423,"props":4070,"children":4071},{},[4072,4085],{"type":393,"tag":427,"props":4073,"children":4074},{},[4075,4077,4083],{"type":398,"value":4076},"❌ Wrong: ",{"type":393,"tag":433,"props":4078,"children":4080},{"className":4079},[],[4081],{"type":398,"value":4082},"data['name', 'age']",{"type":398,"value":4084}," - This causes an error!",{"type":393,"tag":427,"props":4086,"children":4087},{},[4088,4090,4096],{"type":398,"value":4089},"✅ Correct: ",{"type":393,"tag":433,"props":4091,"children":4093},{"className":4092},[],[4094],{"type":398,"value":4095},"data[['name', 'age']]",{"type":398,"value":4097}," - Use double brackets",{"type":393,"tag":401,"props":4099,"children":4100},{},[4101],{"type":393,"tag":417,"props":4102,"children":4103},{},[4104],{"type":398,"value":4105},"Why This Happens:",{"type":393,"tag":423,"props":4107,"children":4108},{},[4109,4121,4133],{"type":393,"tag":427,"props":4110,"children":4111},{},[4112,4114,4119],{"type":398,"value":4113},"Single brackets ",{"type":393,"tag":433,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":398,"value":516},{"type":398,"value":4120}," are for selecting ONE thing",{"type":393,"tag":427,"props":4122,"children":4123},{},[4124,4126,4131],{"type":398,"value":4125},"Double brackets ",{"type":393,"tag":433,"props":4127,"children":4129},{"className":4128},[],[4130],{"type":398,"value":524},{"type":398,"value":4132}," are for selecting MULTIPLE things",{"type":393,"tag":427,"props":4134,"children":4135},{},[4136],{"type":398,"value":4137},"Pandas needs the inner list to know you want multiple columns",{"type":393,"tag":401,"props":4139,"children":4140},{},[4141],{"type":393,"tag":417,"props":4142,"children":4143},{},[4144],{"type":398,"value":4145},"Memory Tips:",{"type":393,"tag":423,"props":4147,"children":4148},{},[4149,4167,4183],{"type":393,"tag":427,"props":4150,"children":4151},{},[4152,4157,4159,4165],{"type":393,"tag":417,"props":4153,"children":4154},{},[4155],{"type":398,"value":4156},"Single column",{"type":398,"value":4158},": ",{"type":393,"tag":433,"props":4160,"children":4162},{"className":4161},[],[4163],{"type":398,"value":4164},"df['column']",{"type":398,"value":4166}," → Returns Series",{"type":393,"tag":427,"props":4168,"children":4169},{},[4170,4175,4176,4181],{"type":393,"tag":417,"props":4171,"children":4172},{},[4173],{"type":398,"value":4174},"Multiple columns",{"type":398,"value":4158},{"type":393,"tag":433,"props":4177,"children":4179},{"className":4178},[],[4180],{"type":398,"value":451},{"type":398,"value":4182}," → Returns DataFrame",{"type":393,"tag":427,"props":4184,"children":4185},{},[4186,4191],{"type":393,"tag":417,"props":4187,"children":4188},{},[4189],{"type":398,"value":4190},"Think of it like",{"type":398,"value":4192},": Single item vs shopping list (multiple items)",{"type":393,"tag":401,"props":4194,"children":4195},{},[4196],{"type":393,"tag":417,"props":4197,"children":4198},{},[4199],{"type":398,"value":4200},"Other Common Mistakes:",{"type":393,"tag":423,"props":4202,"children":4203},{},[4204,4217,4222],{"type":393,"tag":427,"props":4205,"children":4206},{},[4207,4209,4215],{"type":398,"value":4208},"Forgetting ",{"type":393,"tag":433,"props":4210,"children":4212},{"className":4211},[],[4213],{"type":398,"value":4214},".iloc",{"type":398,"value":4216}," for position-based selection",{"type":393,"tag":427,"props":4218,"children":4219},{},[4220],{"type":398,"value":4221},"Mixing up row and column positions",{"type":393,"tag":427,"props":4223,"children":4224},{},[4225,4227,4233,4235],{"type":398,"value":4226},"Not checking results with ",{"type":393,"tag":433,"props":4228,"children":4230},{"className":4229},[],[4231],{"type":398,"value":4232},".head()",{"type":398,"value":4234}," or ",{"type":393,"tag":433,"props":4236,"children":4238},{"className":4237},[],[4239],{"type":398,"value":4240},".shape",{"type":393,"tag":401,"props":4242,"children":4243},{},[4244,4248],{"type":393,"tag":417,"props":4245,"children":4246},{},[4247],{"type":398,"value":508},{"type":398,"value":4249}," The extra brackets for multiple columns are not optional - they're required!",{"type":393,"tag":540,"props":4251,"children":4252},{},[4253],{"type":393,"tag":544,"props":4254,"children":4256},{"className":546,"code":4255,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Sample data for demonstrating correct selection\ndata = pd.DataFrame({\n    'name': ['Alice', 'Bob'],\n    'age': [25, 30],\n    'city': ['NYC', 'LA']\n})\n\nprint(\"✅ Correct Selection Examples:\")\nprint()\n\n# Correct way to select multiple columns\nresult = data[['name', 'age']]\nprint(\"Multiple columns with double brackets:\")\nprint(result)\nprint()\n\n# Single column selection\nsingle_col = data['name']\nprint(\"Single column selection:\")\nprint(single_col)\nprint(f\"Type: {type(single_col)}\")\nprint()\n\n# Multiple columns vs single column return types\nprint(\"📊 Understanding Return Types:\")\nprint(f\"Single column returns: {type(data['name'])}\")\nprint(f\"Multiple columns return: {type(data[['name', 'age']])}\")\n",[4257],{"type":393,"tag":433,"props":4258,"children":4259},{"__ignoreMap":6},[4260,4279,4286,4294,4310,4337,4364,4391,4398,4405,4425,4436,4443,4451,4484,4504,4516,4527,4534,4542,4567,4587,4599,4639,4650,4657,4665,4685,4735],{"type":393,"tag":554,"props":4261,"children":4262},{"class":556,"line":11},[4263,4267,4271,4275],{"type":393,"tag":554,"props":4264,"children":4265},{"style":560},[4266],{"type":398,"value":563},{"type":393,"tag":554,"props":4268,"children":4269},{"style":566},[4270],{"type":398,"value":569},{"type":393,"tag":554,"props":4272,"children":4273},{"style":560},[4274],{"type":398,"value":574},{"type":393,"tag":554,"props":4276,"children":4277},{"style":566},[4278],{"type":398,"value":579},{"type":393,"tag":554,"props":4280,"children":4281},{"class":556,"line":27},[4282],{"type":393,"tag":554,"props":4283,"children":4284},{"emptyLinePlaceholder":12},[4285],{"type":398,"value":587},{"type":393,"tag":554,"props":4287,"children":4288},{"class":556,"line":36},[4289],{"type":393,"tag":554,"props":4290,"children":4291},{"style":593},[4292],{"type":398,"value":4293},"# Sample data for demonstrating correct selection\n",{"type":393,"tag":554,"props":4295,"children":4296},{"class":556,"line":45},[4297,4302,4306],{"type":393,"tag":554,"props":4298,"children":4299},{"style":566},[4300],{"type":398,"value":4301},"data ",{"type":393,"tag":554,"props":4303,"children":4304},{"style":560},[4305],{"type":398,"value":609},{"type":393,"tag":554,"props":4307,"children":4308},{"style":566},[4309],{"type":398,"value":614},{"type":393,"tag":554,"props":4311,"children":4312},{"class":556,"line":54},[4313,4317,4321,4325,4329,4333],{"type":393,"tag":554,"props":4314,"children":4315},{"style":620},[4316],{"type":398,"value":623},{"type":393,"tag":554,"props":4318,"children":4319},{"style":566},[4320],{"type":398,"value":628},{"type":393,"tag":554,"props":4322,"children":4323},{"style":620},[4324],{"type":398,"value":633},{"type":393,"tag":554,"props":4326,"children":4327},{"style":566},[4328],{"type":398,"value":638},{"type":393,"tag":554,"props":4330,"children":4331},{"style":620},[4332],{"type":398,"value":643},{"type":393,"tag":554,"props":4334,"children":4335},{"style":566},[4336],{"type":398,"value":657},{"type":393,"tag":554,"props":4338,"children":4339},{"class":556,"line":63},[4340,4344,4348,4352,4356,4360],{"type":393,"tag":554,"props":4341,"children":4342},{"style":620},[4343],{"type":398,"value":665},{"type":393,"tag":554,"props":4345,"children":4346},{"style":566},[4347],{"type":398,"value":628},{"type":393,"tag":554,"props":4349,"children":4350},{"style":672},[4351],{"type":398,"value":1763},{"type":393,"tag":554,"props":4353,"children":4354},{"style":566},[4355],{"type":398,"value":638},{"type":393,"tag":554,"props":4357,"children":4358},{"style":672},[4359],{"type":398,"value":1820},{"type":393,"tag":554,"props":4361,"children":4362},{"style":566},[4363],{"type":398,"value":657},{"type":393,"tag":554,"props":4365,"children":4366},{"class":556,"line":72},[4367,4371,4375,4379,4383,4387],{"type":393,"tag":554,"props":4368,"children":4369},{"style":620},[4370],{"type":398,"value":2401},{"type":393,"tag":554,"props":4372,"children":4373},{"style":566},[4374],{"type":398,"value":628},{"type":393,"tag":554,"props":4376,"children":4377},{"style":620},[4378],{"type":398,"value":2410},{"type":393,"tag":554,"props":4380,"children":4381},{"style":566},[4382],{"type":398,"value":638},{"type":393,"tag":554,"props":4384,"children":4385},{"style":620},[4386],{"type":398,"value":2419},{"type":393,"tag":554,"props":4388,"children":4389},{"style":566},[4390],{"type":398,"value":775},{"type":393,"tag":554,"props":4392,"children":4393},{"class":556,"line":83},[4394],{"type":393,"tag":554,"props":4395,"children":4396},{"style":566},[4397],{"type":398,"value":783},{"type":393,"tag":554,"props":4399,"children":4400},{"class":556,"line":92},[4401],{"type":393,"tag":554,"props":4402,"children":4403},{"emptyLinePlaceholder":12},[4404],{"type":398,"value":587},{"type":393,"tag":554,"props":4406,"children":4407},{"class":556,"line":101},[4408,4412,4416,4421],{"type":393,"tag":554,"props":4409,"children":4410},{"style":672},[4411],{"type":398,"value":798},{"type":393,"tag":554,"props":4413,"children":4414},{"style":566},[4415],{"type":398,"value":803},{"type":393,"tag":554,"props":4417,"children":4418},{"style":620},[4419],{"type":398,"value":4420},"\"✅ Correct Selection Examples:\"",{"type":393,"tag":554,"props":4422,"children":4423},{"style":566},[4424],{"type":398,"value":813},{"type":393,"tag":554,"props":4426,"children":4427},{"class":556,"line":110},[4428,4432],{"type":393,"tag":554,"props":4429,"children":4430},{"style":672},[4431],{"type":398,"value":798},{"type":393,"tag":554,"props":4433,"children":4434},{"style":566},[4435],{"type":398,"value":837},{"type":393,"tag":554,"props":4437,"children":4438},{"class":556,"line":121},[4439],{"type":393,"tag":554,"props":4440,"children":4441},{"emptyLinePlaceholder":12},[4442],{"type":398,"value":587},{"type":393,"tag":554,"props":4444,"children":4445},{"class":556,"line":130},[4446],{"type":393,"tag":554,"props":4447,"children":4448},{"style":593},[4449],{"type":398,"value":4450},"# Correct way to select multiple columns\n",{"type":393,"tag":554,"props":4452,"children":4453},{"class":556,"line":139},[4454,4459,4463,4468,4472,4476,4480],{"type":393,"tag":554,"props":4455,"children":4456},{"style":566},[4457],{"type":398,"value":4458},"result ",{"type":393,"tag":554,"props":4460,"children":4461},{"style":560},[4462],{"type":398,"value":609},{"type":393,"tag":554,"props":4464,"children":4465},{"style":566},[4466],{"type":398,"value":4467}," data[[",{"type":393,"tag":554,"props":4469,"children":4470},{"style":620},[4471],{"type":398,"value":912},{"type":393,"tag":554,"props":4473,"children":4474},{"style":566},[4475],{"type":398,"value":638},{"type":393,"tag":554,"props":4477,"children":4478},{"style":620},[4479],{"type":398,"value":2590},{"type":393,"tag":554,"props":4481,"children":4482},{"style":566},[4483],{"type":398,"value":1486},{"type":393,"tag":554,"props":4485,"children":4486},{"class":556,"line":148},[4487,4491,4495,4500],{"type":393,"tag":554,"props":4488,"children":4489},{"style":672},[4490],{"type":398,"value":798},{"type":393,"tag":554,"props":4492,"children":4493},{"style":566},[4494],{"type":398,"value":803},{"type":393,"tag":554,"props":4496,"children":4497},{"style":620},[4498],{"type":398,"value":4499},"\"Multiple columns with double brackets:\"",{"type":393,"tag":554,"props":4501,"children":4502},{"style":566},[4503],{"type":398,"value":813},{"type":393,"tag":554,"props":4505,"children":4506},{"class":556,"line":159},[4507,4511],{"type":393,"tag":554,"props":4508,"children":4509},{"style":672},[4510],{"type":398,"value":798},{"type":393,"tag":554,"props":4512,"children":4513},{"style":566},[4514],{"type":398,"value":4515},"(result)\n",{"type":393,"tag":554,"props":4517,"children":4518},{"class":556,"line":168},[4519,4523],{"type":393,"tag":554,"props":4520,"children":4521},{"style":672},[4522],{"type":398,"value":798},{"type":393,"tag":554,"props":4524,"children":4525},{"style":566},[4526],{"type":398,"value":837},{"type":393,"tag":554,"props":4528,"children":4529},{"class":556,"line":177},[4530],{"type":393,"tag":554,"props":4531,"children":4532},{"emptyLinePlaceholder":12},[4533],{"type":398,"value":587},{"type":393,"tag":554,"props":4535,"children":4536},{"class":556,"line":186},[4537],{"type":393,"tag":554,"props":4538,"children":4539},{"style":593},[4540],{"type":398,"value":4541},"# Single column selection\n",{"type":393,"tag":554,"props":4543,"children":4544},{"class":556,"line":197},[4545,4550,4554,4559,4563],{"type":393,"tag":554,"props":4546,"children":4547},{"style":566},[4548],{"type":398,"value":4549},"single_col ",{"type":393,"tag":554,"props":4551,"children":4552},{"style":560},[4553],{"type":398,"value":609},{"type":393,"tag":554,"props":4555,"children":4556},{"style":566},[4557],{"type":398,"value":4558}," data[",{"type":393,"tag":554,"props":4560,"children":4561},{"style":620},[4562],{"type":398,"value":912},{"type":393,"tag":554,"props":4564,"children":4565},{"style":566},[4566],{"type":398,"value":775},{"type":393,"tag":554,"props":4568,"children":4569},{"class":556,"line":206},[4570,4574,4578,4583],{"type":393,"tag":554,"props":4571,"children":4572},{"style":672},[4573],{"type":398,"value":798},{"type":393,"tag":554,"props":4575,"children":4576},{"style":566},[4577],{"type":398,"value":803},{"type":393,"tag":554,"props":4579,"children":4580},{"style":620},[4581],{"type":398,"value":4582},"\"Single column selection:\"",{"type":393,"tag":554,"props":4584,"children":4585},{"style":566},[4586],{"type":398,"value":813},{"type":393,"tag":554,"props":4588,"children":4589},{"class":556,"line":215},[4590,4594],{"type":393,"tag":554,"props":4591,"children":4592},{"style":672},[4593],{"type":398,"value":798},{"type":393,"tag":554,"props":4595,"children":4596},{"style":566},[4597],{"type":398,"value":4598},"(single_col)\n",{"type":393,"tag":554,"props":4600,"children":4601},{"class":556,"line":224},[4602,4606,4610,4614,4618,4622,4627,4631,4635],{"type":393,"tag":554,"props":4603,"children":4604},{"style":672},[4605],{"type":398,"value":798},{"type":393,"tag":554,"props":4607,"children":4608},{"style":566},[4609],{"type":398,"value":803},{"type":393,"tag":554,"props":4611,"children":4612},{"style":560},[4613],{"type":398,"value":964},{"type":393,"tag":554,"props":4615,"children":4616},{"style":620},[4617],{"type":398,"value":969},{"type":393,"tag":554,"props":4619,"children":4620},{"style":672},[4621],{"type":398,"value":974},{"type":393,"tag":554,"props":4623,"children":4624},{"style":566},[4625],{"type":398,"value":4626},"(single_col)",{"type":393,"tag":554,"props":4628,"children":4629},{"style":672},[4630],{"type":398,"value":984},{"type":393,"tag":554,"props":4632,"children":4633},{"style":620},[4634],{"type":398,"value":989},{"type":393,"tag":554,"props":4636,"children":4637},{"style":566},[4638],{"type":398,"value":813},{"type":393,"tag":554,"props":4640,"children":4641},{"class":556,"line":233},[4642,4646],{"type":393,"tag":554,"props":4643,"children":4644},{"style":672},[4645],{"type":398,"value":798},{"type":393,"tag":554,"props":4647,"children":4648},{"style":566},[4649],{"type":398,"value":837},{"type":393,"tag":554,"props":4651,"children":4652},{"class":556,"line":244},[4653],{"type":393,"tag":554,"props":4654,"children":4655},{"emptyLinePlaceholder":12},[4656],{"type":398,"value":587},{"type":393,"tag":554,"props":4658,"children":4659},{"class":556,"line":253},[4660],{"type":393,"tag":554,"props":4661,"children":4662},{"style":593},[4663],{"type":398,"value":4664},"# Multiple columns vs single column return types\n",{"type":393,"tag":554,"props":4666,"children":4667},{"class":556,"line":262},[4668,4672,4676,4681],{"type":393,"tag":554,"props":4669,"children":4670},{"style":672},[4671],{"type":398,"value":798},{"type":393,"tag":554,"props":4673,"children":4674},{"style":566},[4675],{"type":398,"value":803},{"type":393,"tag":554,"props":4677,"children":4678},{"style":620},[4679],{"type":398,"value":4680},"\"📊 Understanding Return Types:\"",{"type":393,"tag":554,"props":4682,"children":4683},{"style":566},[4684],{"type":398,"value":813},{"type":393,"tag":554,"props":4686,"children":4687},{"class":556,"line":271},[4688,4692,4696,4700,4705,4709,4714,4718,4723,4727,4731],{"type":393,"tag":554,"props":4689,"children":4690},{"style":672},[4691],{"type":398,"value":798},{"type":393,"tag":554,"props":4693,"children":4694},{"style":566},[4695],{"type":398,"value":803},{"type":393,"tag":554,"props":4697,"children":4698},{"style":560},[4699],{"type":398,"value":964},{"type":393,"tag":554,"props":4701,"children":4702},{"style":620},[4703],{"type":398,"value":4704},"\"Single column returns: ",{"type":393,"tag":554,"props":4706,"children":4707},{"style":672},[4708],{"type":398,"value":974},{"type":393,"tag":554,"props":4710,"children":4711},{"style":566},[4712],{"type":398,"value":4713},"(data[",{"type":393,"tag":554,"props":4715,"children":4716},{"style":620},[4717],{"type":398,"value":912},{"type":393,"tag":554,"props":4719,"children":4720},{"style":566},[4721],{"type":398,"value":4722},"])",{"type":393,"tag":554,"props":4724,"children":4725},{"style":672},[4726],{"type":398,"value":984},{"type":393,"tag":554,"props":4728,"children":4729},{"style":620},[4730],{"type":398,"value":989},{"type":393,"tag":554,"props":4732,"children":4733},{"style":566},[4734],{"type":398,"value":813},{"type":393,"tag":554,"props":4736,"children":4737},{"class":556,"line":281},[4738,4742,4746,4750,4755,4759,4764,4768,4772,4776,4781,4785,4789],{"type":393,"tag":554,"props":4739,"children":4740},{"style":672},[4741],{"type":398,"value":798},{"type":393,"tag":554,"props":4743,"children":4744},{"style":566},[4745],{"type":398,"value":803},{"type":393,"tag":554,"props":4747,"children":4748},{"style":560},[4749],{"type":398,"value":964},{"type":393,"tag":554,"props":4751,"children":4752},{"style":620},[4753],{"type":398,"value":4754},"\"Multiple columns return: ",{"type":393,"tag":554,"props":4756,"children":4757},{"style":672},[4758],{"type":398,"value":974},{"type":393,"tag":554,"props":4760,"children":4761},{"style":566},[4762],{"type":398,"value":4763},"(data[[",{"type":393,"tag":554,"props":4765,"children":4766},{"style":620},[4767],{"type":398,"value":912},{"type":393,"tag":554,"props":4769,"children":4770},{"style":566},[4771],{"type":398,"value":638},{"type":393,"tag":554,"props":4773,"children":4774},{"style":620},[4775],{"type":398,"value":2590},{"type":393,"tag":554,"props":4777,"children":4778},{"style":566},[4779],{"type":398,"value":4780},"]])",{"type":393,"tag":554,"props":4782,"children":4783},{"style":672},[4784],{"type":398,"value":984},{"type":393,"tag":554,"props":4786,"children":4787},{"style":620},[4788],{"type":398,"value":989},{"type":393,"tag":554,"props":4790,"children":4791},{"style":566},[4792],{"type":398,"value":813},{"type":393,"tag":528,"props":4794,"children":4796},{"id":4795},"selection-reference-guide",[4797],{"type":398,"value":4798},"📋 Selection Reference Guide",{"type":393,"tag":4800,"props":4801,"children":4802},"table",{},[4803,4827],{"type":393,"tag":4804,"props":4805,"children":4806},"thead",{},[4807],{"type":393,"tag":4808,"props":4809,"children":4810},"tr",{},[4811,4817,4822],{"type":393,"tag":4812,"props":4813,"children":4814},"th",{},[4815],{"type":398,"value":4816},"What You Want",{"type":393,"tag":4812,"props":4818,"children":4819},{},[4820],{"type":398,"value":4821},"Syntax",{"type":393,"tag":4812,"props":4823,"children":4824},{},[4825],{"type":398,"value":4826},"Returns",{"type":393,"tag":4828,"props":4829,"children":4830},"tbody",{},[4831,4854,4875,4895,4915,4935,4956],{"type":393,"tag":4808,"props":4832,"children":4833},{},[4834,4840,4849],{"type":393,"tag":4835,"props":4836,"children":4837},"td",{},[4838],{"type":398,"value":4839},"One column",{"type":393,"tag":4835,"props":4841,"children":4842},{},[4843],{"type":393,"tag":433,"props":4844,"children":4846},{"className":4845},[],[4847],{"type":398,"value":4848},"df['name']",{"type":393,"tag":4835,"props":4850,"children":4851},{},[4852],{"type":398,"value":4853},"Series",{"type":393,"tag":4808,"props":4855,"children":4856},{},[4857,4861,4870],{"type":393,"tag":4835,"props":4858,"children":4859},{},[4860],{"type":398,"value":4174},{"type":393,"tag":4835,"props":4862,"children":4863},{},[4864],{"type":393,"tag":433,"props":4865,"children":4867},{"className":4866},[],[4868],{"type":398,"value":4869},"df[['name', 'age']]",{"type":393,"tag":4835,"props":4871,"children":4872},{},[4873],{"type":398,"value":4874},"DataFrame",{"type":393,"tag":4808,"props":4876,"children":4877},{},[4878,4883,4891],{"type":393,"tag":4835,"props":4879,"children":4880},{},[4881],{"type":398,"value":4882},"First row",{"type":393,"tag":4835,"props":4884,"children":4885},{},[4886],{"type":393,"tag":433,"props":4887,"children":4889},{"className":4888},[],[4890],{"type":398,"value":475},{"type":393,"tag":4835,"props":4892,"children":4893},{},[4894],{"type":398,"value":4853},{"type":393,"tag":4808,"props":4896,"children":4897},{},[4898,4903,4911],{"type":393,"tag":4835,"props":4899,"children":4900},{},[4901],{"type":398,"value":4902},"First 3 rows",{"type":393,"tag":4835,"props":4904,"children":4905},{},[4906],{"type":393,"tag":433,"props":4907,"children":4909},{"className":4908},[],[4910],{"type":398,"value":487},{"type":393,"tag":4835,"props":4912,"children":4913},{},[4914],{"type":398,"value":4874},{"type":393,"tag":4808,"props":4916,"children":4917},{},[4918,4923,4931],{"type":393,"tag":4835,"props":4919,"children":4920},{},[4921],{"type":398,"value":4922},"Specific rows",{"type":393,"tag":4835,"props":4924,"children":4925},{},[4926],{"type":393,"tag":433,"props":4927,"children":4929},{"className":4928},[],[4930],{"type":398,"value":499},{"type":393,"tag":4835,"props":4932,"children":4933},{},[4934],{"type":398,"value":4874},{"type":393,"tag":4808,"props":4936,"children":4937},{},[4938,4943,4952],{"type":393,"tag":4835,"props":4939,"children":4940},{},[4941],{"type":398,"value":4942},"Last row",{"type":393,"tag":4835,"props":4944,"children":4945},{},[4946],{"type":393,"tag":433,"props":4947,"children":4949},{"className":4948},[],[4950],{"type":398,"value":4951},"df.iloc[-1]",{"type":393,"tag":4835,"props":4953,"children":4954},{},[4955],{"type":398,"value":4853},{"type":393,"tag":4808,"props":4957,"children":4958},{},[4959,4964,4973],{"type":393,"tag":4835,"props":4960,"children":4961},{},[4962],{"type":398,"value":4963},"Last 2 rows",{"type":393,"tag":4835,"props":4965,"children":4966},{},[4967],{"type":393,"tag":433,"props":4968,"children":4970},{"className":4969},[],[4971],{"type":398,"value":4972},"df.iloc[-2:]",{"type":393,"tag":4835,"props":4974,"children":4975},{},[4976],{"type":398,"value":4874},{"type":393,"tag":528,"props":4978,"children":4980},{"id":4979},"key-takeaways",[4981],{"type":398,"value":4982},"🎯 Key Takeaways",{"type":393,"tag":407,"props":4984,"children":4988},{"emoji":4985,"title":4986,"type":4987},"📚","Column and Row Selection Essentials","success",[4989,4996,5028,5035,5075,5083,5119,5127,5161,5168,5201],{"type":393,"tag":401,"props":4990,"children":4991},{},[4992],{"type":393,"tag":417,"props":4993,"children":4994},{},[4995],{"type":398,"value":421},{"type":393,"tag":423,"props":4997,"children":4998},{},[4999,5011,5023],{"type":393,"tag":427,"props":5000,"children":5001},{},[5002,5004,5009],{"type":398,"value":5003},"Single: ",{"type":393,"tag":433,"props":5005,"children":5007},{"className":5006},[],[5008],{"type":398,"value":4164},{"type":398,"value":5010}," → Series",{"type":393,"tag":427,"props":5012,"children":5013},{},[5014,5016,5021],{"type":398,"value":5015},"Multiple: ",{"type":393,"tag":433,"props":5017,"children":5019},{"className":5018},[],[5020],{"type":398,"value":451},{"type":398,"value":5022}," → DataFrame",{"type":393,"tag":427,"props":5024,"children":5025},{},[5026],{"type":398,"value":5027},"Always use double brackets for multiple columns!",{"type":393,"tag":401,"props":5029,"children":5030},{},[5031],{"type":393,"tag":417,"props":5032,"children":5033},{},[5034],{"type":398,"value":461},{"type":393,"tag":423,"props":5036,"children":5037},{},[5038,5050,5062],{"type":393,"tag":427,"props":5039,"children":5040},{},[5041,5043,5048],{"type":398,"value":5042},"By position: ",{"type":393,"tag":433,"props":5044,"children":5046},{"className":5045},[],[5047],{"type":398,"value":475},{"type":398,"value":5049}," (first row)",{"type":393,"tag":427,"props":5051,"children":5052},{},[5053,5055,5060],{"type":398,"value":5054},"Range: ",{"type":393,"tag":433,"props":5056,"children":5058},{"className":5057},[],[5059],{"type":398,"value":487},{"type":398,"value":5061}," (first 3 rows)",{"type":393,"tag":427,"props":5063,"children":5064},{},[5065,5067,5073],{"type":398,"value":5066},"Specific: ",{"type":393,"tag":433,"props":5068,"children":5070},{"className":5069},[],[5071],{"type":398,"value":5072},"df.iloc[[0, 2]]",{"type":398,"value":5074}," (1st and 3rd rows)",{"type":393,"tag":401,"props":5076,"children":5077},{},[5078],{"type":393,"tag":417,"props":5079,"children":5080},{},[5081],{"type":398,"value":5082},"Combining Selections:",{"type":393,"tag":423,"props":5084,"children":5085},{},[5086,5097,5108],{"type":393,"tag":427,"props":5087,"children":5088},{},[5089,5091],{"type":398,"value":5090},"First select rows: ",{"type":393,"tag":433,"props":5092,"children":5094},{"className":5093},[],[5095],{"type":398,"value":5096},"df.iloc[0:2]",{"type":393,"tag":427,"props":5098,"children":5099},{},[5100,5102],{"type":398,"value":5101},"Then select columns: ",{"type":393,"tag":433,"props":5103,"children":5105},{"className":5104},[],[5106],{"type":398,"value":5107},"[['col1', 'col2']]",{"type":393,"tag":427,"props":5109,"children":5110},{},[5111,5113],{"type":398,"value":5112},"Chain them: ",{"type":393,"tag":433,"props":5114,"children":5116},{"className":5115},[],[5117],{"type":398,"value":5118},"df.iloc[0:2][['col1', 'col2']]",{"type":393,"tag":401,"props":5120,"children":5121},{},[5122],{"type":393,"tag":417,"props":5123,"children":5124},{},[5125],{"type":398,"value":5126},"Best Practices:",{"type":393,"tag":423,"props":5128,"children":5129},{},[5130,5135,5140,5156],{"type":393,"tag":427,"props":5131,"children":5132},{},[5133],{"type":398,"value":5134},"Start with columns you need most",{"type":393,"tag":427,"props":5136,"children":5137},{},[5138],{"type":398,"value":5139},"Use meaningful variable names for selections",{"type":393,"tag":427,"props":5141,"children":5142},{},[5143,5145,5150,5151],{"type":398,"value":5144},"Check your selection with ",{"type":393,"tag":433,"props":5146,"children":5148},{"className":5147},[],[5149],{"type":398,"value":4232},{"type":398,"value":4234},{"type":393,"tag":433,"props":5152,"children":5154},{"className":5153},[],[5155],{"type":398,"value":4240},{"type":393,"tag":427,"props":5157,"children":5158},{},[5159],{"type":398,"value":5160},"Remember: selections create new DataFrames/Series",{"type":393,"tag":401,"props":5162,"children":5163},{},[5164],{"type":393,"tag":417,"props":5165,"children":5166},{},[5167],{"type":398,"value":4145},{"type":393,"tag":423,"props":5169,"children":5170},{},[5171,5181,5191],{"type":393,"tag":427,"props":5172,"children":5173},{},[5174,5179],{"type":393,"tag":417,"props":5175,"children":5176},{},[5177],{"type":398,"value":5178},"Single brackets",{"type":398,"value":5180}," = one thing (one column)",{"type":393,"tag":427,"props":5182,"children":5183},{},[5184,5189],{"type":393,"tag":417,"props":5185,"children":5186},{},[5187],{"type":398,"value":5188},"Double brackets",{"type":398,"value":5190}," = multiple things (multiple columns)",{"type":393,"tag":427,"props":5192,"children":5193},{},[5194,5199],{"type":393,"tag":417,"props":5195,"children":5196},{},[5197],{"type":398,"value":5198},"iloc",{"type":398,"value":5200}," = integer location (position-based)",{"type":393,"tag":401,"props":5202,"children":5203},{},[5204,5208],{"type":393,"tag":417,"props":5205,"children":5206},{},[5207],{"type":398,"value":508},{"type":398,"value":5209}," Good selection makes your data easier to work with!",{"type":393,"tag":528,"props":5211,"children":5213},{"id":5212},"practice-selection",[5214],{"type":398,"value":5215},"🎮 Practice Selection",{"type":393,"tag":401,"props":5217,"children":5218},{},[5219],{"type":398,"value":5220},"Let's practice with a realistic dataset:",{"type":393,"tag":540,"props":5222,"children":5223},{},[5224],{"type":393,"tag":544,"props":5225,"children":5227},{"className":546,"code":5226,"language":548,"meta":6,"style":6},"import pandas as pd\n\n# Practice dataset\norders = pd.DataFrame({\n    'order_id': [1001, 1002, 1003, 1004],\n    'customer': ['Alice', 'Bob', 'Charlie', 'Alice'],\n    'product': ['Laptop', 'Mouse', 'Keyboard', 'Monitor'],\n    'quantity': [1, 2, 1, 1],\n    'price': [999, 25, 75, 300]\n})\n\nprint(\"📦 Orders Dataset:\")\nprint(orders)\nprint()\n\nprint(\"🎯 Practice Selections:\")\nprint()\n\nprint(\"1️⃣ Customer and product only:\")\nprint(orders[['customer', 'product']])\nprint()\n\nprint(\"2️⃣ First 2 orders:\")\nprint(orders.iloc[0:2])\nprint()\n\nprint(\"3️⃣ Financial data (quantity and price):\")\nfinancial = orders[['quantity', 'price']]\nprint(financial)\nprint(f\"Total revenue: ${(financial['quantity'] * financial['price']).sum()}\")\n",[5228],{"type":393,"tag":433,"props":5229,"children":5230},{"__ignoreMap":6},[5231,5250,5257,5265,5281,5329,5373,5416,5460,5503,5510,5517,5537,5549,5560,5567,5587,5598,5605,5625,5655,5666,5673,5693,5722,5733,5740,5760,5794,5806],{"type":393,"tag":554,"props":5232,"children":5233},{"class":556,"line":11},[5234,5238,5242,5246],{"type":393,"tag":554,"props":5235,"children":5236},{"style":560},[5237],{"type":398,"value":563},{"type":393,"tag":554,"props":5239,"children":5240},{"style":566},[5241],{"type":398,"value":569},{"type":393,"tag":554,"props":5243,"children":5244},{"style":560},[5245],{"type":398,"value":574},{"type":393,"tag":554,"props":5247,"children":5248},{"style":566},[5249],{"type":398,"value":579},{"type":393,"tag":554,"props":5251,"children":5252},{"class":556,"line":27},[5253],{"type":393,"tag":554,"props":5254,"children":5255},{"emptyLinePlaceholder":12},[5256],{"type":398,"value":587},{"type":393,"tag":554,"props":5258,"children":5259},{"class":556,"line":36},[5260],{"type":393,"tag":554,"props":5261,"children":5262},{"style":593},[5263],{"type":398,"value":5264},"# Practice dataset\n",{"type":393,"tag":554,"props":5266,"children":5267},{"class":556,"line":45},[5268,5273,5277],{"type":393,"tag":554,"props":5269,"children":5270},{"style":566},[5271],{"type":398,"value":5272},"orders ",{"type":393,"tag":554,"props":5274,"children":5275},{"style":560},[5276],{"type":398,"value":609},{"type":393,"tag":554,"props":5278,"children":5279},{"style":566},[5280],{"type":398,"value":614},{"type":393,"tag":554,"props":5282,"children":5283},{"class":556,"line":54},[5284,5289,5293,5298,5302,5307,5311,5316,5320,5325],{"type":393,"tag":554,"props":5285,"children":5286},{"style":620},[5287],{"type":398,"value":5288},"    'order_id'",{"type":393,"tag":554,"props":5290,"children":5291},{"style":566},[5292],{"type":398,"value":628},{"type":393,"tag":554,"props":5294,"children":5295},{"style":672},[5296],{"type":398,"value":5297},"1001",{"type":393,"tag":554,"props":5299,"children":5300},{"style":566},[5301],{"type":398,"value":638},{"type":393,"tag":554,"props":5303,"children":5304},{"style":672},[5305],{"type":398,"value":5306},"1002",{"type":393,"tag":554,"props":5308,"children":5309},{"style":566},[5310],{"type":398,"value":638},{"type":393,"tag":554,"props":5312,"children":5313},{"style":672},[5314],{"type":398,"value":5315},"1003",{"type":393,"tag":554,"props":5317,"children":5318},{"style":566},[5319],{"type":398,"value":638},{"type":393,"tag":554,"props":5321,"children":5322},{"style":672},[5323],{"type":398,"value":5324},"1004",{"type":393,"tag":554,"props":5326,"children":5327},{"style":566},[5328],{"type":398,"value":657},{"type":393,"tag":554,"props":5330,"children":5331},{"class":556,"line":63},[5332,5337,5341,5345,5349,5353,5357,5361,5365,5369],{"type":393,"tag":554,"props":5333,"children":5334},{"style":620},[5335],{"type":398,"value":5336},"    'customer'",{"type":393,"tag":554,"props":5338,"children":5339},{"style":566},[5340],{"type":398,"value":628},{"type":393,"tag":554,"props":5342,"children":5343},{"style":620},[5344],{"type":398,"value":633},{"type":393,"tag":554,"props":5346,"children":5347},{"style":566},[5348],{"type":398,"value":638},{"type":393,"tag":554,"props":5350,"children":5351},{"style":620},[5352],{"type":398,"value":643},{"type":393,"tag":554,"props":5354,"children":5355},{"style":566},[5356],{"type":398,"value":638},{"type":393,"tag":554,"props":5358,"children":5359},{"style":620},[5360],{"type":398,"value":652},{"type":393,"tag":554,"props":5362,"children":5363},{"style":566},[5364],{"type":398,"value":638},{"type":393,"tag":554,"props":5366,"children":5367},{"style":620},[5368],{"type":398,"value":633},{"type":393,"tag":554,"props":5370,"children":5371},{"style":566},[5372],{"type":398,"value":657},{"type":393,"tag":554,"props":5374,"children":5375},{"class":556,"line":72},[5376,5380,5384,5388,5392,5396,5400,5404,5408,5412],{"type":393,"tag":554,"props":5377,"children":5378},{"style":620},[5379],{"type":398,"value":1697},{"type":393,"tag":554,"props":5381,"children":5382},{"style":566},[5383],{"type":398,"value":628},{"type":393,"tag":554,"props":5385,"children":5386},{"style":620},[5387],{"type":398,"value":1706},{"type":393,"tag":554,"props":5389,"children":5390},{"style":566},[5391],{"type":398,"value":638},{"type":393,"tag":554,"props":5393,"children":5394},{"style":620},[5395],{"type":398,"value":1715},{"type":393,"tag":554,"props":5397,"children":5398},{"style":566},[5399],{"type":398,"value":638},{"type":393,"tag":554,"props":5401,"children":5402},{"style":620},[5403],{"type":398,"value":1724},{"type":393,"tag":554,"props":5405,"children":5406},{"style":566},[5407],{"type":398,"value":638},{"type":393,"tag":554,"props":5409,"children":5410},{"style":620},[5411],{"type":398,"value":1733},{"type":393,"tag":554,"props":5413,"children":5414},{"style":566},[5415],{"type":398,"value":657},{"type":393,"tag":554,"props":5417,"children":5418},{"class":556,"line":83},[5419,5423,5427,5432,5436,5440,5444,5448,5452,5456],{"type":393,"tag":554,"props":5420,"children":5421},{"style":620},[5422],{"type":398,"value":2899},{"type":393,"tag":554,"props":5424,"children":5425},{"style":566},[5426],{"type":398,"value":628},{"type":393,"tag":554,"props":5428,"children":5429},{"style":672},[5430],{"type":398,"value":5431},"1",{"type":393,"tag":554,"props":5433,"children":5434},{"style":566},[5435],{"type":398,"value":638},{"type":393,"tag":554,"props":5437,"children":5438},{"style":672},[5439],{"type":398,"value":1319},{"type":393,"tag":554,"props":5441,"children":5442},{"style":566},[5443],{"type":398,"value":638},{"type":393,"tag":554,"props":5445,"children":5446},{"style":672},[5447],{"type":398,"value":5431},{"type":393,"tag":554,"props":5449,"children":5450},{"style":566},[5451],{"type":398,"value":638},{"type":393,"tag":554,"props":5453,"children":5454},{"style":672},[5455],{"type":398,"value":5431},{"type":393,"tag":554,"props":5457,"children":5458},{"style":566},[5459],{"type":398,"value":657},{"type":393,"tag":554,"props":5461,"children":5462},{"class":556,"line":92},[5463,5467,5471,5475,5479,5483,5487,5491,5495,5499],{"type":393,"tag":554,"props":5464,"children":5465},{"style":620},[5466],{"type":398,"value":1745},{"type":393,"tag":554,"props":5468,"children":5469},{"style":566},[5470],{"type":398,"value":628},{"type":393,"tag":554,"props":5472,"children":5473},{"style":672},[5474],{"type":398,"value":1754},{"type":393,"tag":554,"props":5476,"children":5477},{"style":566},[5478],{"type":398,"value":638},{"type":393,"tag":554,"props":5480,"children":5481},{"style":672},[5482],{"type":398,"value":1763},{"type":393,"tag":554,"props":5484,"children":5485},{"style":566},[5486],{"type":398,"value":638},{"type":393,"tag":554,"props":5488,"children":5489},{"style":672},[5490],{"type":398,"value":1772},{"type":393,"tag":554,"props":5492,"children":5493},{"style":566},[5494],{"type":398,"value":638},{"type":393,"tag":554,"props":5496,"children":5497},{"style":672},[5498],{"type":398,"value":1781},{"type":393,"tag":554,"props":5500,"children":5501},{"style":566},[5502],{"type":398,"value":775},{"type":393,"tag":554,"props":5504,"children":5505},{"class":556,"line":101},[5506],{"type":393,"tag":554,"props":5507,"children":5508},{"style":566},[5509],{"type":398,"value":783},{"type":393,"tag":554,"props":5511,"children":5512},{"class":556,"line":110},[5513],{"type":393,"tag":554,"props":5514,"children":5515},{"emptyLinePlaceholder":12},[5516],{"type":398,"value":587},{"type":393,"tag":554,"props":5518,"children":5519},{"class":556,"line":121},[5520,5524,5528,5533],{"type":393,"tag":554,"props":5521,"children":5522},{"style":672},[5523],{"type":398,"value":798},{"type":393,"tag":554,"props":5525,"children":5526},{"style":566},[5527],{"type":398,"value":803},{"type":393,"tag":554,"props":5529,"children":5530},{"style":620},[5531],{"type":398,"value":5532},"\"📦 Orders Dataset:\"",{"type":393,"tag":554,"props":5534,"children":5535},{"style":566},[5536],{"type":398,"value":813},{"type":393,"tag":554,"props":5538,"children":5539},{"class":556,"line":130},[5540,5544],{"type":393,"tag":554,"props":5541,"children":5542},{"style":672},[5543],{"type":398,"value":798},{"type":393,"tag":554,"props":5545,"children":5546},{"style":566},[5547],{"type":398,"value":5548},"(orders)\n",{"type":393,"tag":554,"props":5550,"children":5551},{"class":556,"line":139},[5552,5556],{"type":393,"tag":554,"props":5553,"children":5554},{"style":672},[5555],{"type":398,"value":798},{"type":393,"tag":554,"props":5557,"children":5558},{"style":566},[5559],{"type":398,"value":837},{"type":393,"tag":554,"props":5561,"children":5562},{"class":556,"line":148},[5563],{"type":393,"tag":554,"props":5564,"children":5565},{"emptyLinePlaceholder":12},[5566],{"type":398,"value":587},{"type":393,"tag":554,"props":5568,"children":5569},{"class":556,"line":159},[5570,5574,5578,5583],{"type":393,"tag":554,"props":5571,"children":5572},{"style":672},[5573],{"type":398,"value":798},{"type":393,"tag":554,"props":5575,"children":5576},{"style":566},[5577],{"type":398,"value":803},{"type":393,"tag":554,"props":5579,"children":5580},{"style":620},[5581],{"type":398,"value":5582},"\"🎯 Practice Selections:\"",{"type":393,"tag":554,"props":5584,"children":5585},{"style":566},[5586],{"type":398,"value":813},{"type":393,"tag":554,"props":5588,"children":5589},{"class":556,"line":168},[5590,5594],{"type":393,"tag":554,"props":5591,"children":5592},{"style":672},[5593],{"type":398,"value":798},{"type":393,"tag":554,"props":5595,"children":5596},{"style":566},[5597],{"type":398,"value":837},{"type":393,"tag":554,"props":5599,"children":5600},{"class":556,"line":177},[5601],{"type":393,"tag":554,"props":5602,"children":5603},{"emptyLinePlaceholder":12},[5604],{"type":398,"value":587},{"type":393,"tag":554,"props":5606,"children":5607},{"class":556,"line":186},[5608,5612,5616,5621],{"type":393,"tag":554,"props":5609,"children":5610},{"style":672},[5611],{"type":398,"value":798},{"type":393,"tag":554,"props":5613,"children":5614},{"style":566},[5615],{"type":398,"value":803},{"type":393,"tag":554,"props":5617,"children":5618},{"style":620},[5619],{"type":398,"value":5620},"\"1️⃣ Customer and product only:\"",{"type":393,"tag":554,"props":5622,"children":5623},{"style":566},[5624],{"type":398,"value":813},{"type":393,"tag":554,"props":5626,"children":5627},{"class":556,"line":197},[5628,5632,5637,5642,5646,5650],{"type":393,"tag":554,"props":5629,"children":5630},{"style":672},[5631],{"type":398,"value":798},{"type":393,"tag":554,"props":5633,"children":5634},{"style":566},[5635],{"type":398,"value":5636},"(orders[[",{"type":393,"tag":554,"props":5638,"children":5639},{"style":620},[5640],{"type":398,"value":5641},"'customer'",{"type":393,"tag":554,"props":5643,"children":5644},{"style":566},[5645],{"type":398,"value":638},{"type":393,"tag":554,"props":5647,"children":5648},{"style":620},[5649],{"type":398,"value":3136},{"type":393,"tag":554,"props":5651,"children":5652},{"style":566},[5653],{"type":398,"value":5654},"]])\n",{"type":393,"tag":554,"props":5656,"children":5657},{"class":556,"line":206},[5658,5662],{"type":393,"tag":554,"props":5659,"children":5660},{"style":672},[5661],{"type":398,"value":798},{"type":393,"tag":554,"props":5663,"children":5664},{"style":566},[5665],{"type":398,"value":837},{"type":393,"tag":554,"props":5667,"children":5668},{"class":556,"line":215},[5669],{"type":393,"tag":554,"props":5670,"children":5671},{"emptyLinePlaceholder":12},[5672],{"type":398,"value":587},{"type":393,"tag":554,"props":5674,"children":5675},{"class":556,"line":224},[5676,5680,5684,5689],{"type":393,"tag":554,"props":5677,"children":5678},{"style":672},[5679],{"type":398,"value":798},{"type":393,"tag":554,"props":5681,"children":5682},{"style":566},[5683],{"type":398,"value":803},{"type":393,"tag":554,"props":5685,"children":5686},{"style":620},[5687],{"type":398,"value":5688},"\"2️⃣ First 2 orders:\"",{"type":393,"tag":554,"props":5690,"children":5691},{"style":566},[5692],{"type":398,"value":813},{"type":393,"tag":554,"props":5694,"children":5695},{"class":556,"line":233},[5696,5700,5705,5709,5713,5717],{"type":393,"tag":554,"props":5697,"children":5698},{"style":672},[5699],{"type":398,"value":798},{"type":393,"tag":554,"props":5701,"children":5702},{"style":566},[5703],{"type":398,"value":5704},"(orders.iloc[",{"type":393,"tag":554,"props":5706,"children":5707},{"style":672},[5708],{"type":398,"value":1965},{"type":393,"tag":554,"props":5710,"children":5711},{"style":566},[5712],{"type":398,"value":2052},{"type":393,"tag":554,"props":5714,"children":5715},{"style":672},[5716],{"type":398,"value":1319},{"type":393,"tag":554,"props":5718,"children":5719},{"style":566},[5720],{"type":398,"value":5721},"])\n",{"type":393,"tag":554,"props":5723,"children":5724},{"class":556,"line":244},[5725,5729],{"type":393,"tag":554,"props":5726,"children":5727},{"style":672},[5728],{"type":398,"value":798},{"type":393,"tag":554,"props":5730,"children":5731},{"style":566},[5732],{"type":398,"value":837},{"type":393,"tag":554,"props":5734,"children":5735},{"class":556,"line":253},[5736],{"type":393,"tag":554,"props":5737,"children":5738},{"emptyLinePlaceholder":12},[5739],{"type":398,"value":587},{"type":393,"tag":554,"props":5741,"children":5742},{"class":556,"line":262},[5743,5747,5751,5756],{"type":393,"tag":554,"props":5744,"children":5745},{"style":672},[5746],{"type":398,"value":798},{"type":393,"tag":554,"props":5748,"children":5749},{"style":566},[5750],{"type":398,"value":803},{"type":393,"tag":554,"props":5752,"children":5753},{"style":620},[5754],{"type":398,"value":5755},"\"3️⃣ Financial data (quantity and price):\"",{"type":393,"tag":554,"props":5757,"children":5758},{"style":566},[5759],{"type":398,"value":813},{"type":393,"tag":554,"props":5761,"children":5762},{"class":556,"line":271},[5763,5768,5772,5777,5781,5785,5790],{"type":393,"tag":554,"props":5764,"children":5765},{"style":566},[5766],{"type":398,"value":5767},"financial ",{"type":393,"tag":554,"props":5769,"children":5770},{"style":560},[5771],{"type":398,"value":609},{"type":393,"tag":554,"props":5773,"children":5774},{"style":566},[5775],{"type":398,"value":5776}," orders[[",{"type":393,"tag":554,"props":5778,"children":5779},{"style":620},[5780],{"type":398,"value":3244},{"type":393,"tag":554,"props":5782,"children":5783},{"style":566},[5784],{"type":398,"value":638},{"type":393,"tag":554,"props":5786,"children":5787},{"style":620},[5788],{"type":398,"value":5789},"'price'",{"type":393,"tag":554,"props":5791,"children":5792},{"style":566},[5793],{"type":398,"value":1486},{"type":393,"tag":554,"props":5795,"children":5796},{"class":556,"line":281},[5797,5801],{"type":393,"tag":554,"props":5798,"children":5799},{"style":672},[5800],{"type":398,"value":798},{"type":393,"tag":554,"props":5802,"children":5803},{"style":566},[5804],{"type":398,"value":5805},"(financial)\n",{"type":393,"tag":554,"props":5807,"children":5808},{"class":556,"line":290},[5809,5813,5817,5821,5826,5830,5835,5839,5844,5849,5854,5858,5863,5867,5871],{"type":393,"tag":554,"props":5810,"children":5811},{"style":672},[5812],{"type":398,"value":798},{"type":393,"tag":554,"props":5814,"children":5815},{"style":566},[5816],{"type":398,"value":803},{"type":393,"tag":554,"props":5818,"children":5819},{"style":560},[5820],{"type":398,"value":964},{"type":393,"tag":554,"props":5822,"children":5823},{"style":620},[5824],{"type":398,"value":5825},"\"Total revenue: $",{"type":393,"tag":554,"props":5827,"children":5828},{"style":672},[5829],{"type":398,"value":1101},{"type":393,"tag":554,"props":5831,"children":5832},{"style":566},[5833],{"type":398,"value":5834},"(financial[",{"type":393,"tag":554,"props":5836,"children":5837},{"style":620},[5838],{"type":398,"value":3244},{"type":393,"tag":554,"props":5840,"children":5841},{"style":566},[5842],{"type":398,"value":5843},"] ",{"type":393,"tag":554,"props":5845,"children":5846},{"style":560},[5847],{"type":398,"value":5848},"*",{"type":393,"tag":554,"props":5850,"children":5851},{"style":566},[5852],{"type":398,"value":5853}," financial[",{"type":393,"tag":554,"props":5855,"children":5856},{"style":620},[5857],{"type":398,"value":5789},{"type":393,"tag":554,"props":5859,"children":5860},{"style":566},[5861],{"type":398,"value":5862},"]).sum()",{"type":393,"tag":554,"props":5864,"children":5865},{"style":672},[5866],{"type":398,"value":984},{"type":393,"tag":554,"props":5868,"children":5869},{"style":620},[5870],{"type":398,"value":989},{"type":393,"tag":554,"props":5872,"children":5873},{"style":566},[5874],{"type":398,"value":813},{"type":393,"tag":528,"props":5876,"children":5878},{"id":5877},"whats-next",[5879],{"type":398,"value":5880},"🚀 What's Next?",{"type":393,"tag":401,"props":5882,"children":5883},{},[5884,5886,5892,5894,5899],{"type":398,"value":5885},"Great! You now know the basics of selecting columns and rows. Next, let's learn about more precise selection methods using ",{"type":393,"tag":433,"props":5887,"children":5889},{"className":5888},[],[5890],{"type":398,"value":5891},"loc",{"type":398,"value":5893}," and ",{"type":393,"tag":433,"props":5895,"children":5897},{"className":5896},[],[5898],{"type":398,"value":5198},{"type":398,"value":5900},".",{"type":393,"tag":401,"props":5902,"children":5903},{},[5904,5909,5910],{"type":393,"tag":417,"props":5905,"children":5906},{},[5907],{"type":398,"value":5908},"Continue to",{"type":398,"value":4158},{"type":393,"tag":5911,"props":5912,"children":5913},"a",{"href":164},[5914],{"type":398,"value":165},{"type":393,"tag":401,"props":5916,"children":5917},{},[5918],{"type":398,"value":5919},"You're building solid selection skills! 📋🎯",{"type":393,"tag":5921,"props":5922,"children":5923},"style",{},[5924],{"type":398,"value":5925},"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":5927},[5928,5929,5930,5931,5932,5933,5934,5935,5936,5937,5938],{"id":530,"depth":27,"text":533},{"id":1121,"depth":27,"text":1124},{"id":1621,"depth":27,"text":1624},{"id":2186,"depth":27,"text":2189},{"id":2748,"depth":27,"text":2751},{"id":3398,"depth":27,"text":3401},{"id":4046,"depth":27,"text":4049},{"id":4795,"depth":27,"text":4798},{"id":4979,"depth":27,"text":4982},{"id":5212,"depth":27,"text":5215},{"id":5877,"depth":27,"text":5880},1782373722417]