What to do if there is a decimal in python json .dumps
# Introduction For example, if you handle int / float numerical data in DynamoDB, the data will be retrieved as decimal. When I run python's standard json.dumps on queries and get items that contain
[Note] Anaconda & VScode has trouble with python import error
<h2> Introduction </ h2> When I run python in the terminal, I get an error when importing the module. This time is the memorandum. <h2> Environment </ h2> mac:Big Sur Editor: VScode Python:3.8 <h
"Deep Learning from scratch" Self-study memo (No. 19) Data Augmentation
While reading "Deep Learning from scratch" (written by Yasuki Saito, published by O'Reilly Japan), I will make a note of the sites I referred to. [Part 18](https://qiita.com/slow_learner/items/a62421
Be careful because Go's nil slice will be null in Firestore
## problem I was writing data to a Firestore doc with Go, and for some reason I was wondering if the field I expected an array had null. Also as a data type ```go type Fuga struct { Hoge [
Python tutorial summary
# print statement #### **`print statement`** ```python %s #String %r ... %d #integer %f #Fixed-point notation %1.5f #Fixed-point notation(,5 is a decimal digit) %e #Exponential notation ``` ```ru
How to store Python function in Value of dictionary (dict) and call function according to Key
## 1. Declare a method (function) #### **`Python3`** ```python3 def sample_func_1(text : str) -> str: add_text = "Added string" return (text + add_text) def sample_func_2(text : str) ->
[Personal development] Story of creating an application for artists with SPA with Django REST Framework and Vue-Cli [DRF + Vue.js]
# Introduction Hello. I'm a new engineer for the second year. This time, I finally released a personally developed app, so I'm going to make it an article. # Creation App: [https://paintmonitor.
Tips for importing macOS-optimized TensorFlow in an Apple M1 chip environment
## Overview -Trial and error to run "Mac-optimized TensorFlow and TensorFlow Addons" (https://github.com/apple/tensorflow_macos) on MacBook Air with M1 --Migrating your environment from the Intel a
What you can understand because you are a beginner How to create a file (first post)
How to create a file (article for beginners) 1 Start the terminal 2 ```cd deskTop ☜ T should be capitalized ``` 3 ```mkdir File name you want to give ``` 4 The file is now on your desktop! !!
Medical image analysis with Python 1 (Read MRI image with SimpleITK)
# Introduction There are several libraries that read DICOM, but this article will explain how to use SimpleITK to read medical images such as MRI and CT. # What is Simple ITK SimpleITK is a library
How to transpose a 2D array using only python [Note]
# Thing you want to do Transpose a two-dimensional array of python and further convert int to str I want to do it without using pandas or nd.array #### **`example.txt`** ```txt [ [5, 0, 1, 1], [
Use Azure ML Python SDK 4: Write output to Blob storage-Part 2
# Contents of this time The content of this time is almost the same as the previous [Using Azure ML Python SDK 3: Writing the output to Blob storage-Part 1](https://qiita.com/notanaha/items/d22ba02b9
For the first time, I learned about Unix (Linux).
# This article Since a beginner learned Unix for the first time, I will summarize the important points and output it as well as fixing it. I hope that similar beginners will get used to it with a lit
I tried LeetCode every day 21. Merge Two Sorted Lists (Python, Go)
## Introduction @Ishishow is running a free English word site [E-tan](https://your-e-tan.com/). I would like to work on letcode every day to improve my ability as a programmer and give my own way
Delete 1000 objects stored in AWS S3 at a time.
# Thing you want to do I want to be able to delete a file by reading the file containing the key name of the object to be deleted and executing it with a click. # policy -Prepare a file in which th
Timezone specification when converting a string to datetime type in python
# datetime and timezone When making a datetime type from a string and registering it in elasticsearch, It was strange if I didn't specify the timezone. It is the ``` memorandum` `` `that I went to
Understand machine learning ~ ridge regression ~.
# Introduction Nice to meet you. It is m0rio0818. I recently started studying machine learning. I'm still groping, but I'd like to keep it here as a memorandum. I'm not good at SNS in general, so
How to use the Google Cloud Translation API
I referred to the next page. [Text Translation (Basic)](https://cloud.google.com/translate/docs/basic/quickstart?hl=ja) #### **`ex01.py`** ```py #! /usr/bin/python # # from google.cloud import tr
Submit in [Python] form
# Submit in [Python] form #### **`python`** ```java <!DOCTYPE html> <html lang="ja"> <html> <head> <meta charset="utf-8"> </head> <body> <form action="{% url 'index' %}" method="post">
[Note] Operators related to four arithmetic operations
# List of four arithmetic operations available in Python This is a summary of the four arithmetic operations that can be used with numeric types. It suddenly came out as a numerical type. It's sudden
Could not insert Dict format inside f string
## Could not insert Dict format inside f string ```python in_folder=r"C:\Test" name={ "OK":r"OK.csv", "NG":r"NG.csv", } #NG print(f"{in_folder}\{name["NG"]}"))#Syntax error print(f"{in_folder}
Visualize the center of the rank battle environment from the Pokemon Home API
# What is the Pokemon environment? The term environment used in Pokemon battles refers to what kind of Pokemon, strategy, and construction are used in the rank battle of Pokemon Sword Shield. It can
I made a LINE BOT with Python and Heroku
I made a LINE BOT that returns parrots as part of Python learning. # Complete image . By reading this article 1 Upload text 2 Upload image 3 Audio upload You can find out how to do it
Look up the URL in sitemap.xml without too big line breaks with Linux commands
I wanted to find out how many urls were written in sitemap.xml without line breaks that were too big, so I tried it quickly with a Linux command. Insert a line feed code after `</ url>` and check t
Python control syntax (memories)
A memorandum around Python's control syntax. We will make additions and corrections as needed. ## Comparison operator |operator|Explanation| |:-:|:-:| | A == B |A and B are equal| | A != B |A a
JSON encoding / decoding of custom objects
# Overview Describes an example of JSON-encoding / decoding a complex structure containing instances (objects) of a custom class. The language is Python 3.8.1. For Python, it's easier to use `pi
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
## About my environment The outline of the environment that caused the error is described. --macbookAir (It is important to be a mac for the time being) --I put python3.7 in Homebrew (this is the m
Deploy your Go app on Google App Engine with GitHub Actions
TL;DR It seems that there were various ways to deploy the Go app to Google App Engine with GitHub Actions, but now it seems better to use Action called google-github-actions / setup-gcloud provided
Plot CSV of time series data with unixtime value in Python (matplotlib)
↓ Suppose you want to plot the data of such a CSV file. <pre> $ cat 1.csv "_time",count 1604847600,0 1604848200,2 1604848800,0 1604849400,2 1604850000,0 1604850600,3 1604851200,3 1604851800,0 16048