or tag

453 questions


1 answers
65 views
0
There is an error trying to set the php executable path in vcode.

I set it like that when I first installed the vscode and edited the php file, I got a message asking me to set the path, but there is an error. I'm asking you a question because I don't know even if I...

2 years ago

2 answers
74 views
0
Is there a way to divide it into two using split and for statement and save it as a new data frame?

Hello. I'm practicing split and For Moon, but there's a blockage.#1.for i in range(len(df)) : df_split1[i], df_split2[i]=df.loc[i].split(sep='.', maxsplit=1)#2.for i in range(len(df)) : df.loc[i, 'c']...

2 years ago

1 answers
91 views
0
html JavaScript question. Making simple sentences simple

I want to change this code to a simple for statement, but I want to know how to change it.I want to know how to reduce it in other waysYo $(function(){ $('#main_a1').click(function(){ $('#main_conte...

2 years ago

1 answers
108 views
0
How can split be used for things that are slightly different in form (?) from each other using split, for, etc.?

Hello, I am an introvert who has been practicing split, for, and if moon recently.df = pd.DataFrame({idx5:[ ex1.x.1, ex1.x, ex2.x.2, ex2.x.3, ex1.x.2, ex2.x, ex2.x.4, ex2.x.5, ex1.x.3, ex3.x, ex2.x.6,...

2 years ago

1 answers
95 views
0
Is there a way in Python DataFrame to store a specific value position (row or column) and a specific number of values in each variable?

Hello, I'm Python beginner who is learning Python dataframe.fori in range(len(df)) if df1.loc[i, idx1]==HELLO : cnt1=cnt1+1 num=i df2.loc[10, 'idx8'] = df.at[i,'IDX8']There's a code like this, but ...


1 answers
90 views
0
TypeError: 'int' object is not callable error appears

defk(T, n): #rate constants if n == 1: return Kb * T / h * np.exp(-gibbs / (R * T)) elif n == 2: return Kb * T / h * np.exp(-gibbs1 / (R * T))def ktot(T, n): # Total rate constant _t = 0.0 for m in ...


1 answers
84 views
0
I have a c++ language beginner question.

Even if you enter numbers that do not fall apart by dividing them into 10 and 4, the decimal point does not come out properly. How can I get a decimal point? ㅠ

2 years ago

1 answers
77 views
0
I have a question about range in the for statement!

I just started coding, so I have a question for j in range(len(list2)): for w in range(len(list2[0])): if list3[w] != list2[j][w]: new_list.append(list2[j][w])J = 0, 1 w = 0, 1, 2, 3, 4, 5We know th...

2 years ago

1 answers
111 views
0
There is a problem coding with Python. TypeError: '<=' not supported between instances of 'int' and 'NoneType'

I coded the image brightness adjustment, but when I run it, You get an error like this. I would appreciate it if you could tell me how to solve this problem.

2 years ago

1 answers
71 views
0
When randomizing a Python list, randomize it by the number of random numbers n (please look at the code...)

I'm still an inexperienced student in coding.An error occurs when you try to randomly extract (redundant) n (1<=n<=18) from the list... In this case, I'd like you to tell me how to code.import r...

2 years ago
« - 43 - »

© 2024 OneMinuteCode. All rights reserved.