Skip to main content

want to read the file through machine learning, could you please help me

Hi @sankarganesh.jayak12 ,

 

Can you please elaborate little more, what format of the file? are you planning to use it from Machine learning workbench using pycelonis?

 

Thanks

Muthappan


Hi Sankarganesh,

 

You can open file in machine learning workbench using python using the below code (nb: assuming your file is a text file).

 

#directory:  /home/imtiaz/code.py

text_file = open('file.txt','r')

 

#Another method using full location

text_file2 = open('/home/imtiaz/file.txt','r')

print('First Method')

print(text_file)

 

print('Second Method')

print(text_file2)

 

 

Thanks,

Akshay


Reply