list tag

251 questions


1 answers
72 views
0
Creating Python nested dictionary lists into data frames Question

For example, the following nested dictionary lists are listed: a = [ {'info' : {'name' : 'hahaha', 'status' : 'True'} , 'price' : 500} ]I'd like to change it to the following data frame. 'name' 'stat...


2 answers
42 views
0
Putting individual lists together

lang_type=['ko','en','es','vi']text_src = translator.translate(user_text).srcif text_src==lang_type[0]: telegram.Bot(TelegramToken).send_message(user_id,translator.translate(user_text, dest=lang_type...

2 years ago

1 answers
79 views
0
Python List Compensation. Here'

a = ['1', 'a', '3', 'c'], ['e', 't', 'h', '3'], ['u', 'y', 'p', '2']b = ['u', 'y', 'p', '2'], ['4', 's', 'a', 'x'], ['8', '9', 'y', 'w']q = [w for w, s in zip(a, b) if 'a' not in (w and s)]e = [s for ...


1 answers
41 views
0
Please help me, Python hyungs

The first questionQuestion number 2 It hasn't been long since I started Python, but it's not working out at all. Help me!

2 years ago

1 answers
89 views
0
To output a list of Python recursive function utilization index values

The code I made is listn=[] #emptylist def searchn(list, key): #searchn function definition for n in range (len(list)): if list[n]==key: listn.append(n) print(listn) Like this, let the for statement...

2 years ago

1 answers
39 views
0
I want to know how to print out the elements in the Python list and calculate them.

It's a problem.Source list output, one element output of arr in a line Create List Store the obtained mean in listA, or listB according to half Output listA and listB my coding.The price should be as ...

2 years ago

2 answers
40 views
0
Wrap List Element

When the list is [0, 0, 0, 0, 0, 0, 0, 0], Output value is 0 0 0 00 0 0 0It's a situation where it has to come out as. I know how to print out each element, but I don't know how to tie it up as much a...

2 years ago

1 answers
104 views
0
Question about the result value that appears when the list is not added to the Lambda function (python)

a=[1,2,3,4,5,6,7,8,9,9,1,5,4,32,2]a=map(lambda x :x*10,a)print(a)I used the Lambda function to do the things on the list at once *10.But if you don't put a list,map object at 0x000002659B33DF10Is that...

2 years ago

1 answers
137 views
0
Python random.shuffle function/list/tuple TypeError: 'NoneType' object is not usable

Hello! While I was working on this and that with what I learned, I thought I could randomly extract two lists at once and make a code, but in the A=tuple(a) step, it said TypeError: 'NoneType' object ...

2 years ago

2 answers
45 views
0
I want to print out the list name as a list element.

I would like to save the declared list by MBTI as a variable called TotalStyle and print it out in the form of 'celebrity, MBTI' through double for statement.According to the code I wrote, the TotalSt...

2 years ago
« - 25 - »

© 2024 OneMinuteCode. All rights reserved.