Trending questions in Python

0 votes
1 answer

How to extract specific tags in multiple html .txt files using python.

Hello, @Pooja, Even I got the same issue, ...READ MORE

Aug 5, 2020 in Python by Kedaar Thomas
4,652 views
0 votes
1 answer

How to install module in virtual environment?

The Python installers for Windows include pip. ...READ MORE

Nov 10, 2020 in Python by Gitika
• 65,910 points
442 views
0 votes
1 answer

ModuleNotFoundError: No module named 'turtle'

Hi@akhtar, It seems you don't have the turtle ...READ MORE

Jun 26, 2020 in Python by MD
• 95,440 points
6,371 views
0 votes
1 answer

How to install PyTorch?

Here are the steps you can follow:  Install Python. ...READ MORE

Oct 29, 2020 in Python by Gitika
• 65,910 points
972 views
0 votes
0 answers

Help: Receive data from tkinter gui and perform mathematical operations between lists

hello friends, I have been working on a ...READ MORE

Nov 4, 2020 in Python by Jessica
• 120 points
754 views
0 votes
1 answer

How to debug Django commands in PyCharm?

Hello @kartik, You can debug a custom Django ...READ MORE

Aug 17, 2020 in Python by Niroj
• 82,880 points
4,121 views
0 votes
2 answers

How to use in python for loop not equal marks? example: a!=0

Hello @Azizjon, You can go through the example ...READ MORE

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

how to fetch user details and send it to his email address using django rest framework

Hello @mahesh, First you have to fetch user ...READ MORE

Aug 18, 2020 in Python by Niroj
• 82,880 points
4,043 views
0 votes
1 answer

How to connect my app to mongo?

Most users try to use NoSQL-like DBs ...READ MORE

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

How to give local path instead of media URL?

If u are using iframe, you can ...READ MORE

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

what does this line fout.write("</{}>\n".format(opentags.pop())) do?

It closes one tag actually, opentags is ...READ MORE

Nov 10, 2020 in Python by Gitika
• 65,910 points
410 views
0 votes
1 answer

How to implemented the custom user model?

Yes, pip install my plugin and check ...READ MORE

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

Error:Pip install: can't open file pip, or Parent module '' not loaded

Hello @kartik, Assuming you have pip installed and ...READ MORE

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

urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>

Hi@akhtar, You need to use the read function in ...READ MORE

Jul 15, 2020 in Python by MD
• 95,440 points
5,497 views
0 votes
1 answer

what is the output of m = np.array([2,4,6]) n = np.array([2, True, False]) print(m+n)

Hi. @Nandini, The above code will give you ...READ MORE

Nov 11, 2020 in Python by Gitika
• 65,910 points
369 views
0 votes
1 answer

How to check the value is double in the existing data that when ever the values are double print thats value

Hey, @There, I guess regarding your query you ...READ MORE

Nov 3, 2020 in Python by Gitika
• 65,910 points
688 views
+1 vote
1 answer

How to install django in anaconda prompt?

Here are the steps that you can ...READ MORE

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

why is the dcount and tcount 0 and 0 in the output?

Because the dcount and tcount variables you ...READ MORE

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

How to see more rows in a dataframe?

You can go through the given below: pd.set_option('display.max_rows', ...READ MORE

Nov 10, 2020 in Python by anonymous
• 65,910 points
360 views
0 votes
1 answer

Is there anyway to get the total count of times of a Generator?

Generators are originally created to return an ...READ MORE

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

How to convert a list into an array in Python?

Hi@akhtar, You need to import the NumPy module ...READ MORE

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

Is there any built in sorted data structure in python?

Yes. List is sortable. Dict is also ...READ MORE

Nov 4, 2020 in Python by Richa sharma
571 views
0 votes
1 answer

How to check permission inside a template in Django?

Hello @kartik, To check for permissions in templates, ...READ MORE

Aug 7, 2020 in Python by Niroj
• 82,880 points
4,375 views
0 votes
1 answer

return [x + y for x, y in zip(a, b)]

Hello @Ahmad, Could you please explain your workaround ...READ MORE

Nov 3, 2020 in Python by Gitika
• 65,910 points
562 views
0 votes
1 answer

Support vector Regresson

Hi,@ Manoj, I would suggest you go through ...READ MORE

Nov 9, 2020 in Python by anonymous
• 65,910 points
329 views
0 votes
1 answer

TypeError :Cannot cast Index to dtype int

use numpy  and use .astype(np,int) instead of ...READ MORE

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

How to take user input python3?

Use a while True: loop, to take input forever, ...READ MORE

Nov 4, 2020 in Python by anonymous
• 65,910 points
475 views
0 votes
1 answer

Parse and restructure key:value pair of JSON Object to Python Object

@Khushboo, Can you link to a correctly formatted ...READ MORE

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

How to add properties while installing GOTO?

You can follow a few steps: click advanced ...READ MORE

Nov 6, 2020 in Python by Gitika
• 65,910 points
344 views
+1 vote
1 answer

'numpy.ndarray' object has no attribute 'append'

Hi@Noman, You created two empty list. And in ...READ MORE

May 17, 2020 in Python by MD
• 95,440 points
7,787 views
0 votes
1 answer

How to install pip?

'pip' is not recognized as an internal ...READ MORE

Nov 6, 2020 in Python by anonymous
• 65,910 points
331 views
0 votes
1 answer

What is selenium in python?

It is known as Web automations, It is ...READ MORE

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

ImportError: No module named 'Cython'

Hi@akhtar, You need to install the Cython module ...READ MORE

Jul 13, 2020 in Python by MD
• 95,440 points
5,290 views
0 votes
1 answer

How to write a HDF file from a DataFrame?

Hi@akhtar, Hierarchical Data Format (HDF) is a set ...READ MORE

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

How do I get user IP address in django?

Hii Kartik, check uwsgi + django source code and pass static param ...READ MORE

Apr 23, 2020 in Python by Niroj
• 82,880 points
8,761 views
0 votes
1 answer

How I can remove day and time from TimeStamp?

You can follow the below given: '{:%Y-%m}'.format(dt.strptime(str(key), '%Y-%m-%d ...READ MORE

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

position error

Hi, @There, The key error generally means the ...READ MORE

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

Why doesn't the button display below the message?

You can make use of the given ...READ MORE

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

How I can find array in array?

I guess the given below will b ...READ MORE

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

Does Python have a ternary conditional operator?

Think of the conditional expression as switching ...READ MORE

Nov 2, 2020 in Python by Gitika
• 65,910 points
377 views
0 votes
1 answer

I am getting output - "def"

You can make a change to your ...READ MORE

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

How to change the default Django date template format?

Hello @kartik, Within your template, you can use ...READ MORE

Aug 7, 2020 in Python by Niroj
• 82,880 points
4,132 views
0 votes
1 answer

How to make this add every number %a == 0 in the loop?

You can go through the given below ...READ MORE

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

Write program/code for below input to get required output.

That is a "set subtraction" operation. Use ...READ MORE

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

How to do math in a Django template?

Hello @kartik, You can use the add filter: {{ object.article.rating_score|add:"-100" }} Thank ...READ MORE

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

IndentationError: expected an indented block

Hi, @Baker, Putting in extra space or leaving ...READ MORE

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

How do I count the number of times the string (y/n) outputs

Hi, @Reshma, You can go through this as ...READ MORE

Oct 13, 2020 in Python by Lisa sanyal
1,200 views
0 votes
1 answer

compare two csv files and print the unique string in 3rd csv file.

Hi, @Smilish, I hope this below code will ...READ MORE

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

What is the basic difference between T-Test, Z-Test, Chi-Square and Annova test?

If we are using one numerical variable ...READ MORE

Oct 29, 2020 in Python by Gitika
• 65,910 points
520 views