Published by Vivek
I am Vivek Joshi, I am currently working as Engineering Lead at ZS Associates.
* I have 9+ years of professional experience.
* Expertise in Python, Django, Flask, GIT, SQL/NOSQL , Javascript, Jquery, Angular.
* Skillful in Taking the Product From Scratch to Deployment.
* Good with Product Planning, Product Module Management, and Meeting Tough Deadlines.
* Proficient in Managing unlike teams.
** I am trying to use this blog as a medium to share and archieve some of my knowledge.
View all posts by Vivek
Great project! We always need a way to safety and security delete messages!
LikeLiked by 1 person
Thanks @archer920.
LikeLiked by 1 person
Ni Hau,
Muchas Gracias Mi Amigo! You make learning so effortless. Anyone can follow you and I would not mind following you to the moon coz I know you are like my north star.
I have a program like below
Python Code: (Double-click to select all)
1
2
3
4
5
6
7
8
9 import pytablewriter
writer = pytablewriter.MarkdownTableWriter()
writer.table_name = “example_table”
writer.header_list = [“SERVICE NAME”, “TEAM NAME”, “CI OWNER”, “SECONDARY CONTACT”, “PAYCHECK NAME”, “DEV”, “DEVII”,”QA”, “STAGE”, “PROD”, “PROD”]
writer.value_matrix = [
[“accommodation”, “POSE”, “Donker”,”Khavarian”,”Acc”, “Yes”, “Yes”, “Yes”,”Yes”,”Yes”,”Yes”],
[“activity-entity”, “Reg”,”Chang”, “John”, “TER”, “Yes”, “Yes”, “Yes”, “Yes”, “Yes”, “Yes”],
]
writer.write_table()
This works well.. but my requirment is
1. I have hardcoded values for value_matrix above..instead I have a csv file which has around 340 rows , instead of hardcoding these into program , i need to read that file and store all rows in the value_matrix
2. now once we have all 340 rows are written into matrix, I want to pass SERVICE NAME which is first field in csv i.e in above example code accommodation as run time paramater so that it will output only that row…
THANK YOU!! This saved my butt today, Iām immensely grateful.
Shukran,
Ajeeth
LikeLike