PythonAnywhere Forums

Error Openning .h5 files

Hi,

I'm trying to read some .h5 files, but I get the following error:

using this method:

pd.read_hdf(r"\home\fbarajas\newsite\data\YAHOO.H5","TWTR")

I get the error below:

OSError: File \home\fbarajas\newsite\data\YAHOO.H5 does not exist

The file is actually there, but for some reason it doesn't find it. What am I doing wrong?

Thanks in advance

Backslashes are not valid path separators on PythonAnywhere. Use forward slashes.

Thanks Glenn! It works now. Much appreciated.