1
$\begingroup$

I already have dataset of dogs and cats , so do i need to make .csv file or can i directly use the dataset for classification

$\endgroup$

closed as unclear what you're asking by BrunoGL, Stephen Rauch, Toros91, TitoOrt, OmG Dec 17 '18 at 9:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Hello Chinmayg, welcome to the site. Your question is not very clear. CSV = Comma Separated Value. It is a file format for storing tabular information. If you make you question more clear, we can better help you. How does your current dataset look like, are the dogs and cats images? Why do you tag SVM? What programming language are you using? What packages are you using? If you improve your question I will be glad to help. $\endgroup$ – BrunoGL Dec 16 '18 at 12:11
  • $\begingroup$ en.wikipedia.org/wiki/Comma-separated_values $\endgroup$ – Stephen Rauch Dec 16 '18 at 16:36
1
$\begingroup$

A csv file is a way to store an array (similar to an excel table). With a code like this one, you can save a pandas dataframe to a csv file:

 import pandas as pd
 df = pd.DataFrame({'c1':[1, 2, 3, 4], 'c2':['a', 'b', 'c', 'd']})
 df.to_csv('df.csv')

which will look like that

,c1,c2
0,1,a
1,2,b
2,3,c
3,4,d
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.