Trending questions in Python

0 votes
1 answer

what is vm options ? I installed Pycharm on my pc but it shows no vm options file found . What should i do please help me to fix it

Hi, @Mushfiqkhantrial, It is important to run pycharm.sh from the bin folder. The VM ...READ MORE

Oct 4, 2020 in Python by Gitika
• 65,910 points
1,590 views
0 votes
1 answer

How to filter my model on the basis of text length in django?

Hello @kartik, For Django >= 1.8 you can ...READ MORE

Aug 13, 2020 in Python by Niroj
• 82,880 points
3,798 views
0 votes
1 answer

How to filter Pandas DataFrame by values of columns?

Hi@akhtar, You can filter Pandas Dataframe with the ...READ MORE

Oct 20, 2020 in Python by MD
• 95,440 points
853 views
0 votes
1 answer

How to remove all of the data in a table using Django?

Hello @kartik, Inside a manager: def delete_everything(self): ...READ MORE

Aug 12, 2020 in Python by Niroj
• 82,880 points
3,814 views
0 votes
1 answer

Error:setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Hello @kartik, Try installing these packages. sudo apt-get install ...READ MORE

Jun 5, 2020 in Python by Niroj
• 82,880 points
6,753 views
0 votes
1 answer

How Django rest framework override page_size in ViewSet?

Hello @kartik, Fixed this by creating custom pagination ...READ MORE

Jul 2, 2020 in Python by Niroj
• 82,880 points
5,601 views
0 votes
1 answer

How to add annotate data in django-rest-framework queryset responses?

Hello @kartik, The queryset returned from get_queryset provides ...READ MORE

Jun 25, 2020 in Python by Niroj
• 82,880 points
5,861 views
0 votes
1 answer

ModuleNotFoundError: No module named 'pyttsx3'

Hello @SUHRID, For your query you can refer ...READ MORE

Oct 7, 2020 in Python by Niroj
• 82,880 points
1,364 views
0 votes
0 answers

TypeError: tuple indices must be integers or slices, not tuple

Im a begginer and im trying to ...READ MORE

Oct 19, 2020 in Python by peyman
• 120 points

edited Oct 19, 2020 by Gitika 907 views
+1 vote
1 answer

Web Scraping with Python:-> ModuleNotFoundError: no module named 'selenium'

Hello @shamsher, First try to check what version ...READ MORE

Aug 10, 2020 in Python by Niroj
• 82,880 points
3,867 views
0 votes
1 answer
0 votes
1 answer

is there a way to send sql query data from redshift and send the data via email to sns?

I resolved this issue using AWS Glue ...READ MORE

Nov 21, 2020 in Python by Ruben
• 180 points
1,227 views
0 votes
1 answer

How to remove a file using the OS module in Python?

Hi@akhtar, In Python, you can use the os. remove() method to remove ...READ MORE

Oct 18, 2020 in Python by MD
• 95,440 points
880 views
0 votes
1 answer

How to check if a value exists in pandas dataframe index?

Hello @kartik, Basically instead of raising exception I ...READ MORE

Jun 15, 2020 in Python by Niroj
• 82,880 points
6,248 views
0 votes
1 answer

ImportError: No module named django_extensions

Hello @kartik, You can solve this error by ...READ MORE

Jun 25, 2020 in Python by Niroj
• 82,880 points
5,797 views
0 votes
1 answer

How to order_by a JSON from serializers.py file in django rest framework?

Hello @kartik, There's an easy way, just override ...READ MORE

Jul 2, 2020 in Python by Niroj
• 82,880 points
5,525 views
0 votes
1 answer

In python whats difference between default constructor and no parameter constructor?

The default constructor is called when there ...READ MORE

Oct 6, 2020 in Python by Gitika
• 65,910 points
1,339 views
0 votes
1 answer

How do I update the file name itself in python?

Consider I as the integer value  Increment ...READ MORE

Oct 29, 2020 in Python by anonymous
• 65,910 points
368 views
0 votes
1 answer

ModuleNotFoundError: No module named 'twilio'

Hi@akhtar, It seems you don't have a Twilio ...READ MORE

Jun 25, 2020 in Python by MD
• 95,440 points
5,810 views
0 votes
1 answer

What is the inverse operation of np.log() and np.diff()?

Hello @kartik, The reverse will involve taking the ...READ MORE

Jun 16, 2020 in Python by Niroj
• 82,880 points
6,185 views
0 votes
1 answer

Error: Name is not defined, It’s not returning a value

Remove main & try or  Use __name__ instead ...READ MORE

Oct 12, 2020 in Python by Gitika
• 65,910 points
1,050 views
0 votes
1 answer

How can I render HTML to PDF in Django site?

Hello @kartik, Use this code to generate the PDF ...READ MORE

Jul 29, 2020 in Python by Niroj
• 82,880 points
4,301 views
+1 vote
1 answer

How to change the order of DataFrame columns in pandas?

Hi@akhtar, You can rearrange a DataFrame object by ...READ MORE

Oct 20, 2020 in Python by MD
• 95,440 points
646 views
0 votes
1 answer

I want to generate Fibonacci sequence of 100 numbers in Linked list and then reverse in python

Hey,  You can go through the given example ...READ MORE

Oct 12, 2020 in Python by Gitika
• 65,910 points
1,028 views
0 votes
1 answer

How to configure where to redirect after a log out in Django?

Hello @kartik, You don't need to overwrite or ...READ MORE

Aug 17, 2020 in Python by Niroj
• 82,880 points
3,474 views
0 votes
1 answer

What is the best online python compiler for running python scripts?

You can use Microsoft azure notebooks to ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
903 views
0 votes
1 answer

when I run this, I get NameError: name 'state' is not defined error. How to solve this?

Hi@MUHAMMAD, I tried to run the exact code ...READ MORE

Sep 8, 2020 in Python by MD
• 95,440 points
2,509 views
0 votes
1 answer

Error like “Your CPU not supported AVX , AVX2”

Your CPU is supported, Only the Binary was ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
860 views
0 votes
1 answer

Error:“Unknown command syncdb” running “python manage.py syncdb”

Hello @kartik, $python manage.py syncdb is deprecated and not ...READ MORE

Aug 5, 2020 in Python by Niroj
• 82,880 points
3,872 views
0 votes
1 answer

How to reverse a string in Python using slicing operator?

Hi@akhtar, Strings can be reversed using slicing. To ...READ MORE

Aug 17, 2020 in Python by MD
• 95,440 points
3,346 views
0 votes
1 answer

Is python partially compiled and partially interpreted?

Hi, @Sonali, You can check this out https://www.edureka.co/community/6776/compiled-vs-interpreted-languages, as ...READ MORE

Oct 22, 2020 in Python by Gitika
• 65,910 points
460 views
0 votes
3 answers

How to draw a tic tac toe board in python?

def printTable():             for i in range(1,10):                     print(" ",end=' ')                     if(i%3==0 ...READ MORE

Oct 11, 2020 in Python by Sumit Nagpal
11,072 views
0 votes
1 answer

What is the difference between visual studio and idle in python programming??

Both are actually IDE-s I don't know ...READ MORE

Oct 16, 2020 in Python by Gitika
• 65,910 points
699 views
0 votes
0 answers

How to click on the main menu and sub menu using python script

How to proceed with main menu and ...READ MORE

Oct 6, 2020 in Python by ParthivPatel
• 140 points
1,181 views
0 votes
1 answer

Could not find a version that satisfies the requirement PIL==1.1.7 #6

Honestly, as long as you have the ...READ MORE

Sep 11, 2020 in Python by Gitika
• 65,910 points
2,179 views
0 votes
1 answer

How to load a custom JS file in Django admin home?

Hello @kartik, You can override templates/admin/index.html and add the JavaScript ...READ MORE

May 14, 2020 in Python by Niroj
• 82,880 points
7,348 views
0 votes
1 answer

How to add Django script to access model objects without using manage.py shell?

Hello @kartik, Use the following and you will be ...READ MORE

Jun 29, 2020 in Python by Niroj
• 82,880 points
5,354 views
0 votes
1 answer

How to scrape data from infinite scroll website using scrapy?

Hello, @Detrod, Regarding your query, I guess you ...READ MORE

Jul 17, 2020 in Python by Rashmi
4,565 views
0 votes
1 answer

what is if __name__ =='__main__: in python

Hello @Joy, '__main__' is the name of the scope ...READ MORE

Oct 20, 2020 in Python by Niroj
• 82,880 points
445 views
0 votes
1 answer

Code for motion detection with opencv Youtube tutorial please

Hey, @Ashay, You can even go through this: https://www.youtub ...READ MORE

Oct 19, 2020 in Python by Gitika
• 65,910 points
459 views
0 votes
1 answer

How to reset Django admin password?

Hello @kartik, Just try this: python manage.py changepassword <user_name> Hope ...READ MORE

Aug 6, 2020 in Python by Niroj
• 82,880 points
3,615 views
0 votes
1 answer

How to write a code In Python where input will be 1 then the output will be 2?

You can go through this:  def num(number): ...READ MORE

Oct 7, 2020 in Python by Gitika
• 65,910 points
962 views
0 votes
1 answer

FileNotFound error

PATH is an issue here. It should ...READ MORE

Oct 16, 2020 in Python by anonymous
• 65,910 points
479 views
0 votes
1 answer

How to call function in django ?

Hi, @Hari, Are you facing any error while ...READ MORE

Oct 12, 2020 in Python by Gitika
• 65,910 points
648 views
0 votes
1 answer

How can modify request.data in django REST framework?

Hello @kartik, Generally request in drf views is rest_framework.request.Request instance. Following to ...READ MORE

Jul 2, 2020 in Python by Niroj
• 82,880 points
5,082 views
0 votes
1 answer

How to create login user using Django Rest Framework?

Hello @Reebika , For you query you can refer ...READ MORE

Oct 12, 2020 in Python by Niroj
• 82,880 points
657 views
0 votes
1 answer

SyntaxError: invalid syntax in inline function.

Hi@akhtar, You need to write your if-else code ...READ MORE

Oct 5, 2020 in Python by MD
• 95,440 points
965 views
0 votes
1 answer

How to install voice recognizer in python?

You can install the Speech Recognition library ...READ MORE

Oct 15, 2020 in Python by anonymous
• 65,910 points
493 views
0 votes
1 answer

El return solo me devuelve False en este método

Hola amiga como estas La función no devuelve ...READ MORE

Oct 19, 2020 in Python by Gitika
• 65,910 points
331 views
0 votes
1 answer

Reverse a string in Python

You should try to use the following ...READ MORE

Feb 8, 2022 in Python by Rahul
• 9,670 points
505 views