Sound pressure level FFT (Python)

# Introduction What are the characteristics (natural frequency, order sound, etc.) of the measured time signal in the frequency domain? I will share the program code of ** FFT (Fast Fourier Transform

One of the cluster analysis methods, k-means, is executed with scikit-learn or implemented without scikit-learn.

K-means is a typical method for creating a cluster. I've written about this in the past, but this time I'd like to show you how to use scikit-learn and how to not use it for your study. * K-means c

Manipulate multiple proxies with Squid

* This article assumes the environment of [-Qiita to fly Wi-Fi through Proxy brilliantly](https://qiita.com/yangniao23/items/be9eaf95ed87b1084bac). If you haven't read it yet, please read this articl

"Import Error: Install xlrd> = 0.9.0 for Excel support" error in Pandas. Resolved by changing to use openpyxl

When I was trying the code to read the Excel file in the sample of "100 knocks of Python practice data", the following error occurred. ```python ImportError: Install xlrd >= 0.9.0 for Excel support

[Basic] linux command

Command | Description ------ |--------------------------------------------------------------------- ls | Show files and directories in the current directory ls -l | Display file and directory d

Practice applying functions and global variables in Python

# Introduction Thank you for browsing. Please forgive English grammar. Please kindly tell the experts if there is something you can do about it. # Overview ・ Vote for A or B. ・ Check the number

Slack --APIGateway --Lambda (Python) --How to make a RedShift interactive app

## Overview Create a Slack application as the title says. If you write it properly, it will be a long sentence, so only the following points will be emphasized. --Notes on Slack application --Ap

Display the time in Django according to the user's region (UTC)

Use <b> django-tz-detect </b>. (The source code is [here](https://github.com/adamcharnock/django-tz-detect)) An open source library released in 2019 with the MIT license applied. <br> Execution env

A function that easily calculates a listwise removal tree (Python)

# About this article * I wrote a function to quickly calculate the tree of ** Fig1. Analytical subjects ** that I see in epidemiological studies. * Assume a tree when listwise removal is performed.

Lifegame in Python.

<h2> Preface </h2> happy New Year. I haven't posted a lot, but I look forward to working with you again this year. I personally wanted to write a Lifegame-like program in Python, so I tried it du

Using cgo with the go command

[Using cgo with the go command](https://golang.org/cmd/cgo/#hdr-Using_cgo_with_the_go_command) ### C code is not recognized #### **`c.go`** ```go // #include <stdlib.h> import "C" ``` If there i

Horse Racing Prediction in Machine Learning-LightGBM Edition-

# Introduction Have you ever raced? It was not until I studied machine learning that I came into contact with horse racing. When studying programming, there is "learning while moving your hands".

How to display the CPU usage, pod name, and IP address of a pod created with Kubernetes

# Introduction Data acquisition is an important task in evaluating experiments using pods. In this article, I will write a program to get the pod name, IP address, and CPU usage. # Creating a pod

Install pip in Serverless Framework and AWS Lambda with Python environment

How to deploy AWS Lambda Python scripts that require pip installation with Serverless Framework. I wrote about the AWS Lambda Ruby script that requires gem installation in the [Last time](https://q

Effective Python Learning Memorandum Day 5 [5/100]

## Introduction The other day I learned about 100 Days Of Code, which was popular on Twitter for a while. The purpose of this article is to keep a record and output how much I, as a beginner, can gro

Unzip is garbled (no -O option, Arch Linux)

When I tried to answer the zip file created by Windows, the characters were garbled, so measures against it ### Environment at hand ```console $ more /etc/arch-release

About adding / deleting lists (Python beginners after learning Ruby)

# Addition / deletion of list, etc. A Python list is like an array in Ruby. #### **`list.py`** ```python list = [0, 1, 2] len(list) #Check the number of elements in the list, in this case 3 lis

Calculated the ease of stopping the house of the board game "Bunkers" with Python

I played the board game "Bunkers" at the end of the year and was interested in the fact that there was a house that was clearly easy to stop, so I decided to simulate it and calculate the ease of sto

How to convert DateTimeField format in Django

## I want to format and display the date acquired by Django At Django's models.py When using timezone.now () instead of datetime.now () date = models.DateTimeField ('date', default = timezone.now

Batch thought by beginners

### A log file named yyyymmdd. *. Log has been accumulated, so the logs with the same date in the directory are consolidated. ```console !/bin/bash CMDNAME=`basename $0` #Error if no argument is

[Latest] How to use Python library to save Google image search & use Chrome Driver on ubuntu

happy New Year. I'm sure many people know this, but I'll get lost many times, so I'll write it down. Please use it for learning data during machine learning. Around August 2020? It seems that th

What to do to get tensorflow-gpu to work

# at first After initializing the computer, I had to re-install various things to run tensorflow with gpu. Then I stumbled on various things, so make a note to put it back in the future. # environm

When you want to erase characters at once in terminal or line unit

ctrl + u Delete all the character strings after the cursor. ``` Example |aaaaaaaaaaaaaaaaaaaaaaa ↓ | ``` ctrl + k Delete all the character strings before the cursor. ``` Example aaaaaaaaaaaaa

Django novice addicted error and solution notes

## What i did I wanted to make a web application with python, so I tried [Udemy Beginner's Course](https://www.udemy.com/course/django-3app/). It was a course to edit the source with VScode & opera

Python http.server did not support Range Request

# Problems that occurred When I set up a server on my local PC and tried to open and play a video from iOS Safari, I couldn't play it for some reason ... I can play it from Firefox on my PC ... I

I couldn't install numpy using poetry on macOS Big Sur, so I forcibly avoided it

## environment - OS: macOS Big Sur - Python : 3.8.7 (from Homebrew) - pip : 20.2.3 - shell : zsh ## Event that occurred When I did `poetry install` with the following description in` pyproject.tom

Small speedup when using pytorch

# Introduction When training a model using pytorch etc., it may take several hours to train, or even days if anything. In such a case, the effect of a constant multiple of the execution time becomes

Press the OK cancel button on the Selenium Alert Confirm Box

## Operate Alert Confirm Box in Selenium. If you want to OK the following ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/709188/42ce25d6-f9ce-33dd-a970-16f4e4cf5545.png) !

I tried to create a table only with Django

Background You want to receive multiple elements in an array on the display side and display them using `<table> </table>`. If you want to display in 5 columns, there will be a scene where you div

Error: pg_config executable not found

Error when installing `psycopg2-binary` via` pip` in WSL Linux environment. Python version is 3.9.1 ``` Error: pg_config executable not found. pg_config is required to build psycopg2 from s