[PYTHON] I want to write an element to a file with numpy and check it.

I get an unexpected error when combining arrays, and I want to write the elements to a file and check them, but it doesn't work because it is float by default.

Export by specifying fmt = "% d" in np.savetxt.

np.savetxt("a.csv", target, fmt = "%d")

Recommended Posts

I want to write an element to a file with numpy and check it.
I want to write to a file with Python
[Python] Concatenate a List containing numbers and write it to an output file.
I want to create a pipfile and reflect it in docker
I want to hack Robomaster S1 ① Rooting and file configuration check
I tried to make a calculator with Tkinter so I will write it
I want to make a game with Python
I want to receive the configuration file and check if the JSON file generated by jinja2 is a valid JSON
I want to pass an argument to a python function and execute it from PHP on a web server
The file edited with vim was readonly but I want to save it
I want to display only different lines of a text file with diff
I want to drop a file on tkinter and get its path [Tkinter DnD2]
I want to make a music player and file music at the same time
I want to use mkl with numpy and scipy under pyenv + poetry environment
I also wanted to check type hints with numpy
I want to transition with a button in flask
I want to handle optimization with python and cplex
I want to climb a mountain with reinforcement learning
I want to write in Python! (2) Let's write a test
I want to randomly sample a file in Python
I want to work with a robot in python.
I want to split a character string with hiragana
I want to manually create a legend with matplotlib
I want to run a quantum computer with Python
I want to bind a local variable with lambda
Read and write a file
I want to save a file with "Do not compress images in file" set in OpenPyXL
[Introduction to system trading] I drew a Stochastic Oscillator with python and played with it ♬
I want to replace the variables in the python template file and mass-produce it in another file.
I want to write a triple loop and conditional branch in one line in python
Write and read a file
I want to start a jupyter environment with one command
[Python] I want to get a common set between numpy
I want to make a click macro with pyautogui (desire)
I want to change the Japanese flag to the Palau flag with Numpy
I want to make a click macro with pyautogui (outlook)
I want to use a virtual environment with jupyter notebook!
I want to install a package from requirements.txt with poetry
[Visualization] I want to draw a beautiful graph with Plotly
Recursively get the Excel list in a specific folder with python and write it to Excel.
I made a server with Python socket and ssl and tried to access it from a browser
I want to improve efficiency with Python even in an experimental system (2) RS232C and pySerial
I want to copy an English paper from pdf and put it in Google Translate
[Graph drawing] I tried to write a bar graph of multiple series with matplotlib and seaborn
I want to make a voice changer using Python and SPTK with reference to a famous site
I want to cut out only the face from a person image with Python and save it ~ Face detection and trimming with face_recognition ~
Create an audio file with the text-to-speech function with Google Text To Speak and check the text as a guide for the speech for 3 minutes.
[Python] Write to csv file with Python
Write standard output to a file
I want to do ○○ with Pandas
I want to debug with Python
I want to record the execution time and keep a log.
Don't write Python if you want to speed it up with Python
Make it possible to output a log to a file with go echo
Create a temporary file with django as a zip file and return it
I want to solve APG4b with Python (only 4.01 and 4.04 in Chapter 4)
A memorandum when I tried to get it automatically with selenium
I want to do a full text search with elasticsearch + python
I want to use an external library with IBM Cloud Functions
I tried to make a periodical process with Selenium and Python
Scraping and tabelog ~ I want to find a good restaurant! ~ (Work)