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