WEKA: Converting csv file to arff file - weka

I am trying to convert csv file to arff file using ArffViewer (Tools -> ArffViewer -> File -> Save as...) With this the arff file is created but without any contents (empty file). My question is:
Why is it creating an empty file and how to fix it.
sample of csv file:
(All attribute types are nominal)

Related

error in indirect file load in Informatica

I am trying indirect file load in Informatica.
I put below files in $PmSrcFilesDir (from here the workflow task pick up files)
-list.txt
-production_plan_20210906.csv
-production_plan_20210907.csv
The list.txt files contains the csv file names only.
I configured below options:
Source filetype- Indirect
Source filename- list.txt
Source file directory- $PMSourceFileDir
After running the workflow it shows error- as
FR_3000 Error Opening File...No such file or directory
You can give absolute path in list.txt.
/Path/to/file/production_plan_20210906.csv
/Path/to/file/production_plan_20210907.csv
You can use command task or shell script to get absolute path and file name.
Pls check session log, which file it cant read - list file or main file. If list file mention $PMSourceFileDir correctly in param file.
Now, make sure informatica user (user that runs infa server) has read access to those data, list folders and files. Admin can help.

C++ How to open .docx files in MFC

How can I open .docx files in MFC?
Because when I open a .docx file it puts "PK" to the editor. (This is at every .docx file I have opened)
.docx files are .zip files with a different extension. The content of the zip is essentially a directory structure containing various XML files.
To open a .docx in a text editor would basically require unzipping the file to a directory then opening each XML file in your editor.
The actual format of .docx files can be found online.

Create Lambda function using Python API (Boto3) by using zip file

I have a zip file ready for the lambda function, but in the doc, the zip file is required to be read as binary (so it seems). I can open the zip file and read the files inside as binary, but how do I read the zip file as a binary?
The doc: https://boto3.readthedocs.io/en/latest/reference/services/lambda.html#Lambda.Client.create_function
nevermind, a simple open(file_name, 'rb').read() does it for me. Forgot the 'b'.....

How to open a pdf file in binary format

I want to read the metadata of pdf files so i am using pyPdf package but for some files i am facing error (i.e;PdfFileReader stream/file object is not in binary mode,it may not be read correctly)
You need to read the file in binary mode:
from pyPdf import PdfFileReader
with open('document.pdf', 'rb') as f:
pdf = PdfFileReader(f)

where should I save a file before open it

Where should I save a text file before I open it on python?
I tried to open a text file on the desktop, but that generated an error.