I tried to find out how to streamline the work flow with Excel x Python ①

Due to the influence of refraining from going out, I buy and read books of various genres. I take the events that happened as a good opportunity and enjoy studying (laughs)

That aside Automation? Efficiency? I have a longing for that, so I decided to start with something simple, I investigated "only how" to streamline the work flow of Excel with Excel and Python. Practice is also in the next article. ..

It is also a skill that can be used universally regardless of the type of industry. It was one of the reasons I decided to study. After that, I only make VBA when I'm reluctant and need it, Can you escape to Python? I like it (laughs)

What I looked up

What is VBA

Abbreviation for Visual Basic for Applications Roughly speaking, it is a program that can extend Microsoft's office products (Excel, Word, etc.). A macro is a program created with VBA. (I didn't understand much .. Is it a program? (゜-゜)) ⇒The scope of skill application is limited.

What is Python

It is a programming language that can be executed on various operating systems such as windows, mac, and linux. It is said that even beginners can easily understand it. Also, the library is abundant and you can do various things ('ω') vague. ..

Python installation

▼ From here https://www.python.org/downloads/

Editor (anything is fine)

Visual Studio Code ・ ・ ・ Free tool for Microsoft source creation support https://code.visualstudio.com/ ▼ Extensions you want to include ・ Japanese Langbuage Pack for Visial Studio Code -Python code input support extension (Python Extension for Visual Studio Code)

Python library

openpyxl Can read and write Excel files (.xlsx) In the terminal of Visula Studio, "pip install open pyxl" https://pypi.org/project/openpyxl/ ▼ Reference https://openpyxl.readthedocs.io/en/stable/api/openpyxl.reader.excel.html#openpyxl.reader.excel.load_workbook https://openpyxl.readthedocs.io/en/stable/api/openpyxl.workbook.workbook.html pandas Excel pivot table can be created In the Visula Studio terminal, "pip install pandas" https://pypi.org/project/pandas/ pathlib Files and folders can be treated as objects In the Visula Studio terminal, "pip install path lib" https://pypi.org/project/pathlib/

reference

https://qiita.com/seradaihyo/items/91c78b05401c9c328bb8 https://qiita.com/RIKIgigasu/items/9614ad4c1887157fe6c2 https://qiita.com/KAWAII/items/a7ec5b4fc3c9365cf9fc https://qiita.com/Takuya_Fujitani/items/93b534ad94ceaa06b89c

Summary

Now you're ready to streamline your Excel workflow. Next time, I'll do something like this! I would like to make an article about the result of deciding and executing. I want something useful. think.

that's all.

Recommended Posts

I tried to find out how to streamline the work flow with Excel x Python ②
I tried to find out how to streamline the work flow with Excel x Python ④
I tried to find out how to streamline the work flow with Excel x Python ⑤
I tried to find out how to streamline the work flow with Excel x Python ①
I tried to find out how to streamline the work flow with Excel x Python ③
I tried to find out how to streamline the work flow with Excel × Python, my article summary ★
I tried to find the entropy of the image with python
I tried to simulate how the infection spreads with Python
I tried to find out if ReDoS is possible with Python
I tried to improve the efficiency of daily work with Python
Excel X Python The fastest way to work
I tried to streamline the standard role of new employees with Python
I tried to touch the CSV file with Python
I tried to solve the soma cube with python
I tried to solve the problem with Python Vol.1
I tried to find out the outline about Big Gorilla
I tried to find the average of the sequence with TensorFlow
I tried to put out the frequent word ranking of LINE talk with Python
I tried to divide the file into folders with Python
python beginners tried to find out
The 15th offline real-time I tried to solve the problem of how to write with python
How to write offline real time I tried to solve the problem of F02 with Python
I tried to solve the ant book beginner's edition with python
How to work with BigQuery in Python
I tried to find out the difference between A + = B and A = A + B in Python, so make a note
A story that didn't work when I tried to log in with the Python requests module
[Python] I tried to visualize the night on the Galactic Railroad with WordCloud!
I tried to refer to the fun rock-paper-scissors poi for beginners with Python
How to write offline real time I tried to solve E11 with python
Mayungo's Python Learning Episode 2: I tried to put out characters with variables
I tried to get the authentication code of Qiita API with Python.
I tried with the top 100 PyPI packages> I tried to graph the packages installed on Python
I tried to get the movie information of TMDb API with Python
How to write offline real time I tried to solve E12 with python
I tried "smoothing" the image with Python + OpenCV
I tried "differentiating" the image with Python + OpenCV
I tried to save the data with discord
I tried to get CloudWatch data with Python
I tried to output LLVM IR with Python
I tried "binarizing" the image with Python + OpenCV
[Algorithm x Python] How to use the list
I tried to automate sushi making with python
I tried to output the rpm list of SSH login destination to an Excel sheet with Python + openpyxl.
I tried to find out as much as possible about the GIL that you should know if you are doing parallel processing with Python
I tried to easily visualize the tweets of JAWS DAYS 2017 with Python + ELK
I tried to automatically send the literature of the new coronavirus to LINE with Python
[Python & SQLite] I tried to analyze the expected value of a race with horses in the 1x win range ①
I tried to explain how to get the article content with MediaWiki API in an easy-to-understand manner with examples (Python 3)
I tried to learn the sin function with chainer
I tried to graph the packages installed in Python
I tried to summarize how to use matplotlib of python
[Introduction to Python] How to iterate with the range function?
I tried to implement Minesweeper on terminal with python
I tried to draw a route map with Python
[Python] How to specify the download location with youtube-dl
I tried to get started with blender python script_Part 02
I want to inherit to the back with python dataclass
I want to work with a robot in python.
[Python] I tried to graph the top 10 eyeshadow rankings
I tried to automatically generate a password with Python3
I tried to summarize how to use pandas in python