Trending questions in Edureka Community

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 in Python by Mr X
39 views
0 votes
1 answer

How to call a function from another file in Python?

Hi@akhtar, You can use the import keyword to ...READ MORE

Jun 24 in Python by MD
• 33,180 points
21 views
0 votes
1 answer

How to use one URL in Python code?

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

Jun 24 in Python by MD
• 33,180 points
19 views
+1 vote
1 answer

Error:Pandas read_csv low_memory and dtype options

Hello @kartik, Try this: dashboard_df = pd.read_csv(p_file, sep=',', error_bad_lines=False, ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
46 views
0 votes
1 answer

What is the difference between .py and .pyc files in Python?

Hi, @Roshni, You can follow a few steps ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
32 views
0 votes
1 answer

Error: "Module not found" while importing tensorflow in pycharm.

Try the following: Go to Files -> Settings ...READ MORE

Jun 23 in Python by Sirajul
• 54,080 points
39 views
0 votes
1 answer

How to test python code using Pytest?

Hi@akhtar, You can use the Pytest module to ...READ MORE

Jun 24 in Python by MD
• 33,180 points
17 views
0 votes
1 answer

How to call function that takes an argument in a Django template?

Hello @kartik, You cannot call a function that ...READ MORE

Jun 23 in Python by Niroj
• 33,570 points
30 views
0 votes
1 answer

AttributeError: 'NoneType' object has no attribute 'find'

Hi@akhtar, It seems Sklearn is not installed properly ...READ MORE

Jun 22 in Python by MD
• 33,180 points
61 views
0 votes
1 answer

How to create one Pytest program?

Hi@akhtar, You need to create a file named test_*.py and ...READ MORE

Jun 24 in Python by MD
• 33,180 points
13 views
0 votes
1 answer

Error: Failed to download metadata for repo 'epel-modular'

Hi@akhtar, Before running dnf repolist command, try to ...READ MORE

Jun 22 in Linux Administration by MD
• 33,180 points
79 views
0 votes
1 answer

How to temporarily disable a foreign key constraint in MySQL?

Hello @kartik, To turn off foreign key constraint ...READ MORE

Jun 23 in Python by Niroj
• 33,570 points
30 views
0 votes
1 answer

What does request.user refer to in Django?

Hello @kartik, request.user is User model object. You cannot access ...READ MORE

Jun 23 in Python by Niroj
• 33,570 points
27 views
0 votes
1 answer

How can I disable logging while running unit tests in Python Django?

Hello @kartik, Since you are in Django, you ...READ MORE

Jun 23 in Python by Niroj
• 33,570 points
39 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 in Python by Niroj
• 33,570 points
28 views
0 votes
1 answer

How to insert an object at a given index in Python?

Hi, @Roshni, I will explain to you with ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
20 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 in Python by Niroj
• 33,570 points
26 views
0 votes
1 answer

How do I read CSV data into a record array in NumPy?

Hello @kartik, You can use Numpy's genfromtxt() method to do ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
75 views
0 votes
1 answer

ModuleNotFoundError: No module named 'pyperclip

Hi@akhtar, You may get this error if this ...READ MORE

Jun 22 in Python by MD
• 33,180 points
54 views
0 votes
1 answer

How do you get a list of all the keys in a dictionary?

Hey, @Roshin, I would like to give you ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
20 views
0 votes
1 answer

How to send image to firebase using python in raspberry pi?

Here's a code snippet demonstrating the same. # ...READ MORE

Jun 23 in Python by Sam
• 5,840 points
27 views
0 votes
1 answer

How to create a unicode string in python with the string eg: This is a string?

Hey, @Roshni, It is very simple to execute, ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
22 views
+1 vote
1 answer

How to convert a PIL Image into a numpy array?

Hello @kartik, You just need to convert your ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
32 views
0 votes
1 answer

what is the use of // operator in Python? Can anyone explain?

Hi, @Roshni, It is a Floor Divisionoperator, which ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
19 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 in Python by Ya Sd
19 views
0 votes
1 answer

Explain split() and join() functions in Python?

Hey, @Roshni, You can use split() function to split a ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
15 views
0 votes
1 answer

ImportError: DLL load failed: The specified module could not be found.

Hi@akhtar, You may get this error if you ...READ MORE

Jun 22 in Python by MD
• 33,180 points
60 views
0 votes
1 answer

What is the purpose of ​#!/usr/bin/python​on the first line in the above code?

Hey, @Roshni, By specifying #!/usr/bin/python you specify exactly ...READ MORE

Jun 23 in Python by Gitika
• 31,430 points
17 views
0 votes
1 answer

Need help with the output of a code snippet.

If you write x.insert(2,3) and then print x ...READ MORE

Jun 23 in Python by Viraj Doshi
19 views
0 votes
1 answer

How to install pycharm?

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

Jun 23 in Python by Sirajul
• 54,080 points
21 views
+1 vote
1 answer

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

Hello @kartik, To get rid of the error, roll ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
23 views
0 votes
1 answer

How can we install python in RHEL using CLI?

Run the following command: sudo yum install python3 This ...READ MORE

Jun 23 in Python by Tanay Singh
17 views
0 votes
1 answer

How to load Numpy array in Jupyter Notebook?

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

Jun 22 in Python by MD
• 33,180 points
54 views
0 votes
1 answer

How to delete conda env permanently?

Hi@akhtar, You can remove your Conda environment by ...READ MORE

Jun 22 in Python by MD
• 33,180 points
63 views
0 votes
1 answer

Can't import scikit -learn on python3.

Hi@akhtar, First, remove the Sklearn form your Windows system ...READ MORE

Jun 22 in Python by MD
• 33,180 points
41 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 in Python by Niroj
• 33,570 points
18 views
0 votes
1 answer

How to get the SQL from a Django QuerySet?

Hello @kartik, Try this in your queryset: print my_queryset.query For ...READ MORE

Jun 23 in Python by Niroj
• 33,570 points
17 views
0 votes
1 answer

How to change data types in Pandas DataFrame?

Hi@akhtar, You can use astype function to change ...READ MORE

Jun 22 in Python by MD
• 33,180 points
33 views
0 votes
1 answer

ImportError Traceback (most recent call last) ImportError: numpy.core.umath failed to import

Hi@akhtar, You need to upgrade your Numpy library. Your ...READ MORE

Jun 22 in Python by MD
• 33,180 points
36 views
0 votes
1 answer

How to merge two DataFrame in Pandas?

Hi@akhtar, You can use Pandas.merge() function to merge ...READ MORE

Jun 22 in Python by MD
• 33,180 points
34 views
0 votes
1 answer

CondaValueError: prefix already exists: F:\Ansoft\android\envs\mask

Hi@akhtar, It seems that the conda environment is already created. ...READ MORE

Jun 22 in Machine Learning by MD
• 33,180 points
59 views
0 votes
1 answer

Need help with UIPATH selectors.

Remove the idx value, if possible delete ...READ MORE

Jun 23 in RPA by Vi Santh
57 views
0 votes
1 answer

How to execute a Python script from the Django shell?

Hello @kartik, The << part is wrong, use < instead: $ ./manage.py shell ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
41 views
0 votes
1 answer

How to append new data in pandas DataFrame?

Hi@MD, You can use the append function to ...READ MORE

Jun 22 in Python by akhtar
• 14,770 points
24 views
0 votes
1 answer

Failed to start the Apache service

Hi@akhtar, I think port no. is busy. Some ...READ MORE

Jun 22 in Linux Administration by MD
• 33,180 points
38 views
0 votes
1 answer

How to set colume as index in Pandas DataFrame?

Hi@akhtar, You can use set_index function in pandas. ...READ MORE

Jun 22 in Python by MD
• 33,180 points
18 views
0 votes
1 answer

Error:Warning:config file server.conf not found

Hello @kartik, By default, informational and debugging messages ...READ MORE

Jun 22 in Python by Niroj
• 33,570 points
26 views
0 votes
1 answer

How to save numpy array?

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

Jun 22 in Python by MD
• 33,180 points
21 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 22 in Python by Niroj
• 33,570 points
27 views