'Read .ftr file from remote server into dataframe?

At the moment I am trying to load in an .ftr file that is located on another server.

I can get the binary through:

binary = subprocess.check_output('sudo ssh server cat file.ftr',shell=True)

this binary looks like:

b'ARROW1\x00\x00 ... name\x00\x00\x00\x00\x04\x00\x04\x00\x04\x00\x00\x00`\x0b\x00\x00ARROW1'

but I don't know how to decode this binary file to be able to load it into a pandas dataframe.

I have tried to decode it, but:

binary.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source