Trending questions in Python

0 votes
1 answer

How to use Python 3 and Django with Apache?

Hello @kartik, 1) The first thing we should ...READ MORE

Jul 3, 2020 in Python by Niroj
• 82,840 points
1,808 views
0 votes
1 answer

Python error saying "AttributeError: can't set attribute"

change your code to the following: @x.setter def x(self, ...READ MORE

May 30, 2019 in Python by Imran
19,046 views
0 votes
1 answer

How to convert .ipynb files into .py?

You can use this command to convert ...READ MORE

Aug 8, 2019 in Python by hansika
16,057 views
0 votes
0 answers
0 votes
1 answer

Error:after upgrading pip: cannot import name 'main'

Hello @kartik, You must have inadvertently upgraded your ...READ MORE

Jun 5, 2020 in Python by Niroj
• 82,840 points
2,949 views
0 votes
1 answer

ModuleNotFoundError: No module named 'testfixtures'

Hi@akhtar, It seems you don't have this module ...READ MORE

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

Error:pip install mysql-python fails with EnvironmentError: mysql_config not found

Hello @kartik, For centos users: yum install -y mysql-devel python-devel python-setuptools then pip ...READ MORE

May 27, 2020 in Python by Niroj
• 82,840 points
3,309 views
0 votes
1 answer

How to override the django admin translation?

Hello @kartik, Just as you can override a ...READ MORE

Jun 12, 2020 in Python by Niroj
• 82,840 points
2,572 views
0 votes
1 answer

Error:SSL backend error when using OpenSSL

Hii @kartik, After reading their INSTALLATION file, I ...READ MORE

May 20, 2020 in Python by Niroj
• 82,840 points
3,549 views
0 votes
1 answer

String is immutable data type. String.replace() So why there is command for string to replace the values....??

Hey, @Nelson, replace() actually returns a *copy* of ...READ MORE

Mar 30, 2020 in Python by Gitika
• 65,770 points
5,797 views
0 votes
1 answer

How do I sync the two models to two databases?

Hello @kartik, To sync the two models to ...READ MORE

Jun 29, 2020 in Python by Niroj
• 82,840 points
1,811 views
+1 vote
1 answer

Pressing "ENTER" in Instagram search box Python Selenium

driver.get("https://www.instagram.com/explore/tags/" + hashtag + "/") You will not ...READ MORE

Nov 5, 2020 in Python by vinnie Irvine

reshown Nov 5, 2020 by Sirajul 2,017 views
0 votes
1 answer

How to save an image locally using Python in which we already know the URL address?

Hi, @Roshni, The following code is used to ...READ MORE

Jun 26, 2020 in Python by Gitika
• 65,770 points
1,930 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
4,993 views
0 votes
2 answers

How to split excel field data which contains the multiple delimiter values?

Try the following: new = data["Filed_data"].str.split(";", n = ...READ MORE

Jun 25, 2020 in Python by Shivam Dutt Sharma
1,869 views
0 votes
1 answer

How to find the value of a row in a csv file in python?

If you want to find the value ...READ MORE

May 20, 2019 in Python by Sanam
19,276 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,770 points
5,357 views
0 votes
1 answer

How to convert a dictionary into a list in python?

Hi@akhtar You can convert a dictionary dataset into ...READ MORE

Jun 25, 2020 in Python by MD
• 95,460 points
1,873 views
+1 vote
1 answer

ImportError: cannot import name 'appdirs'

Hi@akhtar, I think you missed some module to ...READ MORE

May 5, 2020 in Python by MD
• 95,460 points
4,021 views
0 votes
1 answer

Django Server Error: port is already in use

Hello @kartik, Just type: sudo fuser -k 8000/tcp. This ...READ MORE

Jun 26, 2020 in Python by Niroj
• 82,840 points
1,804 views
0 votes
1 answer

Integrating Python code in .NET / Java

Hi,@Rajeshmthakkar, Jython is a Python interpreter implemented in ...READ MORE

Jul 27, 2020 in Python by Gitika
• 65,770 points
664 views
0 votes
1 answer

How to write a Python code to sort a numerical dataset?

Hi, @Roshni,  The code to sort a numerical ...READ MORE

Jun 26, 2020 in Python by Gitika
• 65,770 points
1,804 views
0 votes
1 answer

Web scraping data from a Spotfire web report

Hi, @There, You can try this: It reads ...READ MORE

Jun 30, 2020 in Python by Gitika
• 65,770 points
1,703 views
0 votes
1 answer

How to dynamically load a module in Python?

Hi, Dynamic loading is where we do not ...READ MORE

Jun 26, 2020 in Python by Roshni
• 10,480 points
1,799 views
0 votes
1 answer

How to create MySql database using Python?

Hi@akhtar, You need to use MySQL connector in ...READ MORE

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

How to save numpy array?

Hi@akhtar, You can use numpy.save() function to save ...READ MORE

Jun 22, 2020 in Python by MD
• 95,460 points
1,841 views
0 votes
0 answers

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hi guys i have below code . ...READ MORE

Oct 30, 2019 in Python by sumanth
• 190 points
12,028 views
0 votes
1 answer
+1 vote
3 answers

AttributeError: 'module' object has no attribute 'listen"

You'll have to install the pyaudio module ...READ MORE

Oct 3, 2019 in Python by Liala
7,281 views
0 votes
1 answer

How to get two tags in findall using BeautifulSoup?

You can mention both the tags in ...READ MORE

Apr 2, 2019 in Python by Giri
21,089 views
0 votes
1 answer

How to create a database engine using Sqlalchemy in Python?

Hi@akhtar, You can use the Sqlalchemy module in ...READ MORE

Jun 26, 2020 in Python by MD
• 95,460 points
1,603 views
0 votes
1 answer

How to remove the white spaces from the string “aaa bbb ccc ddd eee”?

Hi, @Roshni, You can do it Using join, read ...READ MORE

Jun 26, 2020 in Python by Gitika
• 65,770 points
1,601 views
0 votes
1 answer

How to install pycharm?

PyCharm is one of the most widely ...READ MORE

Jun 23, 2020 in Python by Sirajul
• 59,230 points
1,707 views
0 votes
1 answer

How Can I delete a record in Django models?

Hello @kartik, If you want to delete one ...READ MORE

Jun 23, 2020 in Python by Niroj
• 82,840 points
1,688 views
0 votes
1 answer

error: while concatenation in a dataframe using pandas!

Hi@akhtar, When we use Concat function we have ...READ MORE

May 5, 2020 in Python by MD
• 95,460 points
3,789 views
0 votes
1 answer

Can somebody explain the output of this code snippet?

By making a copy of a list ...READ MORE

Jun 23, 2020 in Python by Ya Sd
1,650 views
0 votes
1 answer

Unable to create EC2 instance using boto3

Hi@Pradeep, I have tried the below code and ...READ MORE

Jul 13, 2020 in Python by MD
• 95,460 points
847 views
0 votes
1 answer

How to remove a project from Pycharm?

Assuming that you have the project opened ...READ MORE

Aug 2, 2019 in Python by Arvind
• 3,050 points
15,733 views
0 votes
1 answer

Python interpreter error: I have installed Python 3.8 but it shows version 3.7

Add python3.8 in the environment variables . ...READ MORE

Jun 23, 2020 in Python by Mr X
1,618 views
0 votes
1 answer

How do I use Django templates without the rest of Django?

Hello @kartik, Let's say you have this important ...READ MORE

Jun 23, 2020 in Python by Niroj
• 82,840 points
1,593 views
+1 vote
1 answer

How to create a model dynamically just for testing in djanjo?

Hello @kartik, The basic idea is, make your tests an ...READ MORE

Jun 29, 2020 in Python by Niroj
• 82,840 points
1,296 views
0 votes
1 answer

Error: when install pylibmc using pip

Hello @kartik, It's in the libmemcached package. To ...READ MORE

May 20, 2020 in Python by Niroj
• 82,840 points
3,017 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
4,837 views
0 votes
1 answer

How to Specify a mySQL ENUM in a Django model?

Hello @kartik, You can follow this snippet below: MAYBECHOICE ...READ MORE

Jun 24, 2020 in Python by Niroj
• 82,840 points
1,493 views
0 votes
1 answer

How to count the NaN values in a column in pandas DataFrame?

Hello @kartik, Lets assume df is a pandas DataFrame. Then, df.isnull().sum(axis = ...READ MORE

Jun 15, 2020 in Python by Niroj
• 82,840 points
1,883 views
0 votes
1 answer

How do you convert two lists into a dictionary?

There are three different ways of converting ...READ MORE

May 27, 2019 in Python by Taj
• 1,080 points
18,505 views
0 votes
0 answers

utf-8' codec can't decode byte 0xa0 in position 10: invalid start byte

my code import wordcloud import numpy as np from matplotlib ...READ MORE

Mar 29, 2020 in Python by anonymous
• 120 points
5,277 views
0 votes
1 answer

ModuleNotFoundError: No module named 'Foundation'

Hi@akhtar, By default Foundation module comes with Anaconda ...READ MORE

Apr 24, 2020 in Python by MD
• 95,460 points
4,109 views
0 votes
1 answer

How to plot 3D charts in Python?

Hi@akhtar, Python is capable of creating 3d charts. ...READ MORE

Jun 29, 2020 in Python by MD
• 95,460 points
1,256 views
0 votes
1 answer

What is the function to randomize the items of a list in-place?

Hello @Roshni, Python has a built-in module called ...READ MORE

Jun 26, 2020 in Python by Gitika
• 65,770 points
1,391 views