MHKiT-Software / MHKiT-Python

MHKiT-Python provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
https://mhkit-software.github.io/MHKiT/
BSD 3-Clause "New" or "Revised" License
50 stars 45 forks source link

QC Module Loading Data #88

Closed Rjan821163 closed 3 years ago

Rjan821163 commented 3 years ago

Hello!

I have 32-yr hindcast data in a .csv file, and I am trying to use the "pd.read_csv" function to load the data. In python I type: data=pd.read_csv('Pacwave32.csv',index_col='Time')

However I keep getting an error message saying "there is no such file or directory." Do I need to make sure the csv file is in a specific folder before running this function?

Thank you!

ssolson commented 3 years ago

Hey Rjan821163 thank you for your interest in MHKiT. Your specific question is not within the scope of MHKiT but is related to Pandas. If you think you have found a bug related to your query above I suggest you reach out to the pandas team. We unfortunately do not have the bandwidth to offer support outside the scope of MHKiT.

As a bit of friendly advice, I would suggest that you look to print your current working directory using a command (import os; cwd =os.get_cwd()) Then you need to make your passed file something like ''realtive/path/to/file/directoryPacwave32.csv''. I have not checked the commands and in the ''realtive/path/to/file/directoryPacwave32.csv'' the "relative/path..." part will need to be modified to match the working directory to use your actual system path. My main hope here is that the vocabulary I am using will assist you in your research to solve this problem. Good luck solving your issue and if you do have any MHKiT related support questions I look forward to hearing from you in the future.