py tag

191 questions


2 answers
50 views
0
Making a sub-array of the number pie

Hello. I'm trying to create a function that generates a subarray of an existing array using number-fi.For example, after receiving parameters such as shape of the existing array, center, and fill of t...

2 years ago

1 answers
89 views
0
Problems with Scipy import

If you install pip install scipy to use plu decomposition and import it from idle, it says it cannot be found. So, if you pip install scipy in cmd window again, it says it's already installed, and if ...

2 years ago

1 answers
129 views
0
Please tell me how to combine them according to the Python Pandas data frame conditions and calculate specific values.

with open(test.json, 'r', encoding=UTF8) as file: lines = file.readlines() json_data = [json.loads(ln.replace(\n, ))['data'] for ln in lines] df = pd.DataFrame(json_data)The structure of the df above ...


1 answers
119 views
0
I can't import konlpy, what should I do with the error?_ 2 No JVM shared library file (jvm.dll) found.

Inside the terminal >> jpype.getDefaultJVMPath()'C:\\Program Files\\Java\\jdk-14.0.1\\bin\\server\\jvm.dll' That's what it says. Inside Jupiter jpype.getDefaultJVMPath()ValueError: No JVM shared...

2 years ago

1 answers
149 views
0
How do I run cmd in Python code so that it is automatically entered?

Hello, I have a question.To run the program now, turn on the virtual environment in cmd, go to the appropriate folder path, and then python run.The program runs only when you run py.We found the os mo...

2 years ago

2 answers
52 views
0
Python Is there a way to get the order of maximum values in a particular dimension?

Noumpy or tf.Is there a way to get the order of maximum values in a particular dimension in the array?Simply put, we're going to take the position of the maximum value of a particular row in a place l...

2 years ago

1 answers
55 views
0
python import numpy error

Hello, I'm a work scheduler.Error executing py filecryingI am using Python as anaconda in Windows 10.As I checked the error, In cmd, an error occurs when you type python in the path C:\Users\bjpark\An...

2 years ago

1 answers
40 views
0
Heap corruption I don't know where and why it's coming from.

Write Code #include <stdio.h>#include <string.h>#include <stdlib.h>int main() { char* szBuffer = (char*)calloc(200,1); scanf_s(%s, szBuffer,_msize(szBuffer)); int length = strlen(szB...

2 years ago

1 answers
55 views
0
Count the number of specific values in the numpy Count the number of specific rgb values in the image.

The numpy shape is It comes in this form, but I want to count each of these values when it's [255 255 255] It's different from the list, so I don't have a clue.The shape is (3024, 3024, 3) type

2 years ago

1 answers
53 views
0
Python standard deviation,

import numpy aspx=np.random.normal(250,50,20)When the salary of 20 office workers was generated by the average and standard deviation, they wrote it like that.

2 years ago
« - 18 - »

© 2024 OneMinuteCode. All rights reserved.