questions/python/page/16
Why df.xs('C')['x']=10 does not work: df.xs('C') by default, returns a new ...READ MORE
raw_input() was renamed to input() in Python 3. Another example ...READ MORE
I tried to create an update api ...READ MORE
S3 --> SQS --S3 Transfer I need to ...READ MORE
Hi, @There, Given an array of size n, ...READ MORE
Hello @kartik, If you want two objects with ...READ MORE
Here's a generator that yields the chunks ...READ MORE
Hello @kartik, You can try the code below: pip ...READ MORE
def command1(): r=sr.Recognizer() with sr.Microphone() as source: print(random.choice(m)) r.puase_thresshold=1 sound=r.listen(source) try: com =r.recognize_google(sound,language='en-in') print('user:'+ com ...READ MORE
Hello, For html encoding, there's cgi.escape from the standard library: >> ...READ MORE
The script at Pastebin does work. However, ...READ MORE
Hello @kartik, If you want to import reverse, ...READ MORE
Hello @Rithika , Yes, it is possible. For example, you ...READ MORE
i know this is a noob question ...READ MORE
Hello @kartik, You could keep using viewsets.ModelViewSet and define http_method_names on your ...READ MORE
Hi@akhtar, You can convert your CSV file to ...READ MORE
This can be done by importing the ...READ MORE
I'm using selenium webdriver for chrome. My ...READ MORE
Seems like the pycrypto package is not ...READ MORE
I just used the following which was ...READ MORE
your dis is obviously not 1.13, it's ...READ MORE
Hey, @Roshni, By specifying #!/usr/bin/python you specify exactly ...READ MORE
Hey!, I am new to python i ...READ MORE
I think u can use the bootstrap ...READ MORE
Hi, @There, Try this: Rollback pip to an older ...READ MORE
# setting up the screen import turtle import math wn ...READ MORE
I am trying to store multiple product ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Hello @kartik, Here is how to do Basic ...READ MORE
Hello, pip is just a PyPI package like any other; you ...READ MORE
As stated in the urllib2 documentation: The urllib2 module has been split ...READ MORE
The section I'm having trouble with is ...READ MORE
Hello @kartik, would suggest using glob.iglob() instead of the glob.glob(), as ...READ MORE
Hello @kartik, The related_name attribute specifies the name of the ...READ MORE
In object-oriented programming languages like Python, an ...READ MORE
Either write your docs or use a ...READ MORE
By default, you can't. When importing a ...READ MORE
Pandas provide data analysts a way to ...READ MORE
i have that error (dont find answer) ...READ MORE
Modern versions of Python (3.5 or higher): run If ...READ MORE
Hi@akhtar, Python pickle module is used for serializing ...READ MORE
I have multiple files in an S3 ...READ MORE
Hello @kartik, There are 2 ways to custom ...READ MORE
from sklearn.model_selection import cross_val_score max_k = 100 cv_scores = ...READ MORE
end and sep are optional parameters of ...READ MORE
S1="string1" S1[-2::] Output: g1 READ MORE
import pandas as pd import numpy as np df ...READ MORE
Use "getattr": obj = MyClass() try: ...READ MORE
Hello @kartik, It looks like you don't have ...READ MORE
The problem is that thread_obj.start() returns immediately. The child ...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.