Need a help Mycsv file is not detecting the excel sheet #173
SANGEERTH-P
started this conversation in
Q&A
Replies: 1 comment
-
Hi @SANGEERTH-P - there are a couple of issues with the provided code:
Here's updated code which should work for the provided CSV file: #include <iostream>
#include <vector>
#include "rapidcsv.h"
int main(int argc, char **argv)
{
rapidcsv::Document doc("tm_mat_turtlebot_0_01s.csv");
std::cout << doc.GetCell<float>(1, 0) << std::endl;
std::vector<float> col = doc.GetColumn<float>("initial_yaw_angle");
std::cout << "Read " << col.size() << " values." << std::endl;
return 0;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tm_mat_turtlebot_0_01s.csv
Namaste sir/ma'am
I have the following code
`#include
#include
#include "rapidcsv.h"
using namespace std;
int main(int argc, char **argv)
{rapidcsv::Document doc("tm_mat_turtlebot_0_01s.csv",rapidcsv::LabelParams(0, 0),
rapidcsv::SeparatorParams(','));
std::cout << doc.GetCell(1, 0);
std::vector col = doc.GetColumn("Close");
std::cout << "Read " << col.size() << " values." << std::endl;
return 0;
}
`
I want do read the data of the attached csv file using this code. But I am not able to read it. Can anyone please help me here?
Beta Was this translation helpful? Give feedback.
All reactions