How to pull a specific object from a csv file? The Next CEO of Stack OverflowHow can I upload files asynchronously?How do I remove a property from a JavaScript object?How do I check if an array includes an object in JavaScript?How to insert an item into an array at a specific index (JavaScript)?How do I test for an empty JavaScript object?How do I correctly clone a JavaScript object?How do I include a JavaScript file in another JavaScript file?How to check if an object is an array?How do I remove a particular element from an array in JavaScript?How do I return the response from an asynchronous call?
Is it possible to create a QR code using text?
Can this transistor (2N2222) take 6 V on emitter-base? Am I reading the datasheet incorrectly?
Another proof that dividing by 0 does not exist -- is it right?
Which acid/base does a strong base/acid react when added to a buffer solution?
Find the majority element, which appears more than half the time
Direct Implications Between USA and UK in Event of No-Deal Brexit
How can a day be of 24 hours?
What is the difference between 'contrib' and 'non-free' packages repositories?
Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?
How does a dynamic QR code work?
Is it reasonable to ask other researchers to send me their previous grant applications?
Is the 21st century's idea of "freedom of speech" based on precedent?
That's an odd coin - I wonder why
Oldie but Goldie
Shortening a title without changing its meaning
Gödel's incompleteness theorems - what are the religious implications?
Why was Sir Cadogan fired?
Why does the freezing point matter when picking cooler ice packs?
Identify and count spells (Distinctive events within each group)
How can I separate the number from the unit in argument?
How seriously should I take size and weight limits of hand luggage?
Why does sin(x) - sin(y) equal this?
Could a dragon use its wings to swim?
How to implement Comparable so it is consistent with identity-equality
How to pull a specific object from a csv file?
The Next CEO of Stack OverflowHow can I upload files asynchronously?How do I remove a property from a JavaScript object?How do I check if an array includes an object in JavaScript?How to insert an item into an array at a specific index (JavaScript)?How do I test for an empty JavaScript object?How do I correctly clone a JavaScript object?How do I include a JavaScript file in another JavaScript file?How to check if an object is an array?How do I remove a particular element from an array in JavaScript?How do I return the response from an asynchronous call?
I am trying to get a specific part of this csv file but I cant get it to work correctly. when I try to pull a piece of it I get the entire column. Here is what the file looks like and my code:
Demand.csv
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
code
const fs=require('fs')
const csv = require('csv-parser');
fs.createReadStream('demand.csv')
.pipe(csv())
.on('data', function(data)
try
console.log(data.Time[1]);
catch(err)
//error handler
console.log('error');
)
.on('end', function()
//some final operation
);
The Output is:
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
and so on till the it reaches the end of the CSV.
I have tried a couple different ways and nothing seems to have worked. I am very new to Javascript so any help is appreciated. an example of what I need is something that can pull row 3 column 1. 00:10 being the output. Thank you.
javascript csv
add a comment |
I am trying to get a specific part of this csv file but I cant get it to work correctly. when I try to pull a piece of it I get the entire column. Here is what the file looks like and my code:
Demand.csv
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
code
const fs=require('fs')
const csv = require('csv-parser');
fs.createReadStream('demand.csv')
.pipe(csv())
.on('data', function(data)
try
console.log(data.Time[1]);
catch(err)
//error handler
console.log('error');
)
.on('end', function()
//some final operation
);
The Output is:
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
and so on till the it reaches the end of the CSV.
I have tried a couple different ways and nothing seems to have worked. I am very new to Javascript so any help is appreciated. an example of what I need is something that can pull row 3 column 1. 00:10 being the output. Thank you.
javascript csv
3
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30
add a comment |
I am trying to get a specific part of this csv file but I cant get it to work correctly. when I try to pull a piece of it I get the entire column. Here is what the file looks like and my code:
Demand.csv
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
code
const fs=require('fs')
const csv = require('csv-parser');
fs.createReadStream('demand.csv')
.pipe(csv())
.on('data', function(data)
try
console.log(data.Time[1]);
catch(err)
//error handler
console.log('error');
)
.on('end', function()
//some final operation
);
The Output is:
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
and so on till the it reaches the end of the CSV.
I have tried a couple different ways and nothing seems to have worked. I am very new to Javascript so any help is appreciated. an example of what I need is something that can pull row 3 column 1. 00:10 being the output. Thank you.
javascript csv
I am trying to get a specific part of this csv file but I cant get it to work correctly. when I try to pull a piece of it I get the entire column. Here is what the file looks like and my code:
Demand.csv
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
code
const fs=require('fs')
const csv = require('csv-parser');
fs.createReadStream('demand.csv')
.pipe(csv())
.on('data', function(data)
try
console.log(data.Time[1]);
catch(err)
//error handler
console.log('error');
)
.on('end', function()
//some final operation
);
The Output is:
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
and so on till the it reaches the end of the CSV.
I have tried a couple different ways and nothing seems to have worked. I am very new to Javascript so any help is appreciated. an example of what I need is something that can pull row 3 column 1. 00:10 being the output. Thank you.
javascript csv
javascript csv
edited Mar 8 at 18:42
Rtmott
asked Mar 8 at 17:15
RtmottRtmott
63
63
3
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30
add a comment |
3
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30
3
3
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30
add a comment |
3 Answers
3
active
oldest
votes
The problem is the 'CSV' file: your screenshot shows you had to enable multiple separator options (commas AND tabs) to use your import tool.
Try sticking to one separator: comma
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
Yup, there is no constancyTime Day ahead forecast, Hour ahead forecast, Current demand
.
– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
add a comment |
So the issue could be due to no constancy Time Day ahead forecast, Hour ahead forecast, Current demand.
You can fix this just like @searlea suggested withcomma, tab, or evn with pipe
separated.
Here's a working example.
https://repl.it/@subhendukundu/PaleWelcomeChord
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
add a comment |
It appears csv-parser
parses the csv into an array of objects.
To access row 3 column 1 it would be
console.log(data[3].Time);
Data is an array
with each element corresponding to a 'row' of data. So to access row 3 it would be data[3]
etc.
Each individual 'column' is accessed by the object key
or the column header from each column in the csv
.
To access object keys with spaces you can use "bracket notation"
console.log(data[3].['Day ahead forecast']);
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
add a comment |
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55067980%2fhow-to-pull-a-specific-object-from-a-csv-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem is the 'CSV' file: your screenshot shows you had to enable multiple separator options (commas AND tabs) to use your import tool.
Try sticking to one separator: comma
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
Yup, there is no constancyTime Day ahead forecast, Hour ahead forecast, Current demand
.
– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
add a comment |
The problem is the 'CSV' file: your screenshot shows you had to enable multiple separator options (commas AND tabs) to use your import tool.
Try sticking to one separator: comma
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
Yup, there is no constancyTime Day ahead forecast, Hour ahead forecast, Current demand
.
– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
add a comment |
The problem is the 'CSV' file: your screenshot shows you had to enable multiple separator options (commas AND tabs) to use your import tool.
Try sticking to one separator: comma
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
The problem is the 'CSV' file: your screenshot shows you had to enable multiple separator options (commas AND tabs) to use your import tool.
Try sticking to one separator: comma
Time,Day ahead forecast,Hour ahead forecast,Current demand
00:00,23307,22058,21942
00:05,21744,21822,21849
00:10,21744,21822,21908
00:15,21744,21822,21809
00:20,21744,21615,21736
00:25,21744,21615,21688
00:30,21744,21615,21563
00:35,21744,21371,21479
00:40,21744,21371,21378
00:45,21744,21371,21256
answered Mar 8 at 17:24
searleasearlea
5,94232330
5,94232330
Yup, there is no constancyTime Day ahead forecast, Hour ahead forecast, Current demand
.
– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
add a comment |
Yup, there is no constancyTime Day ahead forecast, Hour ahead forecast, Current demand
.
– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
Yup, there is no constancy
Time Day ahead forecast, Hour ahead forecast, Current demand
.– Subhendu Kundu
Mar 8 at 17:37
Yup, there is no constancy
Time Day ahead forecast, Hour ahead forecast, Current demand
.– Subhendu Kundu
Mar 8 at 17:37
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
This was an error on my part. I didnt catch the formatting as I pasted it in place. The file itself is formatted correctly. The solution by @kemotoe worked for overall expected output. I now have the problem of obtaining data from the columns that have spaces in the Column Name.
– Rtmott
Mar 8 at 18:47
add a comment |
So the issue could be due to no constancy Time Day ahead forecast, Hour ahead forecast, Current demand.
You can fix this just like @searlea suggested withcomma, tab, or evn with pipe
separated.
Here's a working example.
https://repl.it/@subhendukundu/PaleWelcomeChord
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
add a comment |
So the issue could be due to no constancy Time Day ahead forecast, Hour ahead forecast, Current demand.
You can fix this just like @searlea suggested withcomma, tab, or evn with pipe
separated.
Here's a working example.
https://repl.it/@subhendukundu/PaleWelcomeChord
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
add a comment |
So the issue could be due to no constancy Time Day ahead forecast, Hour ahead forecast, Current demand.
You can fix this just like @searlea suggested withcomma, tab, or evn with pipe
separated.
Here's a working example.
https://repl.it/@subhendukundu/PaleWelcomeChord
So the issue could be due to no constancy Time Day ahead forecast, Hour ahead forecast, Current demand.
You can fix this just like @searlea suggested withcomma, tab, or evn with pipe
separated.
Here's a working example.
https://repl.it/@subhendukundu/PaleWelcomeChord
answered Mar 8 at 17:46
Subhendu KunduSubhendu Kundu
1,6081622
1,6081622
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
add a comment |
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
This Worked beautifully, Thank you!
– Rtmott
Mar 8 at 18:20
add a comment |
It appears csv-parser
parses the csv into an array of objects.
To access row 3 column 1 it would be
console.log(data[3].Time);
Data is an array
with each element corresponding to a 'row' of data. So to access row 3 it would be data[3]
etc.
Each individual 'column' is accessed by the object key
or the column header from each column in the csv
.
To access object keys with spaces you can use "bracket notation"
console.log(data[3].['Day ahead forecast']);
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
add a comment |
It appears csv-parser
parses the csv into an array of objects.
To access row 3 column 1 it would be
console.log(data[3].Time);
Data is an array
with each element corresponding to a 'row' of data. So to access row 3 it would be data[3]
etc.
Each individual 'column' is accessed by the object key
or the column header from each column in the csv
.
To access object keys with spaces you can use "bracket notation"
console.log(data[3].['Day ahead forecast']);
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
add a comment |
It appears csv-parser
parses the csv into an array of objects.
To access row 3 column 1 it would be
console.log(data[3].Time);
Data is an array
with each element corresponding to a 'row' of data. So to access row 3 it would be data[3]
etc.
Each individual 'column' is accessed by the object key
or the column header from each column in the csv
.
To access object keys with spaces you can use "bracket notation"
console.log(data[3].['Day ahead forecast']);
It appears csv-parser
parses the csv into an array of objects.
To access row 3 column 1 it would be
console.log(data[3].Time);
Data is an array
with each element corresponding to a 'row' of data. So to access row 3 it would be data[3]
etc.
Each individual 'column' is accessed by the object key
or the column header from each column in the csv
.
To access object keys with spaces you can use "bracket notation"
console.log(data[3].['Day ahead forecast']);
edited Mar 8 at 19:24
answered Mar 8 at 17:22
kemotoekemotoe
1,187920
1,187920
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
add a comment |
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
This worked perfect for selecting the row and value for the column. I was thinking that the array would be the column name and not the row. Thank you. Is the key indexed as well because now I have problems with the column having spaces in the name.
– Rtmott
Mar 8 at 18:45
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
Turns out with csv-parse, I can remap the headers to custom defined ones and pull the column that way. This will work perfectly
– Rtmott
Mar 8 at 19:00
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
@Rtmott edited the answer to include accessing object keys with spaces
– kemotoe
Mar 8 at 19:26
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55067980%2fhow-to-pull-a-specific-object-from-a-csv-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
can you show what your console log is printing ?
– Code Maniac
Mar 8 at 17:18
console.log(data.Time[1]), Are you trying to get the first column's first value?
– Subhendu Kundu
Mar 8 at 17:22
Whats the expected output?
– Subhendu Kundu
Mar 8 at 17:30