[Data science memorandum] Confirmation of the contents of DataFrame type [python]

head () function

Check the first 5 lines of data.

Variable to which DataFrame is assigned .head () By specifying a number in parentheses, it is also possible to display data for the specified number of lines. If variable .head (10) to which DataFrame is assigned, the first 10 lines of data will be displayed.

shape Check the number of rows and columns of the read data.

Variable with DataFrame assigned .shape If you want to extract only the number of rows, write ** shape [0] **, and if you want to extract only the number of columns, write ** shape [1] **.

info () function

Check the data type of each column of DataFrame.

Variable to which DataFrame is assigned.info ()

Recommended Posts

[Data science memorandum] Confirmation of the contents of DataFrame type [python]
[Data science memorandum] Handling of missing values ​​[python]
Not being aware of the contents of the data in python
[python] [meta] Is the type of python a type?
The contents of the Python tutorial (Chapter 5) are itemized.
The contents of the Python tutorial (Chapter 4) are itemized.
The contents of the Python tutorial (Chapter 2) are itemized.
The contents of the Python tutorial (Chapter 8) are itemized.
The contents of the Python tutorial (Chapter 1) are itemized.
The contents of the Python tutorial (Chapter 10) are itemized.
The story of reading HSPICE data in Python
The contents of the Python tutorial (Chapter 6) are itemized.
The contents of the Python tutorial (Chapter 3) are itemized.
[Python] Determine the type of iris with SVM
Template of python script to read the contents of the file
Summary of Python sort (list, dictionary type, Series, DataFrame)
Let's use the open data of "Mamebus" in Python
Understand the status of data loss --Python vs. R
[Basics of data science] Collecting data from RSS with python
Extract the band information of raster data with python
Try translating the Python Data Science Handbook into Japanese
Try scraping the data of COVID-19 in Tokyo with Python
Towards the retirement of Python2
[Maya Python] Crush the contents of the script 3 ~ List unknown Plugins
Different from the import type of python. from A import B meaning
[Maya Python] Crush the contents of the script 1 ~ Camera Speed Editor
About the ease of Python
Data Science Cheat Sheet (Python)
Consideration for Python decorators of the type that passes variables
The story of rubyist struggling with python :: Dict data with pycall
[Homology] Count the number of holes in data with Python
Python data type summary memo
[Python] I tried collecting data using the API of wikipedia
Image data type conversion [Python]
About the features of Python
A Python script that compares the contents of two directories
Simulation of the contents of the wallet
The Power of Pandas: Python
A memorandum of understanding for the Python package management tool ez_setup
[python, ruby] fetch the contents of a web page with selenium-webdriver
Output the contents of ~ .xlsx in the folder to HTML with Python
Organize useful blogs in the field of data science (overseas & Japan)
A memorandum regarding the acquisition of the Python3 engineer certification basic exam
[Python] A program that rotates the contents of the list to the left
The story of Python and the story of NaN
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
[Python] [Table of Contents Links] Python Programming
[Python] A memorandum of beautiful soup4
pyenv-change the python version of virtualenv
Change the Python version of Homebrew
About the basic type of Go
See the contents of Kumantic Segumantion
Python Math Series ⓪ Table of Contents
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
Master the type with Python [Python 3.9 compatible]
Science "Is Saito the representative of Saito?"
Introductory table of contents for python3
Memorandum of beginners Python "isdigit" movement
About the basics list of Python basics