py tag

191 questions


1 answers
442 views
0
I want to connect the dots in the image horizontally

I want to connect the black dots in the image horizontally.Contours of cv2 detected the contour and used Euclidean distance to create four coordinates so that the interval between the acquired contour...

1 years ago

1 answers
434 views
0
I want to delete a combination of arrays specified in Python's three-dimensional array.

I would like to delete [[23][01][01]] which is the opposite combination of [[01][23]] in Python's three-dimensional ndarray array as shown below.import numpy as nparr1 = np.array([[0,1], [2,3]], [[...

1 years ago

1 answers
300 views
0
Gaussian_filter fails when executing CSRNet code using SciPy

Create density map annotations from Person Head Position Annotations in CSRNet for Crowd counting models.Traceback (most recent call last): File /path/to/directory/make_dataset.py, line 67, in<modu...


1 answers
421 views
0
I'd like to do a cross-examination. Please tell me how to do it.

import numpy as npimport pandas aspddf_maize=pd.read_csv(PSD online data maize.csv, thousands=',')]df_maize.corr()I was able to calculate the correlation coefficient, but there was an error in the fol...

1 years ago

2 answers
482 views
0
How do I change the dtype from object to int64?

import numpy as npimport pandas aspddf_maize=pd.read_csv(PSD online data maize.csv)print(df_maize[Name])print(df_maize[Production])print(df_maize[Exports])# If you look at the printed results, the dat...

1 years ago

1 answers
371 views
0
Error in drawing using matplotlib unhashable type: 'numpy.ndarray'

If you run the following program in VSCode, an error message appears and the graph does not appear.Please let me know if there is a solution.errorAn exception has occurred: TypeError unhashable type: ...


1 answers
484 views
0
Error in drawing using mtplotlib unhashable type: 'numpy.ndarray'

If you run the following program in VSCode, an error message appears and the graph does not appear.Please let me know if there is a solution.errorAn exception has occurred: TypeError unhashable type: ...


1 answers
350 views
0
Error in drawing using mtplotlib unhashable type: 'numpy.ndarray'

If you run the following program in VSCode, an error message appears and the graph does not appear.Please let me know if there is a solution.errorAn exception has occurred: TypeError unhashable type: ...


1 answers
269 views
0
I can't solve the simultaneous equation in Python.

I solved the simultaneous equation and entered the following and ran it, but I couldn't say anything at all.What's wrong? from numpy.linalg import solveleft = [[2,1], [1, 3]]right = [1,13]print(solve...

1 years ago

2 answers
498 views
0
I want to speed up the process of integration and linear storage in Pandas, numpy.

I'm creating software for numerical analysis on Python, but it takes time and I want to speed it up.After analyzing with cProfile, we found that the following two functions, integr() and scipy's inter...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.