<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python Data Lab（Pythonデータラボ）</title>
	<atom:link href="https://pythondatalab.com/en/feed/" rel="self" type="application/rss+xml" />
	<link>https://pythondatalab.com</link>
	<description>Python初心者向けに、わかりやすいデータ分析の解説を提供します。</description>
	<lastBuildDate>Sat, 27 Sep 2025 04:00:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://pythondatalab.com/wp-content/uploads/2025/12/cropped-rogo-32x32.png</url>
	<title>Python Data Lab（Pythonデータラボ）</title>
	<link>https://pythondatalab.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【vol.3】pandas dataframe: Basics, Structure &#038; Creation Guide</title>
		<link>https://pythondatalab.com/en/pandas-dataframe-series-2/</link>
					<comments>https://pythondatalab.com/en/pandas-dataframe-series-2/#respond</comments>
		
		<dc:creator><![CDATA[coin_collector]]></dc:creator>
		<pubDate>Tue, 13 May 2025 14:08:50 +0000</pubDate>
				<category><![CDATA[Python基礎-en]]></category>
		<guid isPermaLink="false">https://pythondatalab.com/?p=780</guid>

					<description><![CDATA[<p>Converted Colab Notebook When you begin data analysis, the Pandas DataFrame is an indispensable tool. It serves as the foundation of data analysis for efficiently handling tabular data. Like Excel sheets or database tables, it allows you to organize data and perform various operations with remarkable efficiency. Mastering the Pandas DataFrame greatly affects the speed [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-dataframe-series-2/">【vol.3】pandas dataframe: Basics, Structure &amp; Creation Guide</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Converted Colab Notebook</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-tomorrow.css" />
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
<style>
pre[class*="language-"] {
  margin: 0 !important;
  padding: 1em;
}
</style>
<script>Prism.highlightAll();</script>
</head>
<body>

<p>When you begin data analysis, the <strong>Pandas DataFrame is an indispensable tool.</strong> It serves as the <strong>foundation of data analysis</strong> for efficiently handling tabular data. Like Excel sheets or database tables, it allows you to organize data and perform various operations <strong>with remarkable efficiency</strong>. Mastering the <strong>Pandas DataFrame</strong> greatly affects the speed and quality of your subsequent analyses. Therefore, understanding its basic structure and how to create it is essential.</p>

<p>You should also understand the <strong>Pandas Series</strong>, which is closely related to the <strong>Pandas DataFrame</strong>. A Series is a data structure that represents a single “column” of a <strong>DataFrame</strong>. By learning Series, you can gain a deeper grasp of how a DataFrame works.</p>

<p>This article provides a thorough, beginner-friendly explanation of the basic structure of the <strong>Pandas DataFrame</strong> and how to create one. By clearly outlining the differences between it and the <strong>Pandas Series</strong>, you will deepen your understanding of the DataFrame. We will also introduce the fundamental creation patterns using the <code>pd.DataFrame</code> method with easy-to-follow code samples.</p>

<p>▶️ Be sure to consult the official documentation for DataFrame and Series as well:</p>
<ul>
  <li>
    <a rel="noopener" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html" target="_blank">
      pandas DataFrame Documentation
    </a>
  </li>
  <li>
    <a rel="noopener" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html" target="_blank">
      pandas Series Documentation
    </a>
  </li>
</ul>


<h2><span id="toc1">【What You Will Learn in This Article】</span></h2>
<ul>
  <li>The basic structure and role of the <strong>Pandas DataFrame</strong></li>
  <li>How to <strong>create</strong> a <strong>DataFrame</strong> from various data formats (how to use <code>pd.DataFrame</code>)</li>
  <li>The fundamental <strong>differences</strong> between <strong>Pandas Series</strong> and <strong>DataFrame</strong></li>
</ul>

<hr />

<p>【Related Articles】 We have separate detailed articles on how to inspect data after creating a <strong>Pandas DataFrame</strong> and how to retrieve or select specific data. Once you understand the basics of the <strong>DataFrame</strong> in this article, be sure to read the following posts to learn practical operations.</p>

<ul>
<li><p><strong>How to inspect a DataFrame:</strong></p>

<p><a href="https://pythondatalab.com/en/pandas-head-2/">【Vol.4】 head() in pandas – Show DataFrame’s First Rows</a></p>

<p><a href="https://pythondatalab.com/en/pandas-info-describe-2/">【Vol.5】 Pandas info and describe for data structure &#038; stats</a></p></li>
<li><p><strong>How to extract/select data:</strong></p>

<p><a href="https://pythondatalab.com/pandas-loc/">【Part 6】【Beginner Friendly】Basic Operations with Pandas loc to Extract Rows or Columns by Label【Illustrated】</a></p>

<p>and more</p></li>
</ul>

<p>【Personal Experience】When I first started, I didn’t understand the difference between a Series and a DataFrame and passed a 2-D list to Series, which caused an error. I realized that being aware that a Series is 1-D and a DataFrame is 2-D is the key to avoiding this initial stumbling block.</p>

<h2><span id="toc2">Installing Pandas</span></h2>

<p>If Pandas is not installed, install it with the following command.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
pip install pandas
</code>
</pre>

<h2><span id="toc3">Importing Pandas</span></h2>

<p>To use Pandas in your Python code, first import it. It is commonly imported with the alias <code>pd</code>.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
import pandas as pd
</code>
</pre>
<h2><span id="toc4">Pandas DataFrame Basics: Structure and Creation</span></h2>

<h3><span id="toc5">What Is a Pandas DataFrame?—Your Powerful Partner in Data Analysis</span></h3>

<p>The <strong>Pandas DataFrame</strong> is the most fundamental data structure for working with tabular data in Python and is the <strong>central pillar</strong> of data analysis. Like a spreadsheet or database table, it organizes data and lets you perform a wide variety of operations efficiently.</p>

<ul>
  <li>
    Read and reshape data from CSV or Excel files:<br />
    <a href="https://pythondatalab.com/en/pandas-read-csv-2/">【Vol.2】Getting Started with CSV Files in Google Colab</a>
  </li>
  <li>
    Extract and process only the data you need:<br />
    <a href="https://pythondatalab.com/pandas-loc/">【Part 6】【Beginner Friendly】Basic Operations with Pandas loc to Extract Rows or Columns by Label【Illustrated】</a>
  </li>
  <li>
    Perform statistical calculations and aggregations:<br />
    <a href="https://pythondatalab.com/en/pandas-info-describe-2/">【Vol.5】 Pandas info and describe for data structure &#038; stats</a>
  </li>
  <li>
    Perform preprocessing for creating graphs
  </li>
</ul>

<p>In other words, the <strong>DataFrame</strong> plays a role in every step of data analysis. By mastering the <strong>DataFrame</strong>, you can automate data processing that would take a long time by hand and move on to more advanced analysis. In most data-analysis projects, the <strong>DataFrame</strong> is the star of the show.</p>

<h3><span id="toc6">The Basic Structure of a Pandas DataFrame</span></h3>

<p>A <strong>DataFrame</strong> consists of the following elements.</p>

<ul>
<li><strong>Data:</strong> The values in the table. They can hold various data types (numbers, strings, etc.).</li>
<li><strong>Column names (Columns):</strong> The labels for each column. Each column can be thought of as a one-dimensional data structure called a “Series.”</li>
<li><strong>Index:</strong> The labels for each row. By default it is a sequence starting at 0, but you can set any values you like.</li>
</ul>

<p>The following illustration shows the structure of a <strong>Pandas DataFrame</strong>.</p>

<figure>
  <img src="https://pythondatalab.com/wp-content/uploads/2025/06/dataframe_en.png" 
       alt="Structure of a Pandas DataFrame, illustrating the relationships among the Index, column names (Columns), and data." 
       width="600" height="400" loading="lazy" decoding="async" />
  <figcaption>Figure: Structure of a Pandas DataFrame, illustrating the relationships among the Index, column names (Columns), and data.</figcaption>
</figure>


<h3><span id="toc7">Creating a Pandas DataFrame</span></h3>

<p>You can create a <strong>Pandas DataFrame</strong> from various data formats using the <code>pd.DataFrame()</code> method. Below are the main creation patterns commonly used in data analysis.</p>

<h4><span id="toc8">Create from a List of Lists</span></h4>

<p>A common approach is to use a “list of lists” in Python (a list that contains other lists). In this structure, <strong>each element of the outer list becomes a row, and the elements of the inner lists become the values of each column</strong>. It is typical to specify the column names with the <code>columns</code> argument.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
data_list_of_list = [[1, &#x27;Alice&#x27;, 24],
                     [2, &#x27;Bob&#x27;, 27],
                     [3, &#x27;Charlie&#x27;, 22],
                     [4, &#x27;David&#x27;, 32],
                     [5, &#x27;Eve&#x27;, 29]]

# Create DataFrame by specifying column names with the columns argument
df_from_list_of_list = pd.DataFrame(data_list_of_list, columns=[&#x27;ID&#x27;, &#x27;Name&#x27;, &#x27;Age&#x27;])

print(&quot;DataFrame created from list of lists:\n&quot;, df_from_list_of_list)
</code>
</pre>
<pre>DataFrame created from list of lists:
    ID     Name  Age
0   1    Alice   24
1   2      Bob   27
2   3  Charlie   22
3   4    David   32
4   5      Eve   29
</pre>

<h4><span id="toc9">Create from a Dictionary</span></h4>

<p>You can also pass a Python dictionary to <code>pd.DataFrame()</code>. In this case, <strong>the dictionary keys become the column names of the DataFrame and the values (lists or NumPy arrays, etc.) become the column data</strong>. For many cases, this method is an intuitive way to create a <strong>DataFrame</strong>.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
data_dict = {&#x27;ID&#x27;: [1, 2, 3, 4, 5],
             &#x27;Name&#x27;: [&#x27;Alice&#x27;, &#x27;Bob&#x27;, &#x27;Charlie&#x27;, &#x27;David&#x27;, &#x27;Eve&#x27;],
             &#x27;Age&#x27;: [24, 27, 22, 32, 29]}

# Create DataFrame from dictionary
df = pd.DataFrame(data_dict)

print(&quot;\nDataFrame created from dictionary:\n&quot;, df)
# Assign to variable df for use in later examples (adjust existing code if necessary)
</code>
</pre>
<pre>
DataFrame created from dictionary:
    ID     Name  Age
0   1    Alice   24
1   2      Bob   27
2   3  Charlie   22
3   4    David   32
4   5      Eve   29
</pre>

<h4><span id="toc10">Create from a NumPy Array</span></h4>

<p>If your data already exists as a NumPy array, you can pass it directly to <code>pd.DataFrame()</code> to <strong>generate a DataFrame</strong>. As with the list-of-lists approach, you can specify the <code>columns</code> and <code>index</code> arguments.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
# Import NumPy
# To use NumPy in your Python code, import it first. It is commonly imported with the alias np.
import numpy as np

# NumPy is a library for fast numerical computation,
# but beginners don’t need to worry about its detailed usage at this point.
# For now, it is enough to know that it is sometimes used when creating a Pandas DataFrame.
# It helps you efficiently handle multidimensional arrays of the same data type.

data_np = np.array([[1, &#x27;Alice&#x27;, 24],
                    [2, &#x27;Bob&#x27;, 27],
                    [3, &#x27;Charlie&#x27;, 22]])
df_from_np = pd.DataFrame(data_np, columns=[&#x27;ID&#x27;, &#x27;Name&#x27;, &#x27;Age&#x27;])
print(&quot;\nDataFrame created from NumPy array:\n&quot;, df_from_np)
</code>
</pre>
<pre>
DataFrame created from NumPy array:
   ID     Name Age
0  1    Alice  24
1  2      Bob  27
2  3  Charlie  22
</pre>

<h4><span id="toc11">Creating and Modifying with a Specified Index</span></h4>

<p>The <strong>Pandas DataFrame</strong> allows you to freely set or change the row labels, called the index.</p>

<p>The <strong>index</strong> is a label that uniquely identifies each row in a DataFrame. By default, an integer sequence starting at 0 is assigned automatically, but you can set meaningful values—such as dates or IDs—depending on your data. The index plays an important role when efficiently selecting specific rows or when joining multiple DataFrames.</p>

<p>You can set a particular column as the index by using the <code>set_index()</code> method.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
# Use the df created in the previous example (redefine or check it here if necessary)
# For example, use the df created from data_dict:
data_dict_for_index = {&#x27;ID&#x27;: [1, 2, 3, 4, 5],
                       &#x27;Name&#x27;: [&#x27;Alice&#x27;, &#x27;Bob&#x27;, &#x27;Charlie&#x27;, &#x27;David&#x27;, &#x27;Eve&#x27;],
                       &#x27;Age&#x27;: [24, 27, 22, 32, 29]}
df_index_example = pd.DataFrame(data_dict_for_index)  # Rename variable to avoid overwriting the original df

print(&quot;DataFrame before setting the index:\n&quot;, df_index_example)

# &#x27;ID&#x27;Set the 'ID' column as the index
df_with_index = df_index_example.set_index(&#x27;ID&#x27;)
print(&quot;\n&#x27;ID&#x27;DataFrame after setting the 'ID' column as the index:\n&quot;, df_with_index)

# Update the variable df for later examples if needed
# df = df_with_index # Uncomment if this df will be used later
</code>
</pre>
<pre>DataFrame before setting the index:
    ID     Name  Age
0   1    Alice   24
1   2      Bob   27
2   3  Charlie   22
3   4    David   32
4   5      Eve   29

&#x27;ID&#x27;DataFrame after setting the 'ID' column as the index:
        Name  Age
ID              
1     Alice   24
2       Bob   27
3   Charlie   22
4     David   32
5       Eve   29
</pre>

<h4><span id="toc12">Other Creation Methods (Reading from Files, etc.)</span></h4>

<p>Besides the approaches above, you can create a <strong>Pandas DataFrame</strong> in the following ways.</p>

<ul>
<li>Read external files such as CSV or Excel (<code>pd.read_csv()</code>, <code>pd.read_excel()</code>, etc.)</li>
<li>Create from a dictionary of <strong>Pandas Series</strong></li>
</ul>

<p>For details on reading CSV files, see the article <a href="https://pythondatalab.com/pandas-read-csv/">【Part 2】Google Colab and Drive: Easy CSV Loading and Saving | Beginner Drive Integration Guide</a>.</p>

<p>【Cautions When Creating a DataFrame】</p>

<p>When creating a DataFrame from a list of lists, pay attention to the structure of your data—for example, you will get an error if the inner lists do not all have the same number of elements.</p>

<h2><span id="toc13">Fully Understanding the Differences Between Pandas Series and DataFrame</span></h2>

<h3><span id="toc14">What Is a Pandas Series?—Its Role and Relation to DataFrame</span></h3>

<p>A <strong>Pandas Series</strong> is a one-dimensional, labeled data structure. It resembles a list or a NumPy array, but differs in that it carries an index.</p>

<p>It is easier to grasp its role if you think of a <strong>Pandas Series</strong> as a single column that makes up a <strong>Pandas DataFrame</strong>.</p>

<p>【When Should You Use Series?】 A <strong>Series</strong> is useful, for example, when you want to pull out just one column from a <strong>DataFrame</strong> for analysis. Of course, you can also use it on its own when you need to handle one-dimensional data.</p>

<h4><span id="toc15">Extracting a Series from a DataFrame</span></h4>

<p>Selecting a specific column from the <strong>DataFrame</strong> created in the previous section yields a <strong>Pandas Series</strong>. Let’s confirm this relationship with code.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
# Use the df created in the previous section (for example, the df created from the dictionary)
# df = pd.DataFrame({&#x27;ID&#x27;: [1, 2, 3, 4, 5], &#x27;Name&#x27;: [&#x27;Alice&#x27;, &#x27;Bob&#x27;, &#x27;Charlie&#x27;, &#x27;David&#x27;, &#x27;Eve&#x27;], &#x27;Age&#x27;: [24, 27, 22, 32, 29]}) # Redefine df here if necessary

print("Original DataFrame:\n", df)

# Extract the 'Name' column
names_series = df[&#x27;Name&#x27;]
print(&quot;\n&#x27;Name&#x27;column (retrieved as Series):\n&quot;, names_series)
print(&quot;Type of retrieved data:&quot;, type(names_series))
</code>
</pre>
<pre>Original DataFrame:
    ID     Name  Age
0   1    Alice   24
1   2      Bob   27
2   3  Charlie   22
3   4    David   32
4   5      Eve   29

&#x27;Name&#x27;column (retrieved as Series):
 0      Alice
1        Bob
2    Charlie
3      David
4        Eve
Name: Name, dtype: object
Type of retrieved data:  &lt;class &#x27;pandas.core.series.Series&#x27;&gt;
</pre>

<h4><span id="toc16">Basic Ways to Create a Series</span></h4>

<p>You can also create a <strong>Pandas Series</strong> from various data formats using the <code>pd.Series()</code> method. To understand that a DataFrame column is in fact a <strong>Series</strong>, let’s briefly look at the basic creation patterns. We will cover the details in another article.</p>

<pre class="language-python" data-prismjs-copy>
<code class="language-python">
# Example: create from a list
data_s_list = [10, 20, 30, 40]
series_from_list = pd.Series(data_s_list)
print(&quot;\nSeries created from a list:\n&quot;, series_from_list)

# Example: create from a dictionary (convenient when you want to specify the index)
data_s_dict = {&#x27;a&#x27;: 10, &#x27;b&#x27;: 20, &#x27;c&#x27;: 30, &#x27;d&#x27;: 40}
series_from_dict = pd.Series(data_s_dict)
print(&quot;\nSeries created from a dictionary:\n&quot;, series_from_dict)
</code>
</pre>
<pre>
Series created from a list:
0    10
1    20
2    30
3    40
dtype: int64

Series created from a dictionary:
a    10
b    20
c    30
d    40
dtype: int64
</pre>

<h3><span id="toc17">Key Differences Between Series and DataFrame (Structure, Dimensionality, Usability)</span></h3>

<p>When learning <strong>Pandas</strong>, it is crucial to clearly understand the differences between <strong>Series</strong> and <strong>DataFrame</strong>. The main distinctions are as follows.</p>

<ol>
<li><p><strong>Dimensionality:</strong></p>

<ul>
<li><strong>Series:</strong> One-dimensional data structure</li>
<li><strong>DataFrame:</strong> Two-dimensional data structure (rows and columns)</li>
</ul></li>
<li><p><strong>Structure:</strong>

<ul>
<li><strong>Series:</strong> Data are arranged in a single column, and each item has an index (label).</li>
<li><strong>DataFrame:</strong> A table format with rows and columns; each column has a name and each row has an index.</li>
</ul></li>

<p>The following figure visually demonstrates this structural difference.</p>

<p><img decoding="async" src="https://pythondatalab.com/wp-content/uploads/2025/06/pandas_series_dataframe-1.png" alt="Pandas Series vs DataFrame: Structural Differences"></p></li>
<li>
  <p><strong>Usability:</strong></p>
  <ul>
    <li>
      There are differences in the code you write to select and manipulate data. For example, from a <strong>DataFrame</strong> you can select a specific column (<strong>Series</strong>) by its name or use <code>.loc</code> and <code>.iloc</code> to select rows or individual elements. From a <strong>Series</strong>, on the other hand, you select elements by index label or position.
    </li>
    <li>
      Another important point is that using <code>[]</code> returns a Series (1-D), while using <code>[[]]</code> returns a DataFrame (2-D).
    </li>
    <li>
      Detailed explanations of these operations can be found in the articles below:
      <ul>
        <li>
          <a href="https://pythondatalab.com/pandas-loc/">【Part 6】【Beginner Friendly】Basic Operations with Pandas loc to Extract Rows or Columns by Label【Illustrated】</a>
        </li>
        <li>
          <a href="https://pythondatalab.com/pandas-iloc/">【Part 7】【Beginner Friendly】Extract Rows and Columns by Index Number with Pandas iloc—How-To Guide</a>
        </li>
      </ul>
    </li>
  </ul>
  <p>
    Understanding these <strong>differences</strong> makes it clear when you should work with a Series versus a DataFrame and lets you write code more efficiently.
  </p>
</li>
</ol>

<h2><span id="toc18">✅ Summary</span></h2>

<p>This article thoroughly explained the basic structure of the <strong>Pandas DataFrame</strong>, the cornerstone of <strong>Pandas-based data analysis</strong>, and the fundamental ways to create one from lists and dictionaries using the <code>pd.DataFrame()</code> method.</p>

<p>We also deepened our understanding of the <strong>Pandas Series</strong>—an element that makes up a <strong>DataFrame</strong>—and the fundamental differences between <strong>Series</strong> and <strong>DataFrame</strong> in terms of dimensionality, structure, and usability.</p>

<p>By solidifying these <strong>Pandas</strong> fundamentals, you are now ready to progress through the various stages of data analysis.</p>

<p>To truly master the <strong>Pandas DataFrame</strong>, knowing how to create it is only the first step—the subsequent data manipulation is equally important. Be sure to check the upcoming articles to further level up your data-analysis skills with the <strong>Pandas DataFrame</strong>.</p>
<article><!-- ① シリーズナビゲーション --><nav class="series-nav"><a class="prev-link" href="https://pythondatalab.com/en/pandas-read-csv-2/">◀ Previous: 【Vol.2】Getting Started with CSV Files in Google Colab</a> <a class="next-link" href="https://pythondatalab.com/en/pandas-head-2/">Next: 【Vol.4】 head() in pandas – Show DataFrame’s First Rows ▶</a></nav></article>


<!-- ブログカード -->

<a rel="noopener" href="https://pythondatalab.com/pandas-read-csv/" title="Google Colab CSV 読み込み＆保存入門|pandas で read_csv と to_csv を徹底解説" class="blogcard-wrap external-blogcard-wrap a-wrap cf" target="_blank"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img decoding="async" src="https://pythondatalab.com/wp-content/uploads/2025/06/drive_mount.png" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">Google Colab CSV 読み込み＆保存入門|pandas で read_csv と to_csv を徹底解説</div><div class="blogcard-snippet external-blogcard-snippet">Google Colab CSV を読み書きする方法を初心者向けに徹底解説。pandas の read_csv と to_csv を使い、Google Drive と連携してファイルを簡単に扱えます。エラー対処法も紹介。</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://pythondatalab.com/google-colab-csv/" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">pythondatalab.com</div></div></div></div></a>

<p style="text-align: center; margin-top: 2em;"><a href="#top">▲ Back to top</a></p>
</body>
</html>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-dataframe-series-2/">【vol.3】pandas dataframe: Basics, Structure &amp; Creation Guide</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://pythondatalab.com/en/pandas-dataframe-series-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Vol.5】 Pandas info and describe for data structure &#038; stats</title>
		<link>https://pythondatalab.com/en/pandas-info-describe-2/</link>
					<comments>https://pythondatalab.com/en/pandas-info-describe-2/#respond</comments>
		
		<dc:creator><![CDATA[coin_collector]]></dc:creator>
		<pubDate>Sat, 10 May 2025 15:24:52 +0000</pubDate>
				<category><![CDATA[Python基礎-en]]></category>
		<guid isPermaLink="false">https://pythondatalab.com/?p=330</guid>

					<description><![CDATA[<p>When performing data analysis in Python, it’s crucial to understand the overall structure of your data. Use the info() and describe() methods from the pandas library to inspect a DataFrame’s schema and summary statistics. In this article, we’ll walk through beginner-friendly examples showing how to use these methods. Dataset Used We’ll convert the following dictionary [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-info-describe-2/">【Vol.5】 Pandas info and describe for data structure &amp; stats</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[
<div id="top"></div>

<p>When performing data analysis in Python, it’s crucial to understand the overall structure of your data. Use the <code>info()</code> and <code>describe()</code> methods from the pandas library to inspect a DataFrame’s schema and summary statistics. In this article, we’ll walk through beginner-friendly examples showing how to use these methods.</p>

<h2><span id="toc1">Dataset Used</span></h2>
<p>We’ll convert the following dictionary into a pandas DataFrame:</p>
<pre><code>import pandas as pd

data = {
    "Name": ["Taro", "Hanako", "Jiro", "Mika", "Kenichi", "Keiko", "Sho", "Akane", "Takashi", "Aoi"],
    "Age": [23, 29, 35, 42, 18, 33, 27, 24, 31, 30],
    "Occupation": ["Engineer", "Designer", "Teacher", "Doctor", "Student", "Nurse", "Programmer", "Sales", "Lawyer", "Researcher"],
    "Annual Income (¥)": [4500000, 5500000, 4900000, 7300000, 0, 4000000, 6000000, 3200000, 8000000, 5800000],
    "Location": ["Tokyo", "Osaka", "Nagoya", "Sapporo", "Fukuoka", "Tokyo", "Kobe", "Sendai", "Yokohama", "Chiba"],
    "Years Employed": [2, 4, 10, 15, 1, 5, 3, 1, 12, 8]
}

df = pd.DataFrame(data)</code></pre>

<p><strong>DataFrame output:</strong></p>
<pre><code>df</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>0</td><td>Taro</td><td>23</td><td>Engineer</td><td>4500000</td><td>Tokyo</td><td>2</td></tr>
      <tr><td>1</td><td>Hanako</td><td>29</td><td>Designer</td><td>5500000</td><td>Osaka</td><td>4</td></tr>
      <tr><td>2</td><td>Jiro</td><td>35</td><td>Teacher</td><td>4900000</td><td>Nagoya</td><td>10</td></tr>
      <tr><td>3</td><td>Mika</td><td>42</td><td>Doctor</td><td>7300000</td><td>Sapporo</td><td>15</td></tr>
      <tr><td>4</td><td>Kenichi</td><td>18</td><td>Student</td><td>0</td><td>Fukuoka</td><td>1</td></tr>
      <tr><td>5</td><td>Keiko</td><td>33</td><td>Nurse</td><td>4000000</td><td>Tokyo</td><td>5</td></tr>
      <tr><td>6</td><td>Sho</td><td>27</td><td>Programmer</td><td>6000000</td><td>Kobe</td><td>3</td></tr>
      <tr><td>7</td><td>Akane</td><td>24</td><td>Sales</td><td>3200000</td><td>Sendai</td><td>1</td></tr>
      <tr><td>8</td><td>Takashi</td><td>31</td><td>Lawyer</td><td>8000000</td><td>Yokohama</td><td>12</td></tr>
      <tr><td>9</td><td>Aoi</td><td>30</td><td>Researcher</td><td>5800000</td><td>Chiba</td><td>8</td></tr>
    </tbody>
  </table>
</div>

<h2><span id="toc2">Inspecting Structure with info()</span></h2>
<pre><code>df.info()</code></pre>
<div><img fetchpriority="high" decoding="async" src="https://pythondatalab.com/wp-content/uploads/2025/04/pandas_describe.png" alt="DataFrame info() output" width="568" height="461" /></div>
<p>From this output, you can see:</p>
<ol>
  <li><strong>Entries:</strong> 10 rows indexed 0–9, and 6 columns</li>
  <li><strong>Data types:</strong>  
    <ul>
      <li>Name (object): strings</li>
      <li>Age (int64): integers</li>
      <li>Occupation (object): strings</li>
      <li>Annual Income (¥) (int64): integers</li>
      <li>Location (object): strings</li>
      <li>Years Employed (int64): integers</li>
    </ul>
  </li>
  <li><strong>Non-null counts:</strong> All columns have 10 non-null entries (no missing values)</li>
  <li><strong>Memory usage:</strong> 612 bytes (small dataset)</li>
</ol>
<p><strong>Note:</strong>  
<code>int64</code> is 64-bit integer; <code>object</code> covers strings or mixed types; non-null means no missing data.</p>
<p>▶️ For reference, see the official info documentation:<br />
<a rel="noopener" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.info.html" target="_blank">pandas DataFrame info Documentation</a></p>

<h2><span id="toc3">Examining Summary Statistics with describe()</span></h2>
<pre><code>df.describe()</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Age</th>
        <th>Annual Income (¥)</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>count</td><td>10</td><td>10</td><td>10</td></tr>
      <tr><td>mean</td><td>29.2</td><td>4920000</td><td>6.1</td></tr>
      <tr><td>std</td><td>6.49</td><td>2170619.12</td><td>4.76</td></tr>
      <tr><td>min</td><td>18</td><td>0</td><td>1</td></tr>
      <tr><td>25%</td><td>24</td><td>4000000</td><td>2.25</td></tr>
      <tr><td>50%</td><td>29.5</td><td>5200000</td><td>4.5</td></tr>
      <tr><td>75%</td><td>33.25</td><td>6000000</td><td>9.25</td></tr>
      <tr><td>max</td><td>42</td><td>8000000</td><td>15</td></tr>
    </tbody>
  </table>
</div>
<p>The key statistics are:</p>
<ul>
  <li><strong>count:</strong> number of non-missing values</li>
  <li><strong>mean:</strong> average</li>
  <li><strong>std:</strong> standard deviation</li>
  <li><strong>min / max:</strong> minimum and maximum</li>
  <li><strong>25% / 50% / 75%:</strong> quartiles</li>
</ul>

<h3><span id="toc4">Including All Columns</span></h3>
<p>By default, <code>describe()</code> shows only numeric columns. Use <code>include='all'</code> to include categorical data:</p>
<pre><code>df.describe(include='all')</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>count</td><td>10</td><td>10.0</td><td>10</td><td>10.0</td><td>10</td><td>10.0</td></tr>
      <tr><td>unique</td><td>10</td><td>NaN</td><td>10</td><td>NaN</td><td>9</td><td>NaN</td></tr>
      <tr><td>top</td><td>Taro</td><td>NaN</td><td>Engineer</td><td>NaN</td><td>Tokyo</td><td>NaN</td></tr>
      <tr><td>freq</td><td>1</td><td>NaN</td><td>1</td><td>NaN</td><td>2</td><td>NaN</td></tr>
      <tr><td>mean</td><td>NaN</td><td>29.2</td><td>NaN</td><td>4920000</td><td>NaN</td><td>6.1</td></tr>
      <tr><td>std</td><td>NaN</td><td>6.76</td><td>NaN</td><td>2251321</td><td>NaN</td><td>4.91</td></tr>
      <tr><td>min</td><td>NaN</td><td>18</td><td>NaN</td><td>0</td><td>NaN</td><td>1</td></tr>
      <tr><td>25%</td><td>NaN</td><td>24.75</td><td>NaN</td><td>4125000</td><td>NaN</td><td>2.25</td></tr>
      <tr><td>50%</td><td>NaN</td><td>29.5</td><td>NaN</td><td>5200000</td><td>NaN</td><td>4.5</td></tr>
      <tr><td>75%</td><td>NaN</td><td>32.5</td><td>NaN</td><td>5950000</td><td>NaN</td><td>9.5</td></tr>
      <tr><td>max</td><td>NaN</td><td>42</td><td>NaN</td><td>8000000</td><td>NaN</td><td>15</td></tr>
    </tbody>
  </table>
</div>
<h3><span id="toc5">Categorical Statistics Explained</span></h3>
<ul>
  <li><strong>unique:</strong> number of distinct values</li>
  <li><strong>top:</strong> most frequent value</li>
  <li><strong>freq:</strong> frequency of the top value</li>
  <li><strong>NaN:</strong> indicates that a statistic (e.g. mean) is not applicable</li>
</ul>
<p><strong>Note:</strong> For example, “Tokyo” appears twice so <code>freq=2</code>. In ties, one value is shown.</p>

<h2><span id="toc6">Author’s Takeaway</span></h2>
<p>The first time I ran <code>df.describe()</code>, I assumed no issues—but later found missing values in categorical columns that broke my model training. Now I always start with <code>df.info()</code> and follow with <code>df.describe(include='all')</code>.</p>
<p><strong>Lesson Learned:</strong> <em>Don’t rely on numeric summaries alone—check structure and stats together!</em></p>
<p>▶️ For reference, see the official describe documentation:<br />
<a rel="noopener" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.describe.html" target="_blank">pandas DataFrame describe Documentation</a></p>

<h2><span id="toc7">Summary</span></h2>
<ul>
  <li>Use <code>info()</code> to inspect types, non-null counts, and dimensions</li>
  <li>Use <code>describe()</code> to review numeric statistics</li>
  <li>Use <code>include='all'</code> to include categorical columns</li>
  <li>NaN indicates that a statistic is not applicable</li>
</ul>

<h4><span id="toc8">Key Statistic Terms</span></h4>
<table>
  <thead>
    <tr><th>Statistic</th><th>Numeric</th><th>Categorical</th></tr>
  </thead>
  <tbody>
    <tr><td>count</td><td>non-missing entries</td><td>non-missing entries</td></tr>
    <tr><td>mean</td><td>average</td><td>&#8211;</td></tr>
    <tr><td>std</td><td>standard deviation</td><td>&#8211;</td></tr>
    <tr><td>min/max</td><td>minimum/maximum</td><td>&#8211;</td></tr>
    <tr><td>25%/50%/75%</td><td>quartiles</td><td>&#8211;</td></tr>
    <tr><td>unique</td><td>&#8211;</td><td>distinct values</td></tr>
    <tr><td>top</td><td>&#8211;</td><td>most frequent value</td></tr>
    <tr><td>freq</td><td>&#8211;</td><td>frequency of top value</td></tr>
  </tbody>
</table>

<p>Next time, we’ll cover <code>loc</code> for label-based row and column selection!</p>

<article>
  <nav class="series-nav">
    <a class="prev-link" https://pythondatalab.com/en/vol-4-head-in-pandas-show-dataframes-first-rows/">◀ Previous: Vol.4: head() in pandas – Show DataFrame’s First Rows</a>
    <a class="next-link" href="https://pythondatalab.com/pandas-loc/">Next: Vol.6 Beginner’s Guide to Label-Based Selection with loc ▶</a>
  </nav>
</article>

<p style="text-align: center; margin-top: 2em;"><a href="#top">▲ Back to Top</a></p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-info-describe-2/">【Vol.5】 Pandas info and describe for data structure &amp; stats</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://pythondatalab.com/en/pandas-info-describe-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Vol.4】 head() in pandas – Show DataFrame’s First Rows</title>
		<link>https://pythondatalab.com/en/pandas-head-2/</link>
					<comments>https://pythondatalab.com/en/pandas-head-2/#respond</comments>
		
		<dc:creator><![CDATA[coin_collector]]></dc:creator>
		<pubDate>Sat, 10 May 2025 15:17:21 +0000</pubDate>
				<category><![CDATA[Python基礎-en]]></category>
		<guid isPermaLink="false">https://pythondatalab.com/?p=328</guid>

					<description><![CDATA[<p>In pandas, the Python data analysis library, the DataFrame is a table-like data structure. In this article, we’ll show you how to create a DataFrame and use the handy head() function to preview your data. ▶️ For reference, see the official head documentation: pandas DataFrame head Documentation Importing pandas import pandas as pd Creating a [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-head-2/">【Vol.4】 head() in pandas – Show DataFrame’s First Rows</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[
<div id="top"></div>

<p>In pandas, the Python data analysis library, the <strong>DataFrame</strong> is a table-like data structure. In this article, we’ll show you how to create a <code>DataFrame</code> and use the handy <code>head()</code> function to preview your data.</p>
<p>▶️ For reference, see the official head documentation:<br />
<a rel="noopener" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.head.html" target="_blank">pandas DataFrame head Documentation</a></p>

<h2><span id="toc1">Importing pandas</span></h2>
<pre><code>import pandas as pd</code></pre>

<h2><span id="toc2">Creating a DataFrame</span></h2>
<pre><code>data = {
  "Name": ["Taro", "Hanako", "Jiro", "Mika", "Kenichi", "Keiko", "Sho", "Akane", "Takashi", "Aoi"],
  "Age": [23, 29, 35, 42, 18, 33, 27, 24, 31, 30],
  "Occupation": ["Engineer", "Designer", "Teacher", "Doctor", "Student", "Nurse", "Programmer", "Sales", "Lawyer", "Researcher"],
  "Annual Income (¥)": [4500000, 5500000, 4900000, 7300000, 0, 4000000, 6000000, 3200000, 8000000, 5800000],
  "Location": ["Tokyo", "Osaka", "Nagoya", "Sapporo", "Fukuoka", "Tokyo", "Kobe", "Sendai", "Yokohama", "Chiba"],
  "Years Employed": [2, 4, 10, 15, 1, 5, 3, 1, 12, 8]
}
df = pd.DataFrame(data)</code></pre>

<div>[Failure Story] The first time I created a DataFrame, my column lengths didn’t match and I got a ValueError. Since then, I define each column as a dictionary entry and ensure all lists are the same length.</div>

<pre><code>df</code></pre>

<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>0</td><td>Taro</td><td>23</td><td>Engineer</td><td>4500000</td><td>Tokyo</td><td>2</td></tr>
      <tr><td>1</td><td>Hanako</td><td>29</td><td>Designer</td><td>5500000</td><td>Osaka</td><td>4</td></tr>
      <tr><td>2</td><td>Jiro</td><td>35</td><td>Teacher</td><td>4900000</td><td>Nagoya</td><td>10</td></tr>
      <tr><td>3</td><td>Mika</td><td>42</td><td>Doctor</td><td>7300000</td><td>Sapporo</td><td>15</td></tr>
      <tr><td>4</td><td>Kenichi</td><td>18</td><td>Student</td><td>0</td><td>Fukuoka</td><td>1</td></tr>
      <tr><td>5</td><td>Keiko</td><td>33</td><td>Nurse</td><td>4000000</td><td>Tokyo</td><td>5</td></tr>
      <tr><td>6</td><td>Sho</td><td>27</td><td>Programmer</td><td>6000000</td><td>Kobe</td><td>3</td></tr>
      <tr><td>7</td><td>Akane</td><td>24</td><td>Sales</td><td>3200000</td><td>Sendai</td><td>1</td></tr>
      <tr><td>8</td><td>Takashi</td><td>31</td><td>Lawyer</td><td>8000000</td><td>Yokohama</td><td>12</td></tr>
      <tr><td>9</td><td>Aoi</td><td>30</td><td>Researcher</td><td>5800000</td><td>Chiba</td><td>8</td></tr>
    </tbody>
  </table>
</div>

<h2><span id="toc3">Using head()</span></h2>

<h3><span id="toc4">Display the First 5 Rows</span></h3>
<pre><code>df.head()</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>0</td><td>Taro</td><td>23</td><td>Engineer</td><td>4500000</td><td>Tokyo</td><td>2</td></tr>
      <tr><td>1</td><td>Hanako</td><td>29</td><td>Designer</td><td>5500000</td><td>Osaka</td><td>4</td></tr>
      <tr><td>2</td><td>Jiro</td><td>35</td><td>Teacher</td><td>4900000</td><td>Nagoya</td><td>10</td></tr>
      <tr><td>3</td><td>Mika</td><td>42</td><td>Doctor</td><td>7300000</td><td>Sapporo</td><td>15</td></tr>
      <tr><td>4</td><td>Kenichi</td><td>18</td><td>Student</td><td>0</td><td>Fukuoka</td><td>1</td></tr>
    </tbody>
  </table>
</div>

<h3><span id="toc5">Display a Custom Number of Rows</span></h3>
<pre><code>df.head(3)  # First 3 rows</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>0</td><td>Taro</td><td>23</td><td>Engineer</td><td>4500000</td><td>Tokyo</td><td>2</td></tr>
      <tr><td>1</td><td>Hanako</td><td>29</td><td>Designer</td><td>5500000</td><td>Osaka</td><td>4</td></tr>
      <tr><td>2</td><td>Jiro</td><td>35</td><td>Teacher</td><td>4900000</td><td>Nagoya</td><td>10</td></tr>
    </tbody>
  </table>
</div>

<h3><span id="toc6">View Only Column Names</span></h3>
<pre><code>df.head(0)</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
  </table>
</div>
<p><strong>Note:</strong> Using <code>df.head(0)</code> shows no data rows but displays only the column names. It’s useful for checking your DataFrame’s structure and column order.</p>
<p>[Personal Experience] The first time I used <code>head(0)</code>, I thought it was an error because nothing appeared. Later I learned it’s a valid way to see just the headers, and now I always start with it to verify columns.</p>

<h3><span id="toc7">Combining with print()</span></h3>
<pre><code>print(df.head(3))</code></pre>
<p>This prints rows in a plain text format, which can be hard to read. In Jupyter or Colab, it’s better to rely on <code>df.head()</code> for a nicely formatted table.</p>
<pre><code>
 Name   Age Occupation Annual Income (¥) Location Years Employed
0  Taro   23   Engineer            4500000    Tokyo             2
1 Hanako   29   Designer           5500000    Osaka             4
2   Jiro   35   Teacher            4900000    Nagoya           10
</code></pre>

<h3><span id="toc8">Saving the Result as a Variable</span></h3>
<pre><code>first_rows = df.head(3)</code></pre>
<div>[Practical Tip] Saving your <code>head()</code> output to a variable makes it easy to pass directly into plotting or CSV-export steps.</div>

<h2><span id="toc9">Comparing with tail()</span></h2>
<pre><code>df.tail()   # Last 5 rows</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>5</td><td>Keiko</td><td>33</td><td>Nurse</td><td>4000000</td><td>Tokyo</td><td>5</td></tr>
      <tr><td>6</td><td>Sho</td><td>27</td><td>Programmer</td><td>6000000</td><td>Kobe</td><td>3</td></tr>
      <tr><td>7</td><td>Akane</td><td>24</td><td>Sales</td><td>3200000</td><td>Sendai</td><td>1</td></tr>
      <tr><td>8</td><td>Takashi</td><td>31</td><td>Lawyer</td><td>8000000</td><td>Yokohama</td><td>12</td></tr>
      <tr><td>9</td><td>Aoi</td><td>30</td><td>Researcher</td><td>5800000</td><td>Chiba</td><td>8</td></tr>
    </tbody>
  </table>
</div>
<pre><code>df.tail(2)     # Last 2 rows</code></pre>
<div>
  <table>
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Age</th>
        <th>Occupation</th>
        <th>Annual Income (¥)</th>
        <th>Location</th>
        <th>Years Employed</th>
      </tr>
    </thead>
    <tbody>
      <tr><td>8</td><td>Takashi</td><td>31</td><td>Lawyer</td><td>8000000</td><td>Yokohama</td><td>12</td></tr>
      <tr><td>9</td><td>Aoi</td><td>30</td><td>Researcher</td><td>5800000</td><td>Chiba</td><td>8</td></tr>
    </tbody>
  </table>
</div>
<div>[Note] Use <code>tail()</code> to check for anomalies or missing values at the end of your dataset. I once used a CSV with a trailing NaN row and skewed my stats—now I always verify with <code>tail()</code>.</div>
<p>▶️ For reference, see the official tail documentation:<br />
<a rel="noopener" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.tail.html" target="_blank">pandas DataFrame tail Documentation</a></p>

<h2><span id="toc10">Summary</span></h2>
<table>
  <thead>
    <tr><th>Syntax</th><th>Description</th></tr>
  </thead>
  <tbody>
    <tr><td><code>df.head()</code></td><td>Display first 5 rows</td></tr>
    <tr><td><code>df.head(n)</code></td><td>Display first n rows</td></tr>
    <tr><td><code>df.head(0)</code></td><td>Display only column names (same for <code>df.tail(0)</code>)</td></tr>
    <tr><td><code>df.tail()</code></td><td>Display last 5 rows</td></tr>
    <tr><td><code>df.tail(n)</code></td><td>Display last n rows</td></tr>
  </tbody>
</table>
<p>The <code>head()</code> method is invaluable for quickly inspecting large datasets. Next time, we’ll cover <code>info()</code> and <code>describe()</code> to understand your data’s structure and summary statistics!</p>

<article>
  <nav class="series-nav">
    <a class="prev-link" href="https://pythondatalab.com/en/vol-3-pandas-series-vs-dataframe-illustrated-guide/">◀ Previous: 【Vol.3】 Pandas Series vs DataFrame – Illustrated Guide</a>
    <a class="next-link" href="https://pythondatalab.com/en/vol-5-pandas-info-and-describe-for-data-structure-stats/">Next:【Vol.5】 Pandas info and describe for data structure &#038; stats ▶</a>
  </nav>
  <section class="related-posts">
    <h1>Related Posts</h1>
    <ul>
      <li><a href="https://pythondatalab.com/pandas-read-csv/">Vol.2 A Beginner’s Guide to Linking Google Colab with Google Drive and Reading/Writing CSV Files</a></li>
    </ul>
  </section>
</article>

<p style="text-align: center; margin-top: 2em;"><a href="#top">▲ Back to Top</a></p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-head-2/">【Vol.4】 head() in pandas – Show DataFrame’s First Rows</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://pythondatalab.com/en/pandas-head-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Google Colab CSV Tutorial for Beginners: Mount Drive &#038; Use pandas【Vol.2】</title>
		<link>https://pythondatalab.com/en/pandas-read-csv-2/</link>
					<comments>https://pythondatalab.com/en/pandas-read-csv-2/#respond</comments>
		
		<dc:creator><![CDATA[coin_collector]]></dc:creator>
		<pubDate>Sat, 10 May 2025 13:47:52 +0000</pubDate>
				<category><![CDATA[Python基礎-en]]></category>
		<guid isPermaLink="false">https://pythondatalab.com/?p=317</guid>

					<description><![CDATA[<p>When analyzing data in Google Colab, you often need to load CSV files saved in Google Drive or edit and save them. In this article, I’ll explain, step by step with screenshots, how to link Google Colab and Google Drive to easily read and write CSV files. 🔰 For basic usage of Google Colab, please [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-read-csv-2/">Google Colab CSV Tutorial for Beginners: Mount Drive &amp; Use pandas【Vol.2】</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[
<div id="top"></div>
<p style="text-align: left;"><span style="font-size: large;">When analyzing data in Google Colab, you often need to load CSV files saved in Google Drive or edit and save them. In this article, I’ll explain, step by step with screenshots, how to link Google Colab and Google Drive to easily read and write CSV files.</span></p>
<p style="font-size: medium;">🔰 For basic usage of Google Colab, please refer to the previous article:<br />👉 <a rel="noopener" href="https://pythondatalab.com/python-install/" target="_blank"><br />[Vol.1][Beginner] Comparing Python Execution Environments: Differences and Usage of Colab, Anaconda, and Direct Installation<br /></a></p>
<div style="text-align: left;">
  <p><span style="font-size: medium;"><br />For example, let’s explain using a case where a CSV file named <code>height_weight.csv</code> saved in your Google Drive (MyDrive) is loaded from a Colab notebook named <code>height_weight.ipynb</code>.<br /></span></p>
</div>
<h3><span id="toc1">Step 1: How to Mount Google Drive to Google Colab</span></h3>
<p><span style="font-size: medium;">First, mount your Google Drive in Colab. By running the code below, Colab will be able to access files in your Drive. When prompted “Allow this notebook to access your Google Drive files?”, click “Connect to Google Drive.”</span></p>
<pre><code>from google.colab import drive
drive.mount('/content/drive')</code></pre>
<div style="text-align: center;">
  <img loading="lazy" decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicAWv5SpvO8kKcqawyK8TmQGmVxavk_lff5IbIm92Exx6DKD7KO6hQAUNdF-qBpcS5Ao1WmUZqovO7dQcFAmZSVhsoFVOUcMPrlp7G21LazF4YGckooYBHNLE6NEQuvBVFOnLszlvf8QDch2-Q4VIjHkS2PJDSDj04Fp6jboJudpTktgHABpUPEngrozbG/w533-h274/drive_mount.png" alt="Instructions to mount Google Drive in Google Colab" width="533" height="274" />
</div>
<p style="text-align: center;">
  <img loading="lazy" decoding="async" class="wp-image-152 aligncenter" src="https://pythondatalab.com/wp-content/uploads/2025/03/drive_mount2-300x140.png" alt="Drive mount confirmation screen" width="527" height="246" srcset="https://pythondatalab.com/wp-content/uploads/2025/03/drive_mount2-300x140.png 300w, https://pythondatalab.com/wp-content/uploads/2025/03/drive_mount2.png 556w" sizes="(max-width: 527px) 100vw, 527px" />
</p>

<h3><span id="toc2">Step 2: Preparing to Work with CSV Files Using pandas</span></h3>
<p style="font-size: medium;">Next, import the pandas library, which you’ll need to read CSV files.</p>
<pre><code>import pandas as pd
</code></pre>

<h3><span id="toc3">Step 3: Reading a CSV File from Google Drive</span></h3>
<p style="font-size: medium;">Once mounting is complete, you’ll see your Drive contents in the file browser on the left. Hover over the CSV file you want to load (here, <code>height_weight.csv</code>), right-click, and select “Copy path.”</p>
<div style="text-align: center;">
  <img loading="lazy" decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjqJq70Np1djDZzlKDDvmsGi68-8ptDuzMDd7C34cb9AMAVUJ9PJWribHI7VxI52581D3SXRixCGidik4uyFO1nkqi2zJrhrE5FPvmToqQny6cx5f0QIGQoIb1usOY_DY5P8UYbJTKD0o7F1irPmJVYICWHkR-cwEozieQyyc1MO3m9SWUI1dxn4WNuMYY/s638/drive_mount3.png" alt="Loading a CSV file from Google Colab" width="529" height="445" />
</div>
<p>Then use the code below to read the CSV. Paste the path you copied into the parentheses of <code>pd.read_csv</code>. In this example, <code>height_weight.csv</code> contains three columns: name, height (cm), and weight (kg).</p>
<p><span style="font-size: large;"><span style="color: #ff0000;">[Failure Story] I kept getting “No such file or directory” errors because I mis-typed the path. Copying the path directly from Drive solved the issue.</span></span></p>
<pre><code>df = pd.read_csv('/content/drive/MyDrive/height_weight.csv')</code></pre>

<h3><span id="toc4">Step 4: Display the Loaded DataFrame</span></h3>
<pre><code>df
</code></pre>
<p style="font-size: medium;">This will display the entire dataset. If there are many rows, use <code>df.head()</code> to view only the first five rows, which helps keep the output manageable.</p>
<div style="text-align: center;">
  <img loading="lazy" decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsLtE4dPXcGJzI8jjTAX1Ri2UoKqa_haRPyu8tqyMgvO6x5zfs4aAC6MBH9NBi_-XnjtVwxSddsgftbfg8nhccnygiPuzq9dhxNQ4JpHD3Bzz_5kCOYKR0DgEoD5eFNE833ur8lbCiu8gnweXGsA_WjV3wt5ZNayrq1zak9E-wb1ZJsohB73hvG76lr2Al/s366/dive_amont4.png" alt="Displayed DataFrame content" width="530" height="640" />
</div>

<h3><span id="toc5">Step 5: Save as a New CSV File</span></h3>
<p style="font-size: medium;">To save your edited data as a new CSV (for example, <code>height_weight2.csv</code>), use:</p>
<pre><code>df.to_csv('height_weight2.csv', index=False)
</code></pre>
<p style="font-size: medium;">This saves the file in Colab’s temporary directory. You can download it via the file browser or move it manually to Google Drive.<br /><span style="color: #ff0000;">[Personal Experience] I once ended my session without moving the file from the temp directory, losing my work. Now I always specify the Drive path when saving.</span></p>
<p style="font-size: medium;"><strong>Note:</strong> By default, files save to <code>/content/</code>, which is wiped after the session ends. To keep files, save directly to Drive, e.g.:<br /><code>df.to_csv('/content/drive/MyDrive/height_weight2.csv')</code>.<br /><span style="color: #ff0000;">[Tip] Always specify your MyDrive path to eliminate the risk of file loss.</span></p>

<h3><span id="toc6">Full Code Summary</span></h3>
<pre><code>
# 1. Mount Google Drive
from google.colab import drive
drive.mount('/content/drive')

# 2. Import pandas
import pandas as pd

# 3. Read CSV file
df = pd.read_csv('/content/drive/MyDrive/height_weight.csv')

# 4. Display data
df

# 5. Save as new CSV
df.to_csv('height_weight2.csv', index=False)
</code></pre>

<h3><span id="toc7">Conclusion</span></h3>
<p style="font-size: medium;">In this article, we showed how to link Google Colab with Google Drive to read and write CSV files. File handling is a fundamental step in data analysis—give it a try! If you run into issues, don’t worry: take it one step at a time. Consistency is the key to improvement.</p>

<h3 style="margin-top: 2em;"><span id="toc8">✅ Summary</span></h3>
<div style="background-color: #f9f9f9; border-left: 5px solid #4caf50; font-size: medium; padding: 1em;">
  <ul style="list-style-type: square; margin-left: 1em;">
    <li>By mounting Google Drive in Colab, you can easily read and write CSV files in the cloud.</li>
    <li>All you need is a <a rel="noopener" href="https://www.google.com/intl/ja/account/about/" target="_blank"><strong>Google account</strong></a> and the <code>drive.mount()</code> command.</li>
    <li>With <code>pandas</code>, loading, displaying, and saving CSV data is simple.</li>
    <li>It’s safest to specify your Google Drive path when saving to avoid data loss.</li>
    <li>Start your data analysis journey by mastering file I/O in Colab!</li>
  </ul>
</div>

<article>
  <!-- Series Navigation -->
  <nav class="series-nav">
    <a class="prev-link" href="https://pythondatalab.com/en/vol-1-how-to-get-started-with-google-colab-a-beginners-guide-to-the-python-execution-environment-with-screenshots/">◀ Previous:【Vol.1】How to Get Started with Google Colab – A Beginner’s Guide to the Python Execution Environment (with Screenshots)</a>
    <a class="next-link" href="https://pythondatalab.com/en/vol-3-pandas-series-vs-dataframe-illustrated-guide/">Next: 【Vol.3】 Pandas Series vs DataFrame – Illustrated Guide▶</a>
  </nav>
</article>
<p><!-- Back to top --></p>
<p style="text-align: center; margin-top: 2em;"><a href="#top">▲ Back to Top</a></p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/pandas-read-csv-2/">Google Colab CSV Tutorial for Beginners: Mount Drive &amp; Use pandas【Vol.2】</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://pythondatalab.com/en/pandas-read-csv-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Vol.1】How to Get Started with Google Colab – A Beginner’s Guide to the Python Execution Environment (with Screenshots)</title>
		<link>https://pythondatalab.com/en/python-install-2/</link>
					<comments>https://pythondatalab.com/en/python-install-2/#respond</comments>
		
		<dc:creator><![CDATA[coin_collector]]></dc:creator>
		<pubDate>Sat, 10 May 2025 13:30:43 +0000</pubDate>
				<category><![CDATA[Python基礎-en]]></category>
		<guid isPermaLink="false">https://pythondatalab.com/?p=313</guid>

					<description><![CDATA[<p>There are several options for Python development environments, but I first started withGoogle Colaboratory (Colab) because it’s so easy to get started.In this article, I’ll walk you through preparing your Google account and Google Drive, and show you how to run Python in Colab with screenshots. I’m still learning myself, but I hope this helps [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/python-install-2/">【Vol.1】How to Get Started with Google Colab – A Beginner’s Guide to the Python Execution Environment (with Screenshots)</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[
<div id="top"></div>
<p><!-- WordPress-optimized HTML structure --></p>
<p><!-- Changed inline styles and width specifications to be responsive --></p>
<div>
  <p>There are several options for Python development environments, but I first started with<br /><strong style="background-color: #fcff01;">Google Colaboratory (Colab)</strong> because it’s so easy to get started.<br />In this article, I’ll walk you through preparing your Google account and Google Drive, and show you how to run Python in Colab with screenshots.</p>
  <p><em>I’m still learning myself, but I hope this helps those just starting out.</em><br /><span style="color: #ff0000;">[Personal Experience] I thought setting up an environment would take ages, but I was amazed to have Python running in just five minutes with Colab.</span></p>
</div>
<p>To begin with Python, there are three main methods: “Google Colab,” “Anaconda (Jupyter Notebook),” and “Direct Installation.”</p>
<p><em>I was unsure which to choose at first, so I’ve summarized this for anyone in the same situation.</em><br /><span style="color: #ff0000;">[Failure Story] I installed Anaconda, but it was so large that my PC slowed down, so I eventually switched to Colab.</span></p>
<p><strong>* Note: I’ve also included some beginner-friendly notes.</strong></p>
<table class="env-table" style="width: 100%; border-collapse: collapse;">
  <thead>
    <tr style="background-color: #f7f7f7;">
      <th>Environment</th>
      <th>Advantages</th>
      <th>Disadvantages</th>
    </tr>
  </thead>
  <tbody>
    <tr style="background-color: #f0fff0;">
      <td><strong>Google Colab</strong><br /><small>(Runs in the browser)</small><br /><span style="color: #2e7d32; font-weight: bold;">★ Recommended for Beginners</span></td>
      <td>
        • No installation required—just open your browser and go<br />
        • Free GPU access (※1)<br />
        • Easy integration with Google Drive<br />
        • Jupyter Notebook format works well with online tutorials
      </td>
      <td>
        • Requires an internet connection<br />
        <span style="color: #ff0000;">[Personal Experience] I panicked when the Wi-Fi dropped in a café.</span><br />
        • Sessions automatically end after 12 hours (※2)<br />
        <span style="color: #ff0000;">[Failure Story] I lost unsaved data when my session disconnected mid-work—remember to save often!</span><br />
        • Limited for advanced customizations or local connections
      </td>
    </tr>
    <tr>
      <td><strong>Anaconda (Jupyter)</strong><br /><small>(Installed on your PC)</small></td>
      <td>
        • Comes with a rich set of libraries pre-installed<br />
        • Works offline<br />
        • GUI tools make virtual environment (env) management easy
      </td>
      <td>
        • Large initial download size (3–5 GB)<br />
        <span style="color: #ff0000;">[Personal Experience] It took over an hour to install—mind your storage!</span><br />
        • Performance depends on your PC (especially for GPU tasks)<br />
        • Unused environments can hog disk space
      </td>
    </tr>
    <tr>
      <td><strong>Direct Installation</strong><br /><small>(From the official Python distribution)</small></td>
      <td>
        • Lightweight—install only what you need<br />
        • Highly customizable environment<br />
        • A professional setup favored by engineers
      </td>
      <td>
        • Slightly advanced for beginners (※3)<br />
        • Requires familiarity with virtual environments (venv, pyenv, etc.)<br />
        • You’re responsible for managing libraries and troubleshooting
      </td>
    </tr>
  </tbody>
</table>
<p style="font-size: small;"><strong>※1:</strong> Even the free Colab plan lets you switch your runtime to GPU, but usage time is limited.<br /><strong>※2:</strong> Sessions disconnect automatically after a set time, so it’s not ideal for long-running tasks (extended time is available in Pro).<br /><strong>※3:</strong> Geared toward those familiar with Python and system internals. Beginners should start with Colab or Anaconda.</p>
<p><!-- The following step-by-step instructions follow the original HTML structure --></p>
<h2 style="text-align: left;"><span id="toc1">How to Use Google Colab (Step-by-Step)</span></h2>
<h3><span id="toc2">Step 1: Create a Google Account</span></h3>
<p style="font-size: medium;">To use Google Colab, you need a Google account. If you don’t have one yet, create one <a rel="noopener" href="https://www.google.com/intl/ja/account/about/" target="_blank">here</a>.</p>
<p style="font-size: medium;"><span style="color: #ff0000;">[Personal Experience] I set up a dedicated sub-account for learning, and data management became much easier.</span></p>
<h3><span id="toc3">Step 2: Access Google Drive</span></h3>
<p style="font-size: medium;">Log in to <a rel="noopener" href="https://drive.google.com/drive/home?hl=ja" target="_blank">Google Drive</a>, where your Colab notebooks will be saved.</p>
<div>
  <img decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVu-aXL1dRPfZC5qLmYN0mDDOgKBNhA6JxnidNuPa0C-ZB2mQTdviNm0vXmUQ-caoayP9G5Vzrg1cjcFkeq7gmVh2guNsijnlzLVCeH8BPPPtDSM108pgw4hnrpyA6mLsb6GWlI977-gGHmi3XVbtqAMm07CZeBL7RhXKUjyhVXKqD2hqJOx5Ccf7nwHwy/w556-h392/googledrive.png" alt="Google Drive screen" width="556" />
</div>
<h3><span id="toc4">Step 3: Launch Colab from Google Drive</span></h3>
<p style="font-size: medium;">Click “+ New” → “More” → “Google Colaboratory” in the Google Drive menu.</p>
<p style="font-size: medium;"><span style="color: #ff0000;">[Failure Story] I couldn’t find Colab at first, but adding the Chrome extension made it appear.</span></p>
<div>
  <img decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNBZ2ZPScPY_aPw3WHD76ptNwKFAFFQn8xcE6teCDLLHb1PxPr8IAZHB8iXo4urerZxNuLVog3QdcKgRrBol8bVpecMRpkR7JOZhniz-RRjOxrhptZd1fLjLJqtVXsrosTm8LW3jfRF_p-xXgwiWWaB8jNmuLLJ6QrzQHSN08l2ZUG1rJ-Otr3fNzOHBEn/w557-h398/googlecolaboratory.png" alt="Google Colaboratory launch screen" width="557" />
</div>
<h3><span id="toc5">Step 4: Colab Notebook Interface</span></h3>
<p style="font-size: medium;">When Colab launches, you’ll see the notebook interface. Enter code into cells and run them instantly.</p>
<h3><span id="toc6">Step 5: Run Your First Python Code</span></h3>
<p style="font-size: medium;">Type <code>1 + 1</code> in a cell and press “Shift + Enter” to see <code>2</code> below.</p>
<p style="font-size: medium;"><span style="color: #ff0000;">[Personal Experience] I still remember the thrill of running “1 + 1” and seeing Python work under my hands.</span></p>
<div>
  <img decoding="async" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-woPamRmAteIKAHPH84k-KH6mO-PMUIBCsluaUz16QEXVgWRtlQDjIgnk1PMLFj2mHzOu3iPvOycb2jtnq6xnAYW-BNq66t0QlwiMjndtJlNZckrLUMbKqR0bfif1RFy0yub5aFwm-wn_SyYFERtzdFp9l3rCDYEsC7rsVyae-n1k6cj5rgim25XN7sfP/w558-h321/python.png" alt="Python code execution image" width="558" />
</div>
<h3><span id="toc7">Step 6: Use for Data Analysis and Learning</span></h3>
<p style="font-size: medium;">Colab is Jupyter-compatible, so you can immediately import and use libraries like <a href="#pandas-numpy">pandas</a> and <a href="#pandas-numpy">NumPy</a>.</p>
<p style="font-size: medium;"><span style="color: #ff0000;">[Failure Story] I forgot to import libraries and got errors—make it a habit to write your <code>import</code> statements first.</span></p>
<h4 id="pandas-numpy"><span id="toc8">🔰 What Are pandas and NumPy? (Beginner Notes)</span></h4>
<p style="font-size: medium;">Two essential libraries for Python data analysis are <code>pandas</code> and <code>NumPy</code>.<br />Here’s a quick beginner overview of their roles.</p>
<ul style="font-size: medium;">
  <li><strong>pandas:</strong><br />A library for handling tabular data (like Excel).<br />You can easily read, manipulate, aggregate, and filter data.<br /><span style="color: #ff0000;">Example: Load a CSV file and extract only the rows you need.</span></li>
  <li><strong>NumPy:</strong><br />A library specialized in numerical computations, handling vectors and matrices at high speed.<br />pandas uses NumPy under the hood, making it foundational for data analysis.<br /><span style="color: #ff0000;">Example: Perform statistical operations or basic machine learning on large numerical datasets.</span></li>
</ul>
<p style="font-size: medium;">In Google Colab, you import them like this:</p>
<pre><code>import pandas as pd
import numpy as np</code></pre>
<p style="font-size: medium;">This assigns the aliases <code>pd</code> and <code>np</code> to each library for convenience.<br />This aliasing convention is used in most tutorials and books.</p>
<p style="font-size: medium;">If it feels unfamiliar, don’t worry.<br />It’s enough to know these names for now.<br />We’ll dive deeper into these libraries in future posts.</p>
<h2><span id="toc9">✅ Summary</span></h2>
<div style="background-color: #f9f9f9; border-left: 5px solid #4caf50; padding: 1em; font-size: medium;">
  <ul style="list-style-type: square; margin-left: 1em;">
    <li>There are three main Python environments: Colab, Anaconda, and direct installation.</li>
    <li><strong>Google Colab</strong> offers browser-only convenience, making it <span style="color: #4caf50;">ideal for beginners</span>.</li>
    <li><strong>Anaconda</strong> is suited for comprehensive analysis and development setups.</li>
    <li><strong>Direct Installation</strong> provides maximum flexibility but is better for intermediate to advanced users.</li>
    <li>Start with Colab to build confidence, then advance to other environments.</li>
  </ul>
  <p><span style="color: #ff0000;">[Summary Experience] Even though I was hesitant at first, Colab lowered the barrier to learning Python.</span></p>
</div>
<article>
  <!-- Series Navigation -->
  <nav class="series-nav">
    <a class="next-link" href="https://pythondatalab.com/en/vol-2-colab-amp-drive-read-write-csv-for-beginners/">Next: 【Vol.2】 Colab &#038; Drive – Read/Write CSV for Beginners ▶</a>
  </nav>
</article>
<p><!-- Back to top --></p>
<p style="text-align: center; margin-top: 2em;"><a href="#top">▲ Back to Top</a></p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://pythondatalab.com/en/python-install-2/">【Vol.1】How to Get Started with Google Colab – A Beginner’s Guide to the Python Execution Environment (with Screenshots)</a> first appeared on <a rel="nofollow" href="https://pythondatalab.com">Python Data Lab（Pythonデータラボ）</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://pythondatalab.com/en/python-install-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
