Technically ~/data.csv is not a relative path as ~ is expanded to an absolute path.
All data files should be located in the directory tree containing the application to be deployed, and when deploying have its checkbox checked for files to include in the bundle.
If you are still having issues, please include at least the snippet of code that references the file you are having issues loading and the logs from your application indicating the error.