[Introduction to Python] Let's use pandas

[Introduction to Python] Let's use pandas

I will introduce the continuation of the last time and the points I want to improve. Well, the figure was made like this. 2020-02-06 (2).png (Last time, I couldn't use Japanese for the axis name because I didn't understand the setting of "matplotlib". Since I corrected it this time, the axis name in the figure can be displayed in Japanese.)

Now let's play with this data a little more. This is a continuation of the previous code.

nikkei.corr()

Then you can get a table of correlations.

ax = sns.heatmap(nikkei.corr(), annot=True)

Furthermore, you can create a heat map. Like this... 2020-02-06 (1).png

There are few, but this time the code part is over.

Improvements and reflections

Aside from the technical side, ** why I chose the heat map ... ** is a very big reflection. As you can see, the correlation coefficient is almost 1. What on earth are you doing? You should do this with a different subject. The subject of the Nikkei 225 is just a taste. I will post that I wish I could do it from the next time onward, including improvements. It is undecided whether to do it, but ...

--Display the Nikkei average on a candle chart --Try plotting NY Dow --Let's do regression analysis --Try adding another feature

And so on. The content is thin at the beginner level, but I want to do my best to continue.

Recommended Posts

[Introduction to Python] Let's use pandas
[Introduction to Python] Let's use pandas
[Introduction to Python] Let's use pandas
[Introduction to Python] Let's use foreach with Python
[Python] Summary of how to use pandas
[Introduction to Python] How to use class in Python?
[Python] Use pandas to extract △△ that maximizes ○○
How to use Pandas 2
Introduction to Python language
Introduction to OpenCV (python)-(2)
Introduction to Python Let's prepare the development environment
[Introduction to Udemy Python3 + Application] 23. How to use tuples
Let's use def in python
Let's use python janome easily
Introduction to Python Django (2) Win
[Python] Convert list to Pandas [Pandas]
[Python] How to use list 1
How to use Python argparse
Introduction to serial communication [Python]
How to use Pandas Rolling
Python: How to use pydub
[Python] How to use checkio
[Introduction to Python] <list> [edit: 2020/02/22]
Introduction to Python (Python version APG4b)
An introduction to Python Programming
[Python] How to use input ()
[Introduction] How to use open3d
How to use Python lambda
[Python] How to use virtualenv
Introduction to Python For, While
python3: How to use bottle (3)
python3: How to use bottle
How to use Python bytes
[Introduction to Python] How to use while statements (repetitive processing)
[Introduction to Udemy Python3 + Application] 27. How to use the dictionary
I tried to summarize how to use pandas in python
[Introduction to Udemy Python3 + Application] 30. How to use the set
Introduction to Python numpy pandas matplotlib (~ towards B3 ~ part2)
[Introduction to Udemy Python 3 + Application] 58. Lambda
[Introduction to Udemy Python 3 + Application] 31. Comments
Python: How to use async with
Introduction to Python Numerical Library NumPy
Practice! !! Introduction to Python (Type Hints)
[Introduction to Python3 Day 1] Programming and Python
[Introduction to Udemy Python 3 + Application] 57. Decorator
[Introduction to Python3 Day 13] Chapter 7 Strings (7.1-7.1.1.1)
How to use Requests (Python Library)
How to use SQLite in Python
[Introduction to Python] How to parse JSON
[Introduction to Udemy Python 3 + Application] 56. Closure
[Introduction to Udemy Python 3 + Application] 36. How to use In and Not
Introduction to Protobuf-c (C language ⇔ Python)
[Introduction to Udemy Python3 + Application] 59. Generator
[Python] How to use list 3 Added
How to use OpenPose's Python API
How to use ChemSpider in Python
How to use FTP with Python
Python: How to use pydub (playback)
How to use PubChem in Python
Easy to use Jupyter notebook (Python3.5)
[Introduction to Udemy Python 3 + Application] Summary