questions/python/page/32
Hello @kartik, In settings.py: try: from local_settings ...READ MORE
Hi@MD, You can use the append function to ...READ MORE
Hi@akhtar, You can use set_index function in pandas. ...READ MORE
import sys print(sys.argv) More specifically, if you run python example.py ...READ MORE
Hello @kartik, By default, informational and debugging messages ...READ MORE
Hey, @There, Actually there is a simple solution: use ...READ MORE
def dt_to_str(date, fma='%Y-%m-%d'): """ Converts a datetime object to ...READ MORE
since I am a newbie in python ...READ MORE
Hi@akhtar, The lambda statement can appear in places ...READ MORE
To check if a website allows web ...READ MORE
Try running the following code. #!/usr/bin/env python """Simple script ...READ MORE
Write a function called number_of_occurrences that takes ...READ MORE
Hi, @Roshni, You can use two for-loops for ...READ MORE
Hii, You have to install the modules like bs4, ...READ MORE
You cant change colour cause its the ...READ MORE
Hi@Amine, The error is because there is some ...READ MORE
Try this: df = pd.DataFrame(columns=['Name', 'ID', 'Department']) if df.empty ...READ MORE
Hello @kartik, If you want to pickle your ...READ MORE
Hi@akhtar, You can use the requests module in ...READ MORE
Hello @kartik, You had to install libfreetype6-dev and libpng-dev from the repositories. ...READ MORE
well i think the sapi5 is not ...READ MORE
Hey, @Subi, Regarding your query, you can go ...READ MORE
Try using the following expression: Grep -o "TEST:d+" ...READ MORE
I tried the following method. Its not 100% ...READ MORE
Hi@lzzy, According to your error, there is a ...READ MORE
Hello @kartik, json.dumps() returns the JSON string representation of ...READ MORE
from selenium import webdriver from selenium.webdriver.chrome.options import Options from ...READ MORE
No there is not. You cannot declare ...READ MORE
Run the following command: sudo yum install python3 This ...READ MORE
Hi@akhtar, Say, you have one list A. Now convert ...READ MORE
Hello @kartik, You can use itertools.chain(): import itertools list2d = [[1,2,3], ...READ MORE
Hey, Web scraping is a technique to automatically ...READ MORE
Hi@akhtar, You can find one function called savefig ...READ MORE
webkit2png. The original version is OSX-only, but luckily ...READ MORE
Hello @kartik, You don't have to change your ...READ MORE
Hey, @Anan, When you specify chunk size in a ...READ MORE
Need help in formatting the output. Please ...READ MORE
Hello @kartik, To generate graph in png format ...READ MORE
Hello @kartik, I use Gmail as my SMTP ...READ MORE
change def parse(path): g = gz ...READ MORE
for label, value in s.iteritems(): s.set_value(label, ...READ MORE
READ MORE
You can use pd.Series.isin. For "IN" use: something.isin(somewhere) Or for "NOT ...READ MORE
Hii, You can run easy_install to install python ...READ MORE
If you add a hyphen between the ...READ MORE
$ pip install pybase ERROR: Could not find ...READ MORE
import csv import sys reload(sys) sys.setdefaultencoding('utf8') data = [["a", "b", u'\xe9']] with ...READ MORE
Hi@akhtar, The dateutil module provides powerful extensions to the standard ...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.