Wednesday, October 20, 2021

[New post] Python code snippet – How to change the name of a variable in a loop ?

Subash Chandran posted: "for i in range(3): locals()["group"+str(i)] = self.getGroup(selected, header+i) "

[New post] How to delete an element from a tuple in Python?

Subash Chandran posted: "#create a tuple tuplex = "w", 3, "r", "s", "o", "u", "r", "c", "e" print(tuplex) #tuples are immutable, so you can not remove elements #using merge of tuples with the + operat"

[New post] #Sensor: #Canada: #Job/Contract/Project: #Sensor, #Tracking, #Fusion, #Estimation, #Surveillance, #sensor network, #target #tracking, #security 2021-10-21

Author-Check- Article-or-Video posted: "Date Posted:2021-10-21 .Apply yourself, or submit others as candidates; Build a recruitment team to submit others as candidates; submit RFP to be considered for projects in future; Try to become a vendor so that you are asked to submit consultants/resourc"

[New post] Python code snippet – How to get all distinct substrings in a string ?

Subash Chandran posted: "def substr(string): j=1 a=set() while True: for i in range(len(string)-j+1): a.add(string[i:i+j]) if j==len(string): break j+=1 return a"

[New post] How to get a summary of a column in Python?

Subash Chandran posted: "In [47]: df.describe().transpose() Out[47]: count mean std min 25% 50% 75% max shopper_num 14 7.5 4.1833 1 4.25 7.5 10.75 14 is_martian 14 0 0 False 0 "

[New post] Python code snippet – How to get the output in rupees in pandas?

Subash Chandran posted: "from babel.numbers import format_currency print(format_currency(123456789, 'INR', locale='en_IN').replace(u'\xa0', u' ')) "

[New post] Python code snippet – pyton How to tell if string is a int or string?

Subash Chandran posted: "def RepresentsInt(s): try: int(s) return True except ValueError: return False"

[New post] Python code snippet – How to extract zip file ?

Subash Chandran posted: "import zipfile with zipfile.ZipFile("file.zip","r") as zip_ref: zip_ref.extractall("targetdir")"

What makes an Instant Coffee "Premium"?

It's in the beans and packing process͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ͏‌  ...