{"id":1987,"date":"2025-08-28T09:49:14","date_gmt":"2025-08-28T09:49:14","guid":{"rendered":"https:\/\/itxperts.co.in\/blog\/?p=1987"},"modified":"2025-08-28T09:49:41","modified_gmt":"2025-08-28T09:49:41","slug":"importing-exporting-csv-dataframes-class12-ip","status":"publish","type":"post","link":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/","title":{"rendered":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes"},"content":{"rendered":"\n<p>Working with data is an important task in programming. In Class 12 Informatics Practices, we use the Pandas library to handle data. One of the most common formats used to store and exchange data is CSV which stands for Comma Separated Values. Pandas provides simple functions to import data from a CSV file into a DataFrame and export data from a DataFrame back to a CSV file.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What is a CSV File<\/h2>\n\n\n\n<p>A CSV file is a plain text file where each line represents a record and values are separated by commas. For example a file named students.csv may look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RollNo,Name,Marks\n101,Anita,92\n102,Rahul,85\n103,Simran,78\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Importing CSV File into a DataFrame<\/h2>\n\n\n\n<p>To load data from a CSV file into a Pandas DataFrame we use the read_csv function.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\n\ndf = pd.read_csv(\"students.csv\")\n\nprint(df)\n<\/code><\/pre>\n\n\n\n<p>Explanation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>pd.read_csv(&#8220;filename.csv&#8221;) reads the CSV file into a DataFrame<\/li>\n\n\n\n<li>By default it assumes comma as the separator<\/li>\n<\/ul>\n\n\n\n<p>Some useful parameters of read_csv are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sep \u2192 to specify a different separator, for example sep=&#8221;;&#8221;<\/li>\n\n\n\n<li>header \u2192 row number to use as column names, header=None if no header row exists<\/li>\n\n\n\n<li>index_col \u2192 to set a column as index<\/li>\n\n\n\n<li>usecols \u2192 to load only specific columns<\/li>\n<\/ul>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df = pd.read_csv(\"students.csv\", usecols=&#91;\"RollNo\", \"Name\"])\nprint(df)\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Exporting DataFrame to CSV File<\/h2>\n\n\n\n<p>To save a DataFrame into a CSV file we use the to_csv function.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df.to_csv(\"output.csv\", index=False)\n<\/code><\/pre>\n\n\n\n<p>Explanation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>to_csv(&#8220;filename.csv&#8221;) saves the DataFrame to a CSV file<\/li>\n\n\n\n<li>index=False prevents writing row numbers into the file<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example Program<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\n\n# Import data\ndf = pd.read_csv(\"students.csv\")\nprint(\"Original Data:\")\nprint(df)\n\n# Add new column\ndf&#91;\"Grade\"] = &#91;\"A\", \"B\", \"C\"]\n\n# Export updated DataFrame\ndf.to_csv(\"students_updated.csv\", index=False)\n\nprint(\"Updated data saved successfully\")\n<\/code><\/pre>\n\n\n\n<p>The new file students_updated.csv will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RollNo,Name,Marks,Grade\n101,Anita,92,A\n102,Rahul,85,B\n103,Simran,78,C\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>read_csv is used to import data from a CSV file into a DataFrame<\/li>\n\n\n\n<li>to_csv is used to export a DataFrame to a CSV file<\/li>\n\n\n\n<li>CSV is a simple and widely used file format for storing and exchanging data<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Short Revision Table \u2013 Importing and Exporting CSV in Pandas<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Operation<\/th><th>Function \/ Parameter<\/th><th>Example Code<\/th><\/tr><\/thead><tbody><tr><td>Import CSV into DataFrame<\/td><td><code>read_csv(\"filename.csv\")<\/code><\/td><td><code>df = pd.read_csv(\"data.csv\")<\/code><\/td><\/tr><tr><td>Specify separator<\/td><td><code>sep<\/code> parameter<\/td><td><code>pd.read_csv(\"data.csv\", sep=\";\")<\/code><\/td><\/tr><tr><td>Read file without header<\/td><td><code>header=None<\/code><\/td><td><code>pd.read_csv(\"data.csv\", header=None)<\/code><\/td><\/tr><tr><td>Set column as index<\/td><td><code>index_col<\/code> parameter<\/td><td><code>pd.read_csv(\"data.csv\", index_col=\"RollNo\")<\/code><\/td><\/tr><tr><td>Load only specific columns<\/td><td><code>usecols<\/code> parameter<\/td><td><code>pd.read_csv(\"data.csv\", usecols=[\"Name\",\"Marks\"])<\/code><\/td><\/tr><tr><td>Export DataFrame to CSV<\/td><td><code>to_csv(\"filename.csv\")<\/code><\/td><td><code>df.to_csv(\"output.csv\")<\/code><\/td><\/tr><tr><td>Export without row index<\/td><td><code>index=False<\/code><\/td><td><code>df.to_csv(\"output.csv\", index=False)<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Practice Questions with Answers<\/h2>\n\n\n\n<p><strong>Q1. What is a CSV file Give an example<\/strong><br>Ans. A CSV file is a text file in which data is stored in tabular form. Each line represents a record and values are separated by commas.<br>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RollNo,Name,Marks\n101,Anita,92\n102,Rahul,85\n<\/code><\/pre>\n\n\n\n<p><strong>Q2. Name the function used to import a CSV file into a Pandas DataFrame<\/strong><br>Ans. The function used is <code>read_csv()<\/code><\/p>\n\n\n\n<p><strong>Q3. Which parameter of read_csv is used to select only specific columns from the file<\/strong><br>Ans. The parameter <code>usecols<\/code> is used to select specific columns.<\/p>\n\n\n\n<p><strong>Q4. Write a short program to read a CSV file named marks.csv and display only the columns RollNo and Marks<\/strong><br>Ans.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\ndf = pd.read_csv(\"marks.csv\", usecols=&#91;\"RollNo\", \"Marks\"])\nprint(df)\n<\/code><\/pre>\n\n\n\n<p><strong>Q5. How can you save a DataFrame without row numbers into a CSV file<\/strong><br>Ans. Use the parameter <code>index=False<\/code> with the to_csv function.<br>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df.to_csv(\"output.csv\", index=False)\n<\/code><\/pre>\n\n\n\n<p><strong>Q6. Write a program to read a CSV file students.csv add a new column Grade with values A B and C and then save the updated DataFrame into a new file students_new.csv<\/strong><br>Ans.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\n\ndf = pd.read_csv(\"students.csv\")\ndf&#91;\"Grade\"] = &#91;\"A\", \"B\", \"C\"]\ndf.to_csv(\"students_new.csv\", index=False)\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Working with data is an important task in programming. In Class 12 Informatics Practices, we use the Pandas library to handle data. One of the most common formats used to store and exchange data is CSV which stands for Comma Separated Values. Pandas provides simple functions to import data from a CSV file into a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1988,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"googlesitekit_rrm_CAow44u0DA:productID":"","footnotes":""},"categories":[44],"tags":[],"class_list":["post-1987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes<\/title>\n<meta name=\"description\" content=\"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes\" \/>\n<meta property=\"og:description\" content=\"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\" \/>\n<meta property=\"og:site_name\" content=\"Itxperts\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/itxperts.co.in\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-28T09:49:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-28T09:49:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"@mritxperts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"@mritxperts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\"},\"author\":{\"name\":\"@mritxperts\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\"},\"headline\":\"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes\",\"datePublished\":\"2025-08-28T09:49:14+00:00\",\"dateModified\":\"2025-08-28T09:49:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\"},\"wordCount\":507,\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png\",\"articleSection\":[\"Learn Python\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\",\"name\":\"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png\",\"datePublished\":\"2025-08-28T09:49:14+00:00\",\"dateModified\":\"2025-08-28T09:49:41+00:00\",\"description\":\"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.\",\"breadcrumb\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itxperts.co.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"name\":\"Itxperts\",\"description\":\"Leading Website Design Company in Madhya Pradesh\",\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"alternateName\":\"Itxperts | Website Development in Madhya Pradesh\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\",\"name\":\"Itxperts\",\"alternateName\":\"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"width\":512,\"height\":512,\"caption\":\"Itxperts\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/itxperts.co.in\",\"https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/\",\"https:\/\/www.instagram.com\/itxperts.co.in\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\",\"name\":\"@mritxperts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"caption\":\"@mritxperts\"},\"description\":\"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.\",\"sameAs\":[\"https:\/\/itxperts.co.in\/blog\"],\"url\":\"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes","description":"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/","og_locale":"en_US","og_type":"article","og_title":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes","og_description":"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.","og_url":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/","og_site_name":"Itxperts","article_publisher":"https:\/\/www.facebook.com\/itxperts.co.in","article_published_time":"2025-08-28T09:49:14+00:00","article_modified_time":"2025-08-28T09:49:41+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png","type":"image\/png"}],"author":"@mritxperts","twitter_card":"summary_large_image","twitter_misc":{"Written by":"@mritxperts","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#article","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/"},"author":{"name":"@mritxperts","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6"},"headline":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes","datePublished":"2025-08-28T09:49:14+00:00","dateModified":"2025-08-28T09:49:41+00:00","mainEntityOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/"},"wordCount":507,"publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png","articleSection":["Learn Python"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/","url":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/","name":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png","datePublished":"2025-08-28T09:49:14+00:00","dateModified":"2025-08-28T09:49:41+00:00","description":"Learn Class 12 Informatics Practices notes on importing and exporting data between CSV files and Pandas DataFrames. Includes examples, summary, and practice questions with answers for CBSE exams.","breadcrumb":{"@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#primaryimage","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/08\/Importing-and-Exporting-Data-between-CSV-Files-and-DataFrames-\u2013-Class-12-IP-Notes.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/itxperts.co.in\/blog\/importing-exporting-csv-dataframes-class12-ip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itxperts.co.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Importing and Exporting Data between CSV Files and DataFrames \u2013 Class 12 IP Notes"}]},{"@type":"WebSite","@id":"https:\/\/itxperts.co.in\/blog\/#website","url":"https:\/\/itxperts.co.in\/blog\/","name":"Itxperts","description":"Leading Website Design Company in Madhya Pradesh","publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"alternateName":"Itxperts | Website Development in Madhya Pradesh","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itxperts.co.in\/blog\/#organization","name":"Itxperts","alternateName":"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts","url":"https:\/\/itxperts.co.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","width":512,"height":512,"caption":"Itxperts"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/itxperts.co.in","https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/","https:\/\/www.instagram.com\/itxperts.co.in\/"]},{"@type":"Person","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6","name":"@mritxperts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","caption":"@mritxperts"},"description":"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.","sameAs":["https:\/\/itxperts.co.in\/blog"],"url":"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/1987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/comments?post=1987"}],"version-history":[{"count":1,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/1987\/revisions"}],"predecessor-version":[{"id":1989,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/1987\/revisions\/1989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media\/1988"}],"wp:attachment":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media?parent=1987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/categories?post=1987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/tags?post=1987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}