Azure Functions - How to trigger an email on any change in storage container blob
Introduction In Azure, assuming you are having a storage container. And, you…
October 05, 2021
In last post, we saw How to read CSV with Headers into Dictionary
In this post, we will read the csv data into array of arrays.
Lets assume we have a csv something similar to following:
firstname,lastname,address,city,state,pin
John,Doe,120 jefferson st.,Riverside, NJ, 08075
Jack,McGinnis,220 hobo Av.,Phila, PA,09119
"John ""Da Man""",Repici,120 Jefferson St.,Riverside, NJ,08075
Stephen,Tyler,"7452 Terrace ""At the Plaza"" road",SomeTown,SD, 91234
,Blankman,,SomeTown, SD, 00298
"Joan ""the bone"", Anne",Jet,"9th, at Terrace plc",Desert City,CO,00123
def read(filepath):
content = []
with open(filepath) as csvfile:
csv_reader = csv.reader(csvfile)
for row in csv_reader:
content.append(row)
return content
content = read("addresses.csv")
print(content)
[
['John', 'Doe', '120 jefferson st.', 'Riverside', ' NJ', ' 08075'],
['Jack', 'McGinnis', '220 hobo Av.', 'Phila', ' PA', '09119'],
['John "Da Man"', 'Repici', '120 Jefferson St.', 'Riverside', ' NJ', '08075'],
['Stephen', 'Tyler', '7452 Terrace "At the Plaza" road', 'SomeTown', 'SD', ' 91234'],
['', 'Blankman', '', 'SomeTown', ' SD', ' 00298'],
['Joan "the bone", Anne', 'Jet', '9th, at Terrace plc', 'Desert City', 'CO', '00123']
]
Hope it helps.
Introduction In Azure, assuming you are having a storage container. And, you…
Introduction We often require to execute in timed manner, i.e. to specify a max…
Introduction In most of cases, you are not pulling images from docker hub public…
Introduction Assume you have a drupal website and using cloudflare. You are…
While doing code review of one of junior, I encountered following code: What…
Github is an awesome place of storing your code. Now, it also allows you to have…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…