questions/python/page/17
Hello, Try this: return HttpResponse(status=204) Hope it works!! ...READ MORE
S1="string1" S1[-2::] Output: g1 READ MORE
long='73.9876' lati='18.6543' query="SELECT user_id ,SQRT(POW(69.1 * (latitude - lati), ...READ MORE
Hello, I am trying to convert an object ...READ MORE
end and sep are optional parameters of ...READ MORE
Hi@akhtar, Python pickle module is used for serializing ...READ MORE
Hello, A function that returns True for an integer number (int or ...READ MORE
Regarding your query, it must relate to ...READ MORE
You are running into the old problem with floating-point ...READ MORE
Here's a generator that yields the chunks ...READ MORE
Hello @kartik, would suggest using glob.iglob() instead of the glob.glob(), as ...READ MORE
Hello @kartik, The << part is wrong, use < instead: $ ./manage.py shell ...READ MORE
Hello @kartik, You missed the models - and ...READ MORE
Hello @kartik, You can fetch the URL in ...READ MORE
I have Excel sheet saved as XML ...READ MORE
Dear all, I'm trying to reproduce one of ...READ MORE
I am trying to create a booking ...READ MORE
Hello @kartik, As another option, you can do ...READ MORE
If both columns are strings, you can ...READ MORE
Hi@Umama, If you are using Linux system, then ...READ MORE
when I install engine or anyother module ...READ MORE
Hii, In express 4.x: req.get('Referrer') This will also check both spellings of ...READ MORE
Hello @kartik, Set show_change_link to True (False by default) in your inline ...READ MORE
To read user input you can try the cmd module for ...READ MORE
Hi@durgaraju, You can fetch only the body part. ...READ MORE
This can be done by importing the ...READ MORE
Basically, a solution would be to install ...READ MORE
Hello @kartik, Try this: Type 'start %appdata%' in cmd. After ...READ MORE
To get the full path to the ...READ MORE
print(list(your_df)) READ MORE
UpdateView only allows GET and POST... if ...READ MORE
Hello @kartik, Only change your pub_date if published has ...READ MORE
Hello @kartik, You can use itertools.chain(): import itertools list2d = [[1,2,3], ...READ MORE
Hii kartik, To get rid of the error, roll ...READ MORE
Hi, @There, A possibility is that the element ...READ MORE
Hello @kartik, The first thing to do is ...READ MORE
I want to load the NSL_KDD data ...READ MORE
A factory makes products using parts that ...READ MORE
training_data = [ ["Green",3, 'Mango'], ['Yellow',3,'Mango'], ['Red',1, 'Grape'], ['Red',1, 'Grape'], ['Yellow',3,'Lemon'] ] header = ...READ MORE
Hello @kartik, You can definitely do this using ...READ MORE
You can open a file for simultaneous ...READ MORE
list_x =[1,2,34] list_x READ MORE
Hello, I had numpy installed on the same ...READ MORE
If you're running Python 2.7.9+ or Python ...READ MORE
Hello all, I am a new in Python ...READ MORE
Hi@akhtar, You may get this error if you ...READ MORE
Python 3.5+: import pathlib pathlib.Path('/my/directory').mkdir(parents=True, exist_ok=True) pathlib.Path.mkdir as used above ...READ MORE
Hello @kartik, Python you can write your own ...READ MORE
ERROR: Command errored out with exit status ...READ MORE
variable = [] Now variable refers to an empty list*. Of ...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.