Trending questions in Python

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
• 3,161 views
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,800 points
• 2,874 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 • 3,211 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
• 3,254 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,730 points
• 3,024 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
• 3,130 views
0 votes
0 answers
0 votes
0 answers

Error: current transaction is aborted, commands ignored until end of transaction block?

I got a lot of errors with ...READ MORE

Aug 3, 2020 in Python by kartik
• 37,520 points
• 1,468 views
+1 vote
1 answer

WindowsError: [Error 126] The specified module could not be found.

Hi@akhtar, You can download the shapely module in ...READ MORE

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

Can someone help me make a score everytimes the "star" touch the bottom of the border?

Hello @PetesHacker , I saw you do collision detection ...READ MORE

Jul 30, 2020 in Python by Niroj
• 82,800 points
• 1,570 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,800 points
• 2,877 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
• 22,488 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
• 2,155 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
• 6,084 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
• 5,616 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,800 points
• 3,351 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,190 points
• 2,984 views
0 votes
1 answer

Error:Matplotlib tight_layout() doesn't take into account figure suptitle

Hello, You can simply adjust the coordinates of the ...READ MORE

May 7, 2020 in Python by Niroj
• 82,800 points
• 4,983 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
• 5,050 views
0 votes
3 answers

'python' is not recognized as an internal or external command

Try "py" instead of "python" from command line: C:\Users\Cpsa>py Python 3.4.1 (v3.4.1:c0e311e010fc, May ...READ MORE

Feb 8, 2022 in Python by Rahul
• 9,690 points
• 4,445 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,730 points
• 2,802 views
0 votes
0 answers

Python Online Training

Learn Python and master the most adopted ...READ MORE

Aug 7, 2020 in Python by swapna
• 120 points
1 flag • 1,001 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,730 points
• 1,634 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
• 2,931 views
+2 votes
2 answers

What is the difference between print and return in python?

Return statements end the execution of a ...READ MORE

Aug 26, 2019 in Python by anonymous
• 10,300 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,440 points
• 2,752 views
0 votes
0 answers

attribute error in python

i kept getting attribute error in my ...READ MORE

Dec 23, 2019 in Python by anonymous
• 120 points
• 2,213 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
• 2,669 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
• 1,837 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,800 points
• 2,491 views
0 votes
1 answer

Python Error saying "NameError: global name 'true' is not defined"

It's a very small mistake. Change true ...READ MORE

Jun 17, 2019 in Python by Vinayak

edited Oct 7, 2021 by Sarfaraz • 18,854 views
+1 vote
0 answers

TypeError: unsupported operand type(s) for /: 'list' and 'list'

This is my part of code, why ...READ MORE

May 17, 2020 in Python by anonymous
• 220 points

edited May 18, 2020 by Gitika • 4,366 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,730 points
• 2,665 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,991 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,800 points
• 2,703 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
• 2,673 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,800 points
• 4,130 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,800 points
• 2,598 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
• 6,394 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
• 2,366 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
• 1,802 views
+1 vote
2 answers

Cannot install tensorflow on 32-bit Python

Unfortunately tensorflow is not supported on 32 ...READ MORE

Jan 13, 2020 in Python by jaakko
• 160 points

edited Apr 18, 2022 by Sarfaraz • 14,450 views
0 votes
1 answer

How to delete column from pandas DataFrame?

Hi@akhtar, You can use the del command in ...READ MORE

Jun 24, 2020 in Python by MD
• 95,460 points
• 2,555 views
0 votes
1 answer

Python error "TypeError: 'encoding' is an invalid keyword argument for this function"

Trying using the io module for this ...READ MORE

Aug 2, 2019 in Python by Vaishali

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

How do I clone a Django model instance object and save it to the database?

Hello @kartik, Just change the primary key of ...READ MORE

Jun 26, 2020 in Python by Niroj
• 82,800 points
• 2,413 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,730 points
• 2,416 views
0 votes
2 answers

Which IDE should I use for python?

Pycharm or Spyder. You can even use visual ...READ MORE

Jun 23, 2020 in Python by Anjali
• 2,463 views
0 votes
1 answer

How to set dataframe based on Index Name & Column name ?

Hi@Gaurav, You can use set_index function in pandas. It allows ...READ MORE

Jun 29, 2020 in Python by MD
• 95,460 points
• 2,195 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
• 2,293 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
• 24,085 views