#Function
Tags: 2 posts
June 29, 2019
•
3 min read
Functions in Python - return, scope, args and kwargs
Return in Function Scoping in Function Access global variable in function context Declare a local variable within in a function Declare local variable with same name as in global Using Global Keyword *args and **kwargs in function Return in Function …
April 23, 2019
•
1 min read
Applying functions over pandas dataframe using apply, applymap and map
Importing Packages and Datasets import pandas as pd import numpy as np data = pd.DataFrame(np.random.rand(4, 3)*100, columns=['Physics','Çhemistry','Maths'], index = ['Student 1', 'Student 2','Student …