{"id":228179,"date":"2024-04-20T05:17:41","date_gmt":"2024-04-20T05:17:41","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=228179"},"modified":"2024-04-20T05:17:41","modified_gmt":"2024-04-20T05:17:41","slug":"how-to-get-value-of-column-in-pandas","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/","title":{"rendered":"How to get value of column in Pandas?"},"content":{"rendered":"<p>\nPandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the common tasks when working with Pandas is accessing specific values or columns from a dataframe. In this article, we will explore various methods to get the value of a column in Pandas.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Method_1_Using_DataFramecolumn_name\" title=\"Method 1: Using DataFrame[column_name]\">Method 1: Using DataFrame[column_name]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Method_2_Using_DataFrameloc\" title=\"Method 2: Using DataFrame.loc\">Method 2: Using DataFrame.loc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Method_3_Using_DataFrameiloc\" title=\"Method 3: Using DataFrame.iloc\">Method 3: Using DataFrame.iloc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Frequently_Asked_Questions\" title=\"Frequently Asked Questions:\">Frequently Asked Questions:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q1_How_can_I_get_values_of_multiple_columns_simultaneously\" title=\"Q1: How can I get values of multiple columns simultaneously?\">Q1: How can I get values of multiple columns simultaneously?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q2_Can_I_select_multiple_columns_using_column_indices\" title=\"Q2: Can I select multiple columns using column indices?\">Q2: Can I select multiple columns using column indices?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q3_How_can_I_extract_a_single_value_from_a_specific_row_and_column\" title=\"Q3: How can I extract a single value from a specific row and column?\">Q3: How can I extract a single value from a specific row and column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q4_What_if_I_want_to_get_the_unique_values_in_a_column\" title=\"Q4: What if I want to get the unique values in a column?\">Q4: What if I want to get the unique values in a column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q5_How_can_I_count_the_number_of_occurrences_of_each_unique_value_in_a_column\" title=\"Q5: How can I count the number of occurrences of each unique value in a column?\">Q5: How can I count the number of occurrences of each unique value in a column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q6_Can_I_filter_the_dataframe_based_on_certain_conditions_and_then_get_values_of_a_specific_column\" title=\"Q6: Can I filter the dataframe based on certain conditions and then get values of a specific column?\">Q6: Can I filter the dataframe based on certain conditions and then get values of a specific column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q7_How_can_I_get_the_maximumminimum_value_in_a_column\" title=\"Q7: How can I get the maximum\/minimum value in a column?\">Q7: How can I get the maximum\/minimum value in a column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q8_Is_it_possible_to_get_the_mean_or_sum_of_a_column\" title=\"Q8: Is it possible to get the mean or sum of a column?\">Q8: Is it possible to get the mean or sum of a column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q9_Can_I_get_a_subset_of_a_column_based_on_a_condition\" title=\"Q9: Can I get a subset of a column based on a condition?\">Q9: Can I get a subset of a column based on a condition?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q10_How_can_I_reset_the_index_of_a_column\" title=\"Q10: How can I reset the index of a column?\">Q10: How can I reset the index of a column?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q11_Is_it_possible_to_convert_a_column_to_a_list\" title=\"Q11: Is it possible to convert a column to a list?\">Q11: Is it possible to convert a column to a list?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#Q12_Can_I_get_statistical_information_about_a_column\" title=\"Q12: Can I get statistical information about a column?\">Q12: Can I get statistical information about a column?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Method_1_Using_DataFramecolumn_name\"><\/span>Method 1: Using DataFrame[column_name]<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>One of the simplest and most common ways to get the value of a column in Pandas is by using the square bracket notation along with the column name. Let&#8217;s say we have a dataframe called `df` and we want to get the values of the &#8216;age&#8217; column:<\/p>\n<p>&#8220;`python<br \/>\nage_values = df[&#8216;age&#8217;]<br \/>\n&#8220;`<\/p>\n<p>This will create a pandas Series object that contains all the values of the &#8216;age&#8217; column. You can further manipulate or analyze this Series using various other Pandas functions.<\/p>\n<p><strong>Answer to the question: How to get value of column in Pandas? &#8211; Use DataFrame[column_name]<\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Method_2_Using_DataFrameloc\"><\/span>Method 2: Using DataFrame.loc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>The `.loc` accessor in Pandas is used to access rows and columns by label. To get the values of a specific column using this method, you can pass the column name as a string:<\/p>\n<p>&#8220;`python<br \/>\nage_values = df.loc[:, &#8216;age&#8217;]<br \/>\n&#8220;`<\/p>\n<p>This will give you a Series object with the &#8216;age&#8217; column values. The `:` before the comma indicates that we want all rows in the dataframe.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Method_3_Using_DataFrameiloc\"><\/span>Method 3: Using DataFrame.iloc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>The `.iloc` accessor is similar to `.loc`, but it is used to access rows and columns by index position instead of labels. To get the values of a specific column using this method, you can pass the column index:<\/p>\n<p>&#8220;`python<br \/>\nage_values = df.iloc[:, 2]<br \/>\n&#8220;`<\/p>\n<p>In this example, we assume that the &#8216;age&#8217; column is at the index position 2. The `:` before the comma indicates that we want all rows.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"Q1_How_can_I_get_values_of_multiple_columns_simultaneously\"><\/span>Q1: How can I get values of multiple columns simultaneously?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can pass a list of column names instead of a single column name to the above methods:<\/p>\n<p>&#8220;`python<br \/>\nmultiple_columns = df[[&#8216;col1&#8217;, &#8216;col2&#8217;, &#8216;col3&#8217;]]<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q2_Can_I_select_multiple_columns_using_column_indices\"><\/span>Q2: Can I select multiple columns using column indices?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the `.iloc` method and pass a list of column indices:<\/p>\n<p>&#8220;`python<br \/>\nmultiple_columns = df.iloc[:, [0, 2, 4]]<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q3_How_can_I_extract_a_single_value_from_a_specific_row_and_column\"><\/span>Q3: How can I extract a single value from a specific row and column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use `.loc` or `.iloc` with row and column indices:<\/p>\n<p>&#8220;`python<br \/>\nvalue = df.loc[row_index, column_name]<br \/>\nvalue = df.iloc[row_index, column_index]<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q4_What_if_I_want_to_get_the_unique_values_in_a_column\"><\/span>Q4: What if I want to get the unique values in a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the `.unique()` method on the column:<\/p>\n<p>&#8220;`python<br \/>\nunique_values = df[&#8216;column&#8217;].unique()<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q5_How_can_I_count_the_number_of_occurrences_of_each_unique_value_in_a_column\"><\/span>Q5: How can I count the number of occurrences of each unique value in a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the `.value_counts()` method on the column:<\/p>\n<p>&#8220;`python<br \/>\nvalue_counts = df[&#8216;column&#8217;].value_counts()<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q6_Can_I_filter_the_dataframe_based_on_certain_conditions_and_then_get_values_of_a_specific_column\"><\/span>Q6: Can I filter the dataframe based on certain conditions and then get values of a specific column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use boolean indexing to filter the dataframe and then select the desired column:<\/p>\n<p>&#8220;`python<br \/>\nfiltered_data = df[df[&#8216;column&#8217;] > 10]<br \/>\ncolumn_values = filtered_data[&#8216;column&#8217;]<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q7_How_can_I_get_the_maximumminimum_value_in_a_column\"><\/span>Q7: How can I get the maximum\/minimum value in a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the `.max()` and `.min()` methods:<\/p>\n<p>&#8220;`python<br \/>\nmax_value = df[&#8216;column&#8217;].max()<br \/>\nmin_value = df[&#8216;column&#8217;].min()<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q8_Is_it_possible_to_get_the_mean_or_sum_of_a_column\"><\/span>Q8: Is it possible to get the mean or sum of a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, the `.mean()` and `.sum()` methods can be used:<\/p>\n<p>&#8220;`python<br \/>\nmean_value = df[&#8216;column&#8217;].mean()<br \/>\nsum_value = df[&#8216;column&#8217;].sum()<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q9_Can_I_get_a_subset_of_a_column_based_on_a_condition\"><\/span>Q9: Can I get a subset of a column based on a condition?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use boolean indexing to achieve that:<\/p>\n<p>&#8220;`python<br \/>\nsubset = df[df[&#8216;column&#8217;] > 10][&#8216;column&#8217;]<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q10_How_can_I_reset_the_index_of_a_column\"><\/span>Q10: How can I reset the index of a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the `.reset_index()` method:<\/p>\n<p>&#8220;`python<br \/>\ndf_reset = df[&#8216;column&#8217;].reset_index(drop=True)<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q11_Is_it_possible_to_convert_a_column_to_a_list\"><\/span>Q11: Is it possible to convert a column to a list?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the `.tolist()` method:<\/p>\n<p>&#8220;`python<br \/>\nlist_values = df[&#8216;column&#8217;].tolist()<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q12_Can_I_get_statistical_information_about_a_column\"><\/span>Q12: Can I get statistical information about a column?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the `.describe()` method:<\/p>\n<p>&#8220;`python<br \/>\nstatistics = df[&#8216;column&#8217;].describe()<br \/>\n&#8220;`<\/p>\n<p>In conclusion, Pandas provides several methods to access values of a column in a dataframe. Whether you prefer using square brackets, `.loc`, or `.iloc`, you now have the knowledge to extract and manipulate column data efficiently. These techniques will empower you to perform data analysis, visualization, and modeling tasks using Pandas with ease.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the common tasks when working with Pandas is accessing specific values or columns from a dataframe. In this article, we will explore various methods to get the value of a column in Pandas. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to get value of column in Pandas?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#more-228179\">Read more<span class=\"screen-reader-text\">How to get value of column in Pandas?<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-228179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get value of column in Pandas?<\/title>\n<meta name=\"description\" content=\"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get value of column in Pandas?\" \/>\n<meta property=\"og:description\" content=\"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-20T05:17:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Casey Mayer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Casey Mayer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\"},\"author\":{\"name\":\"Casey Mayer\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\"},\"headline\":\"How to get value of column in Pandas?\",\"datePublished\":\"2024-04-20T05:17:41+00:00\",\"dateModified\":\"2024-04-20T05:17:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\"},\"wordCount\":739,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\",\"name\":\"How to get value of column in Pandas?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-04-20T05:17:41+00:00\",\"dateModified\":\"2024-04-20T05:17:41+00:00\",\"description\":\"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get value of column in Pandas?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\",\"name\":\"Casey Mayer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Casey Mayer\"},\"description\":\"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get value of column in Pandas?","description":"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the","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:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/","og_locale":"en_US","og_type":"article","og_title":"How to get value of column in Pandas?","og_description":"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the","og_url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-04-20T05:17:41+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Casey Mayer","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Casey Mayer","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/"},"author":{"name":"Casey Mayer","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f"},"headline":"How to get value of column in Pandas?","datePublished":"2024-04-20T05:17:41+00:00","dateModified":"2024-04-20T05:17:41+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/"},"wordCount":739,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/","url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/","name":"How to get value of column in Pandas?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-04-20T05:17:41+00:00","dateModified":"2024-04-20T05:17:41+00:00","description":"Pandas is a powerful data manipulation and analysis library in Python that provides extensive functionality to work with structured data. One of the","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-of-column-in-pandas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get value of column in Pandas?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f","name":"Casey Mayer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Casey Mayer"},"description":"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/228179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=228179"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/228179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=228179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=228179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=228179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}