Trending questions in Python

0 votes
1 answer

How to create new environment using conda?

Hi@akhtar, Environment means you are creating your own ...READ MORE

Apr 21, 2020 in Python by MD
• 95,440 points
750 views
0 votes
2 answers

How to solve the error - ssl module not found?

Hey, @There, nstall the necessary packages for Python ...READ MORE

Oct 23, 2020 in Python by Gitika
• 65,910 points
2,177 views
0 votes
1 answer

Compress and decompress string in Python

You can use the zlib module available in ...READ MORE

Jul 23, 2019 in Python by Bhagavath

edited Oct 7, 2021 by Sarfaraz 12,454 views
0 votes
1 answer

Create an empty list in python with certain size

Try this instead: lst = [None] * 10 The ...READ MORE

Aug 2, 2018 in Python by bug_seeker
• 15,520 points
27,779 views
0 votes
1 answer

How do I sort a list of dictionaries by a value of the dictionary?

Hello @kartik, import operator To sort the list of ...READ MORE

Apr 23, 2020 in Python by Niroj
• 82,880 points
554 views
+1 vote
1 answer

Python BeautifulSoup check if find returns Null object

You can add an if condition to ...READ MORE

May 9, 2019 in Python by Ruby
15,627 views
0 votes
1 answer

How to convert a dataframe into list?

Hi@akhtar, You can convert your dataframe into list. ...READ MORE

Apr 25, 2020 in Python by MD
• 95,440 points
466 views
0 votes
1 answer

How to make a chain of function decorators?

Hello @kartik, Python decorators add extra functionality to ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,880 points
839 views
+1 vote
1 answer

Python script to compare 2 files

Refer the given code and let us ...READ MORE

Jul 31, 2019 in Python by Arpit
11,902 views
0 votes
2 answers

Invalid Token in Python

in python version 2.7,3.6.8 you can't write ...READ MORE

Jun 25, 2020 in Python by ker
6,820 views
0 votes
1 answer

video streaming using cv2 module in python.

Hi@akhtar, Yes, you can use cv2 module for ...READ MORE

Apr 15, 2020 in Python by MD
• 95,440 points
674 views
0 votes
2 answers

Removing Title bar in Tkinter program

you can remove the title bar by ...READ MORE

Mar 19, 2019 in Python by anonymous
19,393 views
0 votes
1 answer

How do I parse a string to a float or int?

Hii, Python method to check if a string ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,880 points
722 views
0 votes
1 answer

How do I merge two dictionaries in a single expression in Python?

Hello, For dictionaries x and y, z becomes a shallowly merged dictionary with ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,880 points
685 views
0 votes
0 answers

Size is (121,512,512). Error is coming as : IndexError: index 152 is out of bounds for axis 0 with size 121.

def nodule_detect(nodules,j,numpyImage, numpyOrigin, numpySpacing): ...READ MORE

Jan 28, 2020 in Python by anonymous
• 150 points
3,957 views
0 votes
1 answer

I m begginer,is the python harder than java and html ??

Hey, @Shuddh,  Its upon your interests that what ...READ MORE

Apr 15, 2020 in Python by Gitika
• 65,910 points
465 views
0 votes
1 answer

can i get python interview questions pdf

Hey, @Navyboinpally, This is going to be very ...READ MORE

Apr 8, 2020 in Python by Gitika
• 65,910 points
775 views
0 votes
1 answer

how to play audio highlights his text in python?

Hey, You can split the audio files into ...READ MORE

Mar 27, 2020 in Python by Gitika
• 65,910 points
1,262 views
0 votes
1 answer

How to crop face from a photo using cv2 in python?

Hi@akhtar, You can do this task using cv2 ...READ MORE

Apr 9, 2020 in Python by MD
• 95,440 points
683 views
0 votes
1 answer

How to make a flat list out of list of lists?

Hii @kartik, Given a list of lists l, flat_list = ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,880 points
494 views
0 votes
2 answers

Python Error "UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b1' in position 20: ordinal not in range(128)"

import csv import sys reload(sys) sys.setdefaultencoding('utf8') data = [["a", "b", u'\xe9']] with ...READ MORE

Jun 28, 2019 in Python by anonymous
13,314 views
+1 vote
3 answers

How can I remove duplicate dict in list in Python?

[dict(t) for t in {tuple(d.items()) for d ...READ MORE

Aug 15, 2019 in Python by anonymous

edited Aug 20, 2019 by Kalgi 8,986 views
0 votes
1 answer

Azure VM Monitoring

Hi, @Mukund, For an Azure Virtual Machine, we ...READ MORE

Apr 6, 2020 in Python by Gitika
• 65,910 points
818 views
0 votes
0 answers

Use inverse transform with deep learning. Conceptual clarity needed

I have built a deep learning model ...READ MORE

Mar 21, 2020 in Python by Anan
• 180 points
1,469 views
0 votes
1 answer

How to keep keys/values in same order as declared?

You can't really do what you want ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,880 points
419 views
0 votes
1 answer

Which will good platform to perform anaconda navigation or other and install the package on anaconda ide

Hey, @Daulat, We use Anaconda Navigator to launch ...READ MORE

Apr 8, 2020 in Python by Gitika
• 65,910 points
615 views
0 votes
0 answers

How to return None if Dictionary key is not available?

I need a way to get a ...READ MORE

Apr 13, 2020 in Python by kartik
• 37,510 points
391 views
+2 votes
6 answers

How can I change directory or "cd" in Python?

Context Manager: cd import os class cd:     """Context manager for ...READ MORE

Oct 18, 2018 in Python by Nabarupa
27,570 views
0 votes
1 answer

How to read photo using cv2 module in python?

Hi@akhtar, Yes, you can read your image in ...READ MORE

Apr 9, 2020 in Python by MD
• 95,440 points
509 views
0 votes
1 answer

How to transfer multiple lines in a file using python?

Hi@akhtar, I don't know it will help you ...READ MORE

Mar 31, 2020 in Python by MD
• 95,440 points
874 views
0 votes
1 answer

how to install chatterbot in python?

You can install the latest development version of ChatterBot ...READ MORE

Jun 5, 2020 in Python by Neeraj
• 150 points
4,520 views
0 votes
1 answer

Python string replace not working

The replace method doesn’t store the altered ...READ MORE

Apr 4, 2019 in Python by Tina

edited Oct 7, 2021 by Sarfaraz 16,462 views
0 votes
1 answer

Is it possible in Python requests to print entire HTTP request?

A better idea is to use the ...READ MORE

Nov 26, 2018 in Python by Nymeria
• 3,560 points
22,030 views
0 votes
1 answer

How do I find current module name in python?

A module can find out its own ...READ MORE

Jul 30, 2019 in Python by Simran
11,381 views
+1 vote
3 answers

How to run the Python program forever?

you can also do the old fashioned ...READ MORE

Jun 10, 2019 in Python by brianno
20,195 views
0 votes
1 answer

How to print a string with curly braces in Python?

You can use something like this - mystring ...READ MORE

Jul 23, 2019 in Python by Neel
• 3,020 points
11,539 views
0 votes
2 answers

Find the largest value in a dictionary

Use below running code which is simple ...READ MORE

Nov 25, 2021 in Python by Suhas
959 views
0 votes
0 answers

The Pycharm and Python functions don't match. What should I do?

Hello, I am quite new to python ...READ MORE

Apr 5, 2020 in Python by anonymous
• 120 points
461 views
0 votes
0 answers

Excel .json Import Error: The Type of Current Preview Value is Too Complex to Display

Main Problem: I'm trying to import .json to excel ...READ MORE

Mar 15, 2020 in Python by Tarık
• 120 points
1,353 views
0 votes
1 answer

Python: Megre multiple dataframes into single data frame

You can merge the data frame using ...READ MORE

Jul 14, 2019 in Python by Sharan
11,884 views
0 votes
1 answer

How to convert sqlite format to CSV format?

Hi@akhtar, If you want to read SQLite format ...READ MORE

Feb 11, 2020 in Python by MD
• 95,440 points
2,695 views
0 votes
3 answers

how to use print statement in python3?

Brackets are required to print the output. >>> ...READ MORE

Nov 25, 2021 in Python by anonymous
1,336 views
0 votes
0 answers
0 votes
1 answer

How to access specific columns from a csv file?

Instead of using csv module in Python, ...READ MORE

Jul 15, 2019 in Python by Neel
• 3,020 points
11,696 views
0 votes
0 answers

How to solve UTF-8 error

Hi, im getting a problem when executing ...READ MORE

Mar 26, 2020 in Python by skaailet
• 120 points
652 views
0 votes
0 answers

How can I change the loss function when the shape of my data changes?

Since my data is too large, I ...READ MORE

Mar 27, 2020 in Python by Anan
• 180 points
546 views
0 votes
0 answers

how to create dataframes with nifi

Mar 13, 2020 in Python by pavankumar
• 140 points
1,014 views
0 votes
1 answer

I would like to connect to multiple databases in oracle

Hey Radhika, To communicate any database with Python ...READ MORE

Feb 17, 2020 in Python by Gitika
• 65,910 points
2,046 views
+1 vote
4 answers

How to write nested dictionaries to a CSV file

Using DictWriter there is no need in ...READ MORE

Oct 18, 2018 in Python by Richard William
26,864 views