questions/python/page/23
On Python ≥ 3.5, use pathlib.Path.mkdir: from pathlib import ...READ MORE
Hi@akhtar, You can read an HDF file using ...READ MORE
You need to decode the bytes object ...READ MORE
Hello, Try to downgrade protobuf, this worked for ...READ MORE
First build an Element instance root from the XML, ...READ MORE
Do not use with pip > 10.0! My ...READ MORE
Hello @kartik, Try this: def permutations(head, tail=''): ...READ MORE
Assuming module foo with method bar: import foo method_to_call = getattr(foo, 'bar') result ...READ MORE
Go for Django . It's easy and ...READ MORE
You can use the in operator: if "blah" not in ...READ MORE
Both are actually IDE-s I don't know ...READ MORE
Here is my code: import pandas as p import ...READ MORE
Hello, To install requests module for Python2: $ sudo apt-get install ...READ MORE
Here are the steps you can follow: Install Python. ...READ MORE
Hi@Ganesh, I think you are calling the wrong ...READ MORE
Hello @kartik, Assuming you have pip installed and ...READ MORE
Hi, @There, The traceback module and sys.exc_info are ...READ MORE
Hi@akhtar, First, remove the Sklearn form your Windows system ...READ MORE
If you don't configure one you might ...READ MORE
Hello @divyashree def isPrime(n): # ...READ MORE
Hello @kartik, To check for permissions in templates, ...READ MORE
You should use conda to install Python ...READ MORE
Instead of using the /regex/g syntax, you can construct ...READ MORE
Python 3 class MyClass(object): = New-style class class MyClass: = New-style ...READ MORE
Use: >>> import datetime >>> datetime.datetime.now() datetime.datetime(2009, 1, 6, 15, ...READ MORE
1. I have a folder with multiple ...READ MORE
Hello, The len() function can be used with several different ...READ MORE
from collections import defaultdict a = {1: 2, ...READ MORE
Hi@akhtar, I had the same problem when installing ...READ MORE
Hello @kartik, You can override templates/admin/index.html and add the JavaScript ...READ MORE
Hello, Using try except and the right error ...READ MORE
H= float (input("Is this circuit charging& ...READ MORE
It's because of the way in which ...READ MORE
Look at the subprocess module in the standard library: import ...READ MORE
Hi@akhtar, You need to install the Cython module ...READ MORE
Hii Kartik, check uwsgi + django source code and pass static param ...READ MORE
Hello @kartik, You can use BeautifulSoup: from bs4 import BeautifulSoup x="""<foo> ...READ MORE
Here are the steps that you can ...READ MORE
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
Install the older version of python, I also ...READ MORE
There are some good answers here. I ...READ MORE
Hello @kartik, For Django >= 1.8 you can ...READ MORE
Hello @kartik, You can solve this error by ...READ MORE
Hello I'm trying to scrape webpage by sending ...READ MORE
Hi@akhtar, You need to import the NumPy module ...READ MORE
def printTable(): for i in range(1,10): print(" ",end=' ') if(i%3==0 ...READ MORE
if i choose a value from first ...READ MORE
Hello @kartik, You can use the add filter: {{ object.article.rating_score|add:"-100" }} Thank ...READ MORE
Hello @kartik, Look at the subprocess module in the standard ...READ MORE
Hello @mahesh, First you have to fetch user ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.