Python Code Samples



Filters


How to check given date comes under given cron schedule in python
kishore_kumar | 6 years, 1 month
# pip install croniter

import datetime
python croniter crontab
Promise Chaining in nodejs
harika | 6 years, 1 month
const mul = (a, b) => {
  return new Promise((resolve, reject)=> {
    setTimeout(()=>{
nodejs python async
How to get full path of python module file and directory
kishore_kumar | 6 years, 3 months
import os

if __name__ == '__main__':
python python-os
How to get first day of the month in python
kishore_kumar | 3 years, 10 months
from datetime import datetime

first_day = datetime.today().date().replace(day=1)
python datetime
POST request in python using requests
kishore_kumar | 6 years, 11 months
import requests

url = "https://httpbin.org/post"
url can be your API/service URL for your request.
python python-requests
Ramya
PYTHON: Email Notification
Ramya | 5 years, 8 months
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
mail = outlook.Cre
outlook python
convert all dataframe column names to lower case
kishore_kumar | 6 years, 2 months
import pandas as pd

data = [['Alex',10],['Bob',12],['Clarke',13]]
python pandas
Get User Presence of Slack user with slack api and python
kishore_kumar | 6 years, 6 months
from slackclient import SlackClient

user_token = "xoxp-2284524168-327340147858-399021736478-b7ed2
python slack-api
yogeswaran60
Basic Matrix Manipulations in Python Without Using Any Packages
yogeswaran60 | 6 years, 10 months
#Matrix Manipulations Without using any packages
#Define Matrix A,B,C 
A=[[1,2,3],
Change the result matrix dimension according to Matrix Dimensions properties Product of (M*N) and (
python matrix
Crating a bucket in S3 using boto3
Reshma | 6 years, 2 months
import boto3
sess = Session(aws_access_key_id='aws_key',
            aws_secret_access_key='aws_se
boto3 s3 create bucket
Prev Next