questions/python/page/32
Hi, @Roshni, You can use two for-loops for ...READ MORE
Hi@Amine, The error is because there is some ...READ MORE
Write a function called number_of_occurrences that takes ...READ MORE
Hi@akhtar, The lambda statement can appear in places ...READ MORE
Hi@akhtar, You can use the requests module in ...READ MORE
Here is what i found and was ...READ MORE
Hii, You have to install the modules like bs4, ...READ MORE
Hii Kartik, You could do it in two ...READ MORE
Try using the following expression: Grep -o "TEST:d+" ...READ MORE
since I am a newbie in python ...READ MORE
import sys print(sys.argv) More specifically, if you run python example.py ...READ MORE
Hello @kartik, You had to install libfreetype6-dev and libpng-dev from the repositories. ...READ MORE
Hey, @There, Actually there is a simple solution: use ...READ MORE
Try this: import turtle #set up the screen wn = ...READ MORE
from selenium import webdriver from selenium.webdriver.chrome.options import Options from ...READ MORE
You cant change colour cause its the ...READ MORE
Run the following command: sudo yum install python3 This ...READ MORE
Hello @kartik, If you want to pickle your ...READ MORE
Hi@lzzy, According to your error, there is a ...READ MORE
To check if a website allows web ...READ MORE
Hello @kartik, You can use itertools.chain(): import itertools list2d = [[1,2,3], ...READ MORE
Hii @kartik, The numpy arrays have the method round(precision) which ...READ MORE
Hello @kartik, You don't have to change your ...READ MORE
No there is not. You cannot declare ...READ MORE
Hi@akhtar, Say, you have one list A. Now convert ...READ MORE
Need help in formatting the output. Please ...READ MORE
Hello @kartik, json.dumps() returns the JSON string representation of ...READ MORE
for label, value in s.iteritems(): s.set_value(label, ...READ MORE
Hey, @Subi, Regarding your query, you can go ...READ MORE
Hi@akhtar, You can find one function called savefig ...READ MORE
READ MORE
Try this: df = pd.DataFrame(columns=['Name', 'ID', 'Department']) if df.empty ...READ MORE
You could scale your data to the ...READ MORE
Hello @kartik, I use Gmail as my SMTP ...READ MORE
Hello @kartik, To generate graph in png format ...READ MORE
you can remove the title bar by ...READ MORE
you can also do the old fashioned ...READ MORE
Try running the following code. #!/usr/bin/env python """Simple script ...READ MORE
Hii, You can run easy_install to install python ...READ MORE
I tried the following method. Its not 100% ...READ MORE
Context Manager: cd import os class cd: """Context manager for ...READ MORE
Hello @kartik, When you don't want to halt ...READ MORE
Hey, @Anan, When you specify chunk size in a ...READ MORE
Hello @kartik, Dictionaries will use an order that ...READ MORE
Hii, Using exc_info options may be better, to allow you ...READ MORE
Hi@akhtar, The dateutil module provides powerful extensions to the standard ...READ MORE
You can use pd.Series.isin. For "IN" use: something.isin(somewhere) Or for "NOT ...READ MORE
I have the following code below I ...READ MORE
Hey, Web scraping is a technique to automatically ...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.