Data analysis using Python 0

I would like to summarize the Python code used in data analysis as a review of what I learned at school.

This time, I would like to focus on the basics. (It is undecided how many times it will end.)

0-0 Execution environment

Jupyter-Notebook (https://jupyter.org/) Have Numpy installed

0-1 Read file

In the class, all the data was stored in the csv file (Excel file). The reading code is

import numpy as np
array=np.loadtxt(fname="(file name)",delimiter=".")
//The file name is~~.Let's write up to csv.//

The read data has a matrix structure. The position of the data has a structure similar to Excel. Column 0 has the first row of Excel.

Also, if you say that the file cannot be read, make sure that the file is in a certain hierarchy. For example, if the document has a file, open Jupyter-notebook, click the document, and try it there.

0-2 slice

The data obtained by the above method is an array array. The data contains both explanatory variables and results. It is a work to separate this. As I said earlier, the obtained data array contains data in the same order and structure as Excel. Divide this into columns (vertical).

array_x=array[:,j]Get column j
array_x=array[:,j:]Get from column j to last column

It's the first time, so it's about this. Farewell-

Recommended Posts

Data analysis using Python 0
Data analysis using python pandas
Data analysis python
Data analysis with python 2
Data analysis using xarray
Data analysis overview python
Data cleaning using Python
Python data analysis template
Data analysis with Python
My python data analysis container
Python for Data Analysis Chapter 4
[Python] Notes on data analysis
Python data analysis learning notes
Python for Data Analysis Chapter 2
Python for Data Analysis Chapter 3
[Python] [Word] [python-docx] Simple analysis of diff data using python
[Technical book] Introduction to data analysis using Python -1 Chapter Introduction-
Data acquisition using python googlemap api
Python: Time Series Analysis: Preprocessing Time Series Data
Preprocessing template for data analysis (Python)
Recommendation of data analysis using MessagePack
Data analysis starting with python (data visualization 1)
Data analysis starting with python (data visualization 2)
Data analysis Titanic 2
Start using Python
Data analysis Titanic 1
[Introduction] Artificial satellite data analysis using Python (Google Colab environment)
Data analysis Titanic 3
Scraping using Python
[python] Read data
Python visualization tool for data analysis work
Recommendation tutorial using association analysis (python implementation)
Get Youtube data in Python using Youtube Data API
[Python] First data analysis / machine learning (Kaggle)
[Python] Various data processing using Numpy arrays
Creating a data analysis application using Streamlit
Python: Negative / Positive Analysis: Twitter Negative / Positive Analysis Using RNN-Part 1
Data analysis starting with python (data preprocessing-machine learning)
I did Python data analysis training remotely
Creating Google Spreadsheet using Python / Google Data API
Python 3 Engineer Certified Data Analysis Exam Preparation
Time variation analysis of black holes using python
Operate Redmine using Python Redmine
Data analysis parts collection
Python Data Visualization Libraries
[Examination Report] Python 3 Engineer Certified Data Analysis Exam
[CovsirPhy] COVID-19 Python Package for Data Analysis: Data loading
Python3 Engineer Certification Data Analysis Exam Self-made Questions
[Python] Get all comments using Youtube Data API
Python 3 Engineer Certification Data Analysis Exam Pre-Exam Learning
Voice analysis with python
Data cleansing 2 Data cleansing using DataFrame
[Python] Data analysis, machine learning practice (Kaggle) -Data preprocessing-
Perform entity analysis using spaCy / GiNZA in Python
Using Python #external packages
Data analysis in Python: A note about line_profiler
[Environment construction] Dependency analysis using CaboCha in Python 2.7
[Python] Flow from web scraping to data analysis
WiringPi-SPI communication using Python
Age calculation using python
[Python3] Let's analyze data using machine learning! (Regression)