Commit 67d7e499 by arun.uday

all2

parent fccd2734
......@@ -11,7 +11,7 @@ def time_change(file):
# for storing the pivoted frame to dictionary
dict_cols = []
for i in range(0, len(file_copy.columns)):
key_dict = file_copy.columns[i]
key_dict = "label"+str(i)
val_dict = file_copy.columns[i].lower()
dict_cols.append({key_dict: val_dict})
......
{
"header": [
{
"Timestamp": "timestamp"
"label0": "timestamp"
},
{
"kWh": "kwh"
"label1": "kwh"
},
{
"kVAh": "kvah"
"label2": "kvah"
},
{
"kW": "kw"
"label3": "kw"
},
{
"kVA": "kva"
"label4": "kva"
},
{
"current": "current"
"label5": "current"
}
],
"body": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment