Python Code Samples



Filters


Matplotlib create a bar chart in python
kishore_kumar | 6 years
import matplotlib.pyplot as plt

categories = ['Student', 'FreeLancer', 'Employee', 'Others']
python matplotlib
Threading in python basic example - create a Thread
kishore_kumar | 5 years, 11 months
import threading
import time

python threading
Listing contents of a bucket with boto3
Reshma | 5 years, 2 months
import boto3

_BUCKET_NAME = 'Bucket_name'
boto3 files s3 bucket
Ramya
DataFrame Row Selection, Addition,Slicing and Deletion
Ramya | 5 years, 3 months
import pandas as pd
d = {'One':pd.Series([1,2,3],index=['a','b','c']),'Two':pd.Series([4,5,6],index
python pandas dataframe
How to get image width and height using python
kishore_kumar | 5 years, 3 months
from PIL import Image

im = Image.open('my_image.png')
python python-pil
How to check given date comes under given cron schedule in python
kishore_kumar | 5 years, 1 month
# pip install croniter

import datetime
python croniter crontab
Ramya
PYTHON: Random Password Generator
Ramya | 4 years, 8 months
import random
import string
def randomPassword(stringLength):
random python
Send message to user in slack with python and slack api
kishore_kumar | 5 years, 11 months
from slackclient import SlackClient

user_token = "xoxp-2284524168-327340147858-399021736478-b7ed2
python slack-api
Ramya
PYTHON: Email Notification
Ramya | 4 years, 8 months
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
mail = outlook.Cre
outlook python
yogeswaran60
Basic Matrix Manipulations in Python Without Using Any Packages
yogeswaran60 | 5 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
Prev Next