Most voted 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,460 points
1,604 views
0 votes
1 answer

AttributeError: 'module' object has no attribute 'HTTPSConnection'

Hi@akhtar, You have to install openssl and openssl-devel before ...READ MORE

Apr 20, 2020 in Python by MD
• 95,460 points
2,482 views
0 votes
1 answer

AttributeError: module 'numpy' has no attribute '__version__'

Hi@akhtar, To avoid this error you can use ...READ MORE

Apr 20, 2020 in Python by MD
• 95,460 points
22,205 views
0 votes
0 answers

how to install kivy module in spyder?

Apr 20, 2020 in Python by amey
• 120 points
3,964 views
0 votes
1 answer
0 votes
2 answers

ModuleNotFoundError: No module named 'pythoncom' in pyttsx3

even i faced the same problem ...just ...READ MORE

Jun 2, 2020 in Python by anonymous
15,291 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,730 points
861 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,460 points
1,096 views
0 votes
1 answer

ImportError: cannot import name 'main' in pip

Hi@akhtar, To avoid this error, you should upgrade ...READ MORE

Apr 15, 2020 in Python by MD
• 95,460 points
5,299 views
0 votes
1 answer

How can I save a final model after training it on chunks of data?

Hey, @Anan, When you specify chunk size in a ...READ MORE

Apr 15, 2020 in Python by Gitika
• 65,730 points
2,877 views
0 votes
1 answer

How to configure smtp server using python?

Hi@akhtar, To set smtp server in your system, ...READ MORE

Apr 15, 2020 in Python by MD
• 95,460 points
2,142 views
0 votes
1 answer

How to connect mail server with smtplib module in python?

Hi@akhtar, You can connect mail server using smtplib ...READ MORE

Apr 15, 2020 in Python by MD
• 95,460 points
1,791 views
0 votes
1 answer

gaierror: [Errno 11003] getaddrinfo failed

Hi@akhtar, It most likely means the hostname of ...READ MORE

Apr 15, 2020 in Python by MD
• 95,460 points
19,643 views
0 votes
1 answer

How to convert a DictProxy object into JSON serializable dict?

Hello, Rather than using a private DictProxy method like _getvalue(), I'd ...READ MORE

Apr 15, 2020 in Python by Niroj
• 82,800 points
6,271 views
0 votes
1 answer

How to convert dictionary to JSON?

Hello @kartik, json.dumps() returns the JSON string representation of ...READ MORE

Apr 15, 2020 in Python by Niroj
• 82,800 points
3,409 views
0 votes
1 answer

How to remove a key from a Python dictionary?

Hello, If you need to remove a lot ...READ MORE

Apr 15, 2020 in Python by Niroj
• 82,800 points
2,020 views
0 votes
1 answer

How does numpy.newaxis work and when to use it?

Hello, The np.newaxis is generally used with slicing. It indicates ...READ MORE

Apr 14, 2020 in Python by Niroj
• 82,800 points
16,428 views
0 votes
1 answer

Import Error: No module named numpy?

Hello, I had numpy installed on the same ...READ MORE

Apr 14, 2020 in Python by Niroj
• 82,800 points
13,363 views
0 votes
1 answer

How can we install python modules without root access?

Hii, You can run easy_install to install python ...READ MORE

Apr 14, 2020 in Python by Niroj
• 82,800 points
3,075 views
0 votes
1 answer

How to pretty-print a numpy.array without scientific notation and with given precision?

Hii @kartik, The numpy arrays have the method round(precision) which ...READ MORE

Apr 14, 2020 in Python by Niroj
• 82,800 points
3,566 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,800 points
1,099 views
0 votes
1 answer

Error: “ 'dict' object has no attribute 'iteritems' ”?

Hii, In Python2, dictionary.iteritems() is more efficient than ...READ MORE

Apr 13, 2020 in Python by Niroj
• 82,800 points
7,946 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,520 points
697 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,800 points
1,363 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,800 points
1,368 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,800 points
1,687 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,800 points
887 views
0 votes
1 answer

AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Hi@akhtar, I think numpy version is not compatible ...READ MORE

Apr 13, 2020 in Python by MD
• 95,460 points
15,368 views
0 votes
2 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 16: invalid start byte

Thanks, This answer was helpful. READ MORE

Jul 11, 2020 in Python by Prashant Chhatrashali
18,062 views
0 votes
3 answers

import NumPy as np ImportError: No module named NumPy

You need to install numpy using pip install ...READ MORE

Dec 16, 2020 in Python by Roshni
• 10,440 points
36,239 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,460 points
1,175 views
0 votes
1 answer

ValueError: could not broadcast input array from shape (360,270,3) into shape (360,280,3)

Hi@akhtar, In the above error it shows could not ...READ MORE

Apr 9, 2020 in Python by MD
• 95,460 points
21,025 views
0 votes
1 answer

ImportError: matplotlib requires dateutil"

Hi@akhtar, The dateutil module provides powerful extensions to the standard ...READ MORE

Apr 9, 2020 in Python by MD
• 95,460 points
3,075 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,460 points
1,055 views
0 votes
1 answer

how to get the volume size in docker-py?

When you created one volume in docker ...READ MORE

Apr 8, 2020 in Python by MD
• 95,460 points
5,131 views
0 votes
1 answer

Building Time Series Model - Getting error involving datetime

Hey sharonda, Use a python datetime or string  results.get_prediction(start='2020-04-08', ...READ MORE

Apr 8, 2020 in Python by Niroj
• 82,800 points
2,265 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,730 points
1,138 views
0 votes
1 answer
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,730 points
1,251 views
0 votes
1 answer

I want to download a file from the website by web scraping. Can anyone explain how to do this in jupyter lab (python) with an example?

Hey, Web scraping is a technique to automatically ...READ MORE

Apr 7, 2020 in Python by Gitika
• 65,730 points
2,756 views
0 votes
1 answer

I am trying to install PIL module But I end up with an error :

Hi@Nishant, You can use PILLOW instead of PIL. $ ...READ MORE

Apr 6, 2020 in Python by MD
• 95,460 points
26,090 views
0 votes
1 answer

AttributeError: type object 'DataFrame' has no attribute 'from_items'

Hi, @Bronson, You can go through this, I ...READ MORE

Apr 6, 2020 in Python by Gitika
• 65,730 points
5,727 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
1,456 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,730 points
1,203 views
0 votes
0 answers

Python error " TypeError: string indices must be integers "

I am trying to execute following code ...READ MORE

Apr 3, 2020 in Python by Falguni
• 140 points

edited Apr 5, 2020 by Falguni 2,361 views
0 votes
0 answers
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,460 points
1,620 views