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,770 views
0 votes
1 answer

ImportError:cannot import name numpy_type_map

Hi@MengWel, You need to install the torch library first ...READ MORE

Jun 23, 2020 in Python by MD
• 95,460 points
2,170 views
0 votes
0 answers
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,191 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
15,999 views
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,895 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,262 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,544 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,787 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 1,976 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,485 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,903 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,720 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,957 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,314 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,222 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,810 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,827 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
632 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,781 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,755 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,768 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
3,922 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,644 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
847 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,800 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
11,999 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,579 views
0 votes
1 answer
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,034 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,563 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,671 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,645 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
835 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,632 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,744 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,582 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,568 views
+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,106 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,257 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,821 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,615 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,476 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
2,965 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,254 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,375 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,220 views
0 votes
1 answer

How to split a large sample of text into words in Python?

Hi@akhtar, You can use nltk module to split your text ...READ MORE

Jun 26, 2020 in Python by MD
• 95,460 points
1,331 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,050 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,804 views