Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit f7cafa0

Browse files
committed
added comments and sample files for testing
1 parent 7b19bfb commit f7cafa0

File tree

3 files changed

+330
-6
lines changed

3 files changed

+330
-6
lines changed

Scripts/Miscellaneous/JSONtoEXCEL.py

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#Script to convert JSON file to .xlsx file(Excel).
2+
#Requirements :
3+
# Pandas (Data Manipulation Library. Install : pip install pandas)
4+
5+
# Importing Pandas and json
6+
import json
7+
import pandas as pd
8+
# Importing the data from a file using the load method
9+
with open('./sampleData.json') as json_file:
10+
data = json.load(json_file)
11+
# Creating a dataframe
12+
df = pd.DataFrame(data)
13+
df.to_excel('./exported_json_data.xlsx')
Lines changed: 317 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
[
2+
{
3+
"_id": "5f75c5ad375c36fbcad199a8",
4+
"index": 0,
5+
"guid": "f0406463-d753-4c82-8e2c-eb492cdddccf",
6+
"isActive": false,
7+
"balance": "$2,407.06",
8+
"picture": "http://placehold.it/32x32",
9+
"age": 35,
10+
"eyeColor": "blue",
11+
"name": "Clayton Dale",
12+
"gender": "male",
13+
"company": "DIGIAL",
14+
"email": "[email protected]",
15+
"phone": "+1 (993) 511-2140",
16+
"address": "966 Grace Court, Manila, Illinois, 2455",
17+
"about": "Fugiat non velit exercitation dolore commodo. Ad sit exercitation sit magna irure qui aute est quis. Duis amet nulla occaecat magna duis incididunt sunt commodo nulla ad fugiat tempor voluptate. Eu laboris adipisicing et eu Lorem occaecat.\r\n",
18+
"registered": "2017-11-13T09:44:29 -06:-30",
19+
"latitude": -43.338696,
20+
"longitude": 128.962714,
21+
"tags": [
22+
"velit",
23+
"laboris",
24+
"irure",
25+
"sunt",
26+
"occaecat",
27+
"amet",
28+
"tempor"
29+
],
30+
"friends": [
31+
{
32+
"id": 0,
33+
"name": "Carmela Lynch"
34+
},
35+
{
36+
"id": 1,
37+
"name": "Griffin Peters"
38+
},
39+
{
40+
"id": 2,
41+
"name": "Garrison Rosario"
42+
}
43+
],
44+
"greeting": "Hello, Clayton Dale! You have 7 unread messages.",
45+
"favoriteFruit": "banana"
46+
},
47+
{
48+
"_id": "5f75c5ad384653d547007325",
49+
"index": 1,
50+
"guid": "b85c9a97-2b4f-415e-8095-24fd210a1863",
51+
"isActive": false,
52+
"balance": "$1,327.74",
53+
"picture": "http://placehold.it/32x32",
54+
"age": 20,
55+
"eyeColor": "brown",
56+
"name": "Carmella Mcbride",
57+
"gender": "female",
58+
"company": "BEDDER",
59+
"email": "[email protected]",
60+
"phone": "+1 (887) 482-3523",
61+
"address": "848 Church Lane, Westwood, American Samoa, 7586",
62+
"about": "Eiusmod fugiat commodo do aliquip occaecat enim reprehenderit officia elit ea amet proident adipisicing. Deserunt aute dolore do commodo. Qui ullamco aliqua ad eiusmod cillum veniam pariatur non mollit cillum consequat tempor occaecat. Culpa irure enim irure irure adipisicing consectetur sint elit elit duis deserunt consequat eu. Irure sunt ipsum Lorem in ad quis dolor ut.\r\n",
63+
"registered": "2014-06-14T05:35:22 -06:-30",
64+
"latitude": 64.83861,
65+
"longitude": 176.27972,
66+
"tags": [
67+
"reprehenderit",
68+
"sunt",
69+
"non",
70+
"sit",
71+
"elit",
72+
"nostrud",
73+
"voluptate"
74+
],
75+
"friends": [
76+
{
77+
"id": 0,
78+
"name": "Nita Norris"
79+
},
80+
{
81+
"id": 1,
82+
"name": "Maura Jennings"
83+
},
84+
{
85+
"id": 2,
86+
"name": "Janette Ratliff"
87+
}
88+
],
89+
"greeting": "Hello, Carmella Mcbride! You have 1 unread messages.",
90+
"favoriteFruit": "apple"
91+
},
92+
{
93+
"_id": "5f75c5add81d52a24c054b09",
94+
"index": 2,
95+
"guid": "5afd3295-11e4-409b-ae48-5554f0c33fd5",
96+
"isActive": false,
97+
"balance": "$3,472.26",
98+
"picture": "http://placehold.it/32x32",
99+
"age": 22,
100+
"eyeColor": "green",
101+
"name": "Tran Rosales",
102+
"gender": "male",
103+
"company": "CINCYR",
104+
"email": "[email protected]",
105+
"phone": "+1 (961) 535-2058",
106+
"address": "561 Coffey Street, Ypsilanti, Utah, 4263",
107+
"about": "Duis veniam nisi non non quis excepteur aliqua fugiat voluptate duis anim labore consectetur cupidatat. Irure ipsum laboris est tempor tempor laboris deserunt excepteur nostrud. Quis incididunt ipsum magna proident magna ea. Aute cupidatat aute id est. Commodo quis minim Lorem ipsum qui sunt deserunt laborum. Qui quis nisi commodo adipisicing occaecat Lorem voluptate. Incididunt esse minim occaecat in ea esse magna est exercitation.\r\n",
108+
"registered": "2015-06-15T07:17:07 -06:-30",
109+
"latitude": -70.214775,
110+
"longitude": 141.372706,
111+
"tags": [
112+
"duis",
113+
"nulla",
114+
"ad",
115+
"pariatur",
116+
"est",
117+
"nulla",
118+
"nisi"
119+
],
120+
"friends": [
121+
{
122+
"id": 0,
123+
"name": "Farmer Chase"
124+
},
125+
{
126+
"id": 1,
127+
"name": "Amelia Stephens"
128+
},
129+
{
130+
"id": 2,
131+
"name": "Pace Drake"
132+
}
133+
],
134+
"greeting": "Hello, Tran Rosales! You have 2 unread messages.",
135+
"favoriteFruit": "apple"
136+
},
137+
{
138+
"_id": "5f75c5adc60995f7b48592d3",
139+
"index": 3,
140+
"guid": "e1e634ae-cc0f-4506-b9bf-7b310bd95c99",
141+
"isActive": true,
142+
"balance": "$1,259.59",
143+
"picture": "http://placehold.it/32x32",
144+
"age": 24,
145+
"eyeColor": "brown",
146+
"name": "Petra Larsen",
147+
"gender": "female",
148+
"company": "PETIGEMS",
149+
"email": "[email protected]",
150+
"phone": "+1 (819) 453-2705",
151+
"address": "108 Conduit Boulevard, Savage, Ohio, 772",
152+
"about": "Lorem ipsum cillum ex proident culpa tempor. Ipsum cupidatat cillum irure incididunt culpa sunt ipsum magna. Tempor est et dolor ullamco elit adipisicing ad irure fugiat enim laboris velit.\r\n",
153+
"registered": "2015-01-20T06:17:57 -06:-30",
154+
"latitude": 55.000565,
155+
"longitude": -54.752397,
156+
"tags": [
157+
"sunt",
158+
"veniam",
159+
"nostrud",
160+
"adipisicing",
161+
"et",
162+
"cillum",
163+
"velit"
164+
],
165+
"friends": [
166+
{
167+
"id": 0,
168+
"name": "Wells Curry"
169+
},
170+
{
171+
"id": 1,
172+
"name": "Roy Glass"
173+
},
174+
{
175+
"id": 2,
176+
"name": "Abbott Dickson"
177+
}
178+
],
179+
"greeting": "Hello, Petra Larsen! You have 4 unread messages.",
180+
"favoriteFruit": "banana"
181+
},
182+
{
183+
"_id": "5f75c5adeb109c848233a551",
184+
"index": 4,
185+
"guid": "c2e241a4-d381-434f-bb48-b34905df4f7c",
186+
"isActive": false,
187+
"balance": "$3,449.47",
188+
"picture": "http://placehold.it/32x32",
189+
"age": 32,
190+
"eyeColor": "green",
191+
"name": "Adele Meyer",
192+
"gender": "female",
193+
"company": "VURBO",
194+
"email": "[email protected]",
195+
"phone": "+1 (899) 421-3111",
196+
"address": "601 Strauss Street, Needmore, Texas, 5869",
197+
"about": "Incididunt ipsum culpa minim tempor dolore elit. Et amet dolor labore aliqua nisi consequat id reprehenderit ipsum do minim qui minim dolor. Aliqua magna quis pariatur consequat excepteur. Ullamco eiusmod elit exercitation officia nulla sit consectetur. Ex ipsum do officia aliqua excepteur ad laborum qui irure cillum veniam. Qui pariatur eu dolore qui cupidatat laboris adipisicing incididunt occaecat culpa.\r\n",
198+
"registered": "2016-07-25T06:33:43 -06:-30",
199+
"latitude": -19.422473,
200+
"longitude": -88.095535,
201+
"tags": [
202+
"sunt",
203+
"minim",
204+
"et",
205+
"elit",
206+
"eiusmod",
207+
"officia",
208+
"consectetur"
209+
],
210+
"friends": [
211+
{
212+
"id": 0,
213+
"name": "Lidia Lancaster"
214+
},
215+
{
216+
"id": 1,
217+
"name": "Richards Meyers"
218+
},
219+
{
220+
"id": 2,
221+
"name": "Morton Hobbs"
222+
}
223+
],
224+
"greeting": "Hello, Adele Meyer! You have 8 unread messages.",
225+
"favoriteFruit": "strawberry"
226+
},
227+
{
228+
"_id": "5f75c5adc4224150fb76a071",
229+
"index": 5,
230+
"guid": "6a9caee3-f306-4797-8dfb-625cb8a2b259",
231+
"isActive": true,
232+
"balance": "$3,402.09",
233+
"picture": "http://placehold.it/32x32",
234+
"age": 36,
235+
"eyeColor": "green",
236+
"name": "Flowers Sanford",
237+
"gender": "male",
238+
"company": "HAIRPORT",
239+
"email": "[email protected]",
240+
"phone": "+1 (944) 435-2622",
241+
"address": "547 Elm Avenue, Volta, Federated States Of Micronesia, 9617",
242+
"about": "Veniam adipisicing ea dolor deserunt voluptate. Sunt dolor ex aliquip Lorem dolore reprehenderit aliqua aliqua ex tempor exercitation. Culpa officia ullamco deserunt sunt sunt enim anim et Lorem veniam dolor proident. Excepteur incididunt culpa laborum proident do in officia minim qui eu.\r\n",
243+
"registered": "2014-03-04T05:03:25 -06:-30",
244+
"latitude": 29.64452,
245+
"longitude": 21.022473,
246+
"tags": [
247+
"elit",
248+
"veniam",
249+
"occaecat",
250+
"qui",
251+
"ad",
252+
"consequat",
253+
"nulla"
254+
],
255+
"friends": [
256+
{
257+
"id": 0,
258+
"name": "Martin Dillon"
259+
},
260+
{
261+
"id": 1,
262+
"name": "Pearl Hubbard"
263+
},
264+
{
265+
"id": 2,
266+
"name": "Winters Rogers"
267+
}
268+
],
269+
"greeting": "Hello, Flowers Sanford! You have 1 unread messages.",
270+
"favoriteFruit": "apple"
271+
},
272+
{
273+
"_id": "5f75c5ad9726eceb140f1e55",
274+
"index": 6,
275+
"guid": "d267f5f8-a784-417f-ae55-a3f7193f7632",
276+
"isActive": false,
277+
"balance": "$2,399.28",
278+
"picture": "http://placehold.it/32x32",
279+
"age": 29,
280+
"eyeColor": "brown",
281+
"name": "Horne Wilson",
282+
"gender": "male",
283+
"company": "ZILLACON",
284+
"email": "[email protected]",
285+
"phone": "+1 (861) 413-2419",
286+
"address": "870 Cook Street, Moscow, Montana, 6207",
287+
"about": "Mollit in esse voluptate eu enim culpa ullamco sint. Amet sint dolor ipsum adipisicing velit incididunt amet id. Pariatur labore elit ex nisi proident do dolor aliqua. Qui officia ipsum ipsum eiusmod occaecat laboris. Veniam ad sit anim adipisicing labore duis ullamco nostrud deserunt ipsum quis. Cupidatat laborum velit ex nisi. Eu Lorem eiusmod reprehenderit sit duis Lorem laboris reprehenderit ut ex culpa nisi.\r\n",
288+
"registered": "2020-04-27T06:30:51 -06:-30",
289+
"latitude": -81.798058,
290+
"longitude": -25.405003,
291+
"tags": [
292+
"est",
293+
"sunt",
294+
"voluptate",
295+
"tempor",
296+
"occaecat",
297+
"magna",
298+
"sit"
299+
],
300+
"friends": [
301+
{
302+
"id": 0,
303+
"name": "Brewer Haynes"
304+
},
305+
{
306+
"id": 1,
307+
"name": "Wilma Mejia"
308+
},
309+
{
310+
"id": 2,
311+
"name": "Mccall Gibbs"
312+
}
313+
],
314+
"greeting": "Hello, Horne Wilson! You have 8 unread messages.",
315+
"favoriteFruit": "banana"
316+
}
317+
]

0 commit comments

Comments
 (0)