python3.6 tag

18 questions


2 answers
77 views
0
Rewrite the list and print it

Use index 2 column and sort it out in descending order I wrote [:3] because I wanted only the top 3 to come up It will be printed in a line.If you know how to do it, please leave a comment.mylist.sort...

1 years ago

1 answers
80 views
0
jdbc driver error when connecting msql(sql server) in spark...

ubuntu 18.04.4LTSpython 3.6.9 spark 2.4.6When connecting to mssql after a jdbc call using a command such as spark.read.format()... to pyspark in the environment, we used it well without any connection...


3 answers
69 views
0
How to use sudo pip with ubuntu end user permissions???

I'm working on Python in ubuntu.On the online server, I installed Python 3.5 on ubuntu and installed necessary packages such as python pipes.However, during the installation process, I installed it as...


1 answers
66 views
0
install librosa package

As the title suggests, it is difficult to install the librosa package on an offline PC.First, I downloaded the file to pip download librosa and moved it to a PC that doesn't have internet access.And I...

1 years ago

1 answers
124 views
0
How do I unfold python overlaid dict without a flatten external library?

nested = {'X': {'a': {'one': 10, 'two': 20}, 'b': {'one': 10, 'two': 20}, 'Y': {'a': {'one': 10, 'two': 20}, 'b': {'one': 10, 'two': 20}}}This dict value is nested = {'X_a_one':10, 'X_a_two':20...}I'...


1 answers
91 views
0
How do I deliver python requests post --data-raw?

curl --location --request POST 'https://test.com' \--header 'Content-Type: application/json' \--data-raw '{ encrypted:U2FsdGVkX19ETWIFRzm0a/TA8s=}'Linux delivers it like thisWhen I turned it over to P...

1 years ago

3 answers
89 views
0
Is there a way to count or sum key values such as list-dict type in python (jython 2.7)?

Last time, I asked you how to count the same values in a list-dict type of dataConversely, how do you count multiple values of the same key?For your information, ** does not eat in Jaison 2.7.origin =...

1 years ago

1 answers
108 views
0
To json_nnormalize when the value in the python pandas dataframe is a string of json structure

index str_json0 {KEY1:1,ai_count:0,KEY2:0,KEY3...1 {KEY1:1,ai_count:0,KEY2:0,KEY3...2 {KEY1:1,ai_count:0,KEY2:0,KEY3...3 {KEY1:1,ai_count:0,KEY2:0,KEY3......Data frame as above, str_json is a stri...

1 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.