Skip to content

Instantly share code, notes, and snippets.

View kshirsagarsiddharth's full-sized avatar
🎯
Focusing

kshirsagarsiddharth

🎯
Focusing
View GitHub Profile
@kshirsagarsiddharth
kshirsagarsiddharth / VisualizationWithPandas.ipynb
Created January 3, 2020 18:09
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kshirsagarsiddharth
kshirsagarsiddharth / linePlots.ipynb
Created January 9, 2020 12:50
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kshirsagarsiddharth
kshirsagarsiddharth / CustomizingPlotLegends.ipynb
Created January 10, 2020 14:11
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kshirsagarsiddharth
kshirsagarsiddharth / ColorMaps.ipynb
Created January 10, 2020 15:01
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kshirsagarsiddharth
kshirsagarsiddharth / bank.csv
Created January 18, 2020 14:44
Created on Cognitive Class Labs
We can't make this file beautiful and searchable because it's too large.
age,job,marital,education,default,balance,housing,loan,contact,day,month,duration,campaign,pdays,previous,poutcome,deposit
59,admin.,married,secondary,no,2343,yes,no,unknown,5,may,1042,1,-1,0,unknown,yes
56,admin.,married,secondary,no,45,no,no,unknown,5,may,1467,1,-1,0,unknown,yes
41,technician,married,secondary,no,1270,yes,no,unknown,5,may,1389,1,-1,0,unknown,yes
55,services,married,secondary,no,2476,yes,no,unknown,5,may,579,1,-1,0,unknown,yes
54,admin.,married,tertiary,no,184,no,no,unknown,5,may,673,2,-1,0,unknown,yes
42,management,single,tertiary,no,0,yes,yes,unknown,5,may,562,2,-1,0,unknown,yes
56,management,married,tertiary,no,830,yes,yes,unknown,6,may,1201,1,-1,0,unknown,yes
60,retired,divorced,secondary,no,545,yes,no,unknown,6,may,1030,1,-1,0,unknown,yes
37,technician,married,secondary,no,1,yes,no,unknown,6,may,608,1,-1,0,unknown,yes
@kshirsagarsiddharth
kshirsagarsiddharth / train_modified.csv
Created February 10, 2020 13:15
Created on Cognitive Class Labs
We can't make this file beautiful and searchable because it's too large.
Disbursed,Existing_EMI,ID,Loan_Amount_Applied,Loan_Tenure_Applied,Monthly_Income,Var4,Var5,age,EMI_Loan_Submitted_missing,Interest_Rate_Missing,Loan_Amount_Submitted_Missing,Loan_Tenure_Submitted_Missing,Processing_Fee_Missing,Device_Type_0,Device_Type_1,Filled_Form_0,Filled_Form_1,Gender_0,Gender_1,Mobile_Verified_0,Mobile_Verified_1,Source_0,Source_1,Source_2,Var1_0,Var1_1,Var1_2,Var1_3,Var1_4,Var1_5,Var1_6,Var1_7,Var1_8,Var1_9,Var1_10,Var1_11,Var1_12,Var1_13,Var1_14,Var1_15,Var1_16,Var1_17,Var1_18,Var2_0,Var2_1,Var2_2,Var2_3,Var2_4,Var2_5,Var2_6
0.0,0.0,0,300000.0,5.0,20000,1,0,41.713894592744694,1,1,1,1,1,0,1,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1
0.0,0.0,2,200000.0,2.0,35000,3,13,34.338124572210816,0,0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
0.0,0.0,5,600000.0,4.0,22500,1,0,38.32991101984942,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0
0.0,0.0,6,1000000.0,5.0,35000,3,10,32.19164955509925,1,1,0,0,
@kshirsagarsiddharth
kshirsagarsiddharth / defining_named_tuple.py
Last active July 18, 2020 16:58
defining named tuple
from collections import namedtuple
Bevrage = namedtuple('Bevrage',['name','color','type'])
tea = Bevrage('tea','brown','hot')
print(tea.name,tea.color,tea.type)
@kshirsagarsiddharth
kshirsagarsiddharth / tupleoperations.py
Created July 18, 2020 17:14
using tuple operations on a namedtuple
from collections import namedtuple
Bevrage = namedtuple('Bevrage',['name','color','type'])
tea = Bevrage('tea','brown','hot')
# printing length of tea object
print(len(tea))
# Output: 3
# unpacking the tea object
name,color,Type = tea
print(name,color,Type)
# Output: tea brown hot