Python Code Samples



Filters


yogeswaran60
Basic Matrix Manipulations in Python Without Using Any Packages
yogeswaran60 | 6 years, 6 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
Get User Presence of Slack user with slack api and python
kishore_kumar | 6 years, 1 month
from slackclient import SlackClient

user_token = "xoxp-2284524168-327340147858-399021736478-b7ed2
python slack-api
Ramya
PYTHON: Email Notification
Ramya | 5 years, 3 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 | 5 years, 10 months
import pandas as pd

data = [['Alex',10],['Bob',12],['Clarke',13]]
python pandas
Promise Chaining in nodejs
harika | 5 years, 9 months
const mul = (a, b) => {
  return new Promise((resolve, reject)=> {
    setTimeout(()=>{
nodejs python async
conditional selection with numpy arrays
kishore_kumar | 6 years, 9 months
import numpy as np
ser_arr = np.arange(1,10)
mat1 = ser_arr.reshape(3,3)
numpy python
Python get last working day of the month
kishore_kumar | 3 years, 7 months
from datetime import datetime
import calendar

python datetime
How to get full path of python module file and directory
kishore_kumar | 5 years, 10 months
import os

if __name__ == '__main__':
python python-os
Draw subplots in matplotlib
harika | 6 years, 4 months
import matplotlib.pyplot as plt
plt.figure(1)
plt.subplot(211)
You can see the output in the attached image. If you want to play with plot then set specific prope
python matplotlib
POST request in python using requests
kishore_kumar | 6 years, 7 months
import requests

url = "https://httpbin.org/post"
url can be your API/service URL for your request.
python python-requests
Prev Next