A Python script that compares the contents of two directories

# Motivation Data from recording media such as digital cameras and action cams (USB memory, SD card, etc.) was copied to another large-capacity external SSD and stored, but the remaining amount of t

Learn the basics of Python ① Beginners

# Introduction I started programming by myself. From 30 years old to an engineer with no experience. I'm interested in artificial intelligence, so I want to learn it little by little. # Learning p

When to_csv with Pandas, it became line by line

When I used the to_csv function with pandas, the output became one line free, so I will write a memo here. # Development environment - windows10 64bit - python 3.8.5 --pandas 1.1.2 (It was, but I c

Thank you for the Fibonacci sequence.

Hello. I tried various ways of writing in my own way. I would appreciate it if you could refer to it. The following description is a familiar one. #### **`fib_1.py`** ```py def fib(n): if

[Python] Precautions when retrieving data by scraping and putting it in the list

Precautions when scraping This is what to do when you get stuck in a swamp. #### **`test.py`** ```py for s in name: name_list=[] name_list.append(s.string) ``` The problem with this code i

Check if the characters are similar in Python

As the title says I tried to make it as an anti-spam measure A function that returns True if it has the specified number of characters Forgive spaghetti source code You may not be able to use it

The story of creating a store search BOT (AI LINE BOT) for Go To EAT in Chiba Prefecture (1)

Hello. I am writing an article for the first time. I do not know the borderline of "inappropriate articles", so please point out if you can not reach it. Currently, I am using the Go To EAT campa

Standard input with time limit

You've probably written a program and once wanted to create a standard input with a time limit. By the way, I don't. Since it was easily realized with Go, I will write a memo. It's for me someday.

Landmines hidden in Python class variables

> https://docs.python.org/3/tutorial/classes.html#class-and-instance-variables Class variables Python are strange. If they are **mutable**, they act like STATIC PROPERTY in PHP; If they are **immutab

I investigated Keras's Conv2D (2D convolutional layer)

# Thing you want to do * I want to understand Keras Conv2D * I want to understand the code below (I want to be able to explain what each function is doing? And the meaning of the arguments). ```p

What to do when raise ValueError, "unsupported hash type"

# Event: Attempt to install hmac failed --Environment: Cloud9 ```bash $ pip install hmac Defaulting to user installation because normal site-packages is not writeable Collecting hmac Downloadin

Basics of Quantum Information Theory: Universal Quantum Calculation by Toric Code (1)

$$ \def\bra#1{\mathinner{\left\langle{#1}\right|}} \def\ket#1{\mathinner{\left|{#1}\right\rangle}} \def\braket#1#2{\mathinner{\left\langle{#1}\middle|#2\right\rangle}} $$ ## Introduction In [Previo

Kernel SVM (make_circles)

## ■ Introduction This time, I will summarize a simple kernel SVM implementation. [Target readers] ・ Those who want to learn simple code of kernel SVM ・ Those who do not understand the theory but

Write a Caesar cipher program in Python

# Introduction When I started CTF, a Caesar cipher came out, so decryption processing was necessary. You can do it manually, but this is a program! It can also be a rehabilitation! So I wrote it imm

What's happening when you "go build"?

This article is a translation of [How “go build” Works](https://maori.geek.nz/how-go-build-works-750bb2ba6d8e). How does `go build` compile the simplest Golang program? This article aims to answe

Study on Tokyo Rent Using Python (3-2)

# Result excerpt Simultaneous posting on the blog: https://leoluistudio.com/blog/24/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e6%9d%b1%e4%ba%ac%e9%83%bd%e5%ae%b6%e8%b3%83%e3%81%ab%e3%81%a4%e3%81%84%

The story of developing a web application that automatically generates catchphrases [MeCab]

# Service site MakeLike https://melikeke.sakura.ne.jp/malike/intro # Overview Use Python's Mecab to generate "like sentences" from various teacher data ・ Generated from category ・ Generated from a

Separate numbers by 3 digits (python)

Use `'{:,}'. format ()` to change the number 98765 to 98,765. It cannot be separated unless it is a numerical value (int). If it is a character string (str), a ValueError will occur. ```py # python

Challenge 100 data science knocks

# Until you try to knock 100 Pythons There is a data science 100 knock (structured data processing). I would like to make a note of the steps leading up to the challenge. ### environment * windows10

[Pandas_flavor] Add a method of Pandas DataFrame

TL;DR #### **`BEFORE`** ```python dataframe_ = dataframe.loc[(dataframe.time == 'pre') & \ (dataframe.group == 'exp') & \ (dataframe.cond == '

How to use pip3 under proxy environment Note

This is a memo on how to use pip3 in a so-called proxy environment. Just specify the IP address and port of the proxy server as shown below. ``` pip3 --proxy=http://xxx.xxx.xxx:port install ~ ```

I want to manually create a legend with matplotlib

# Introduction I think that the matplot legend should be created automatically in most cases, but since irregularities have occurred, make a note of how to set it manually. # Ordinary plot Perhaps

[Super basics of Python] I learned the basics of the basics, so I summarized it briefly.

# Overview I learned a little about Python, so I will summarize it briefly. I don't know because it's a memo for myself. # table of contents - [print](#print) -[String output](#String output

I just built a virtual environment with AWS lambda layer

Background I used to save the pip package using `venv` in Python3.6 or later, but when I was investigating whether it could be done on AWS, there was an affordable function called layer, so I tried

bar chart race in python

# bar chart race in python ![out.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/157693/9098dd4e-3d65-9294-d10a-d6c40d04a501.gif) It seems that bar graph lace that you often see on

yukicoder contest 275 Participation record

# yukicoder contest 275 Participation record ## [A 1291 Small Check](https://yukicoder.me/problems/no/1291) Note that the answer is an integer greater than or equal to 0, so there is a trap in one

Suppress python3 flask logging

When implementing / starting server using flask in python, the following log may appear. If the log frequency is high, it may lead to an increase in CPU load, and there are times when you want to su

Python learning basics ~ How to output (display) a character string? ~

Here, I would like to describe a memorandum of Python learning and a comparison with Ruby and JavaScript. We hope that it will be helpful for beginners in programming and those who are also interes

Put Tkinter in Macbook and check operation

# 1. Installation #### **`Terminal`** ```bash % brew install tcl-tk % echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.bash_profile % export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" % expor

polyfit error when installing matplotlib

# I got an error when installing matplotlib The OS is Mac OS Big Sur. The python version is 3.6.10. When I tried to install "numpy, pandas, matplotlib" without thinking about anything, I got the fo