Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing csv file issues #45

Open
wetlandsDiane opened this issue Oct 29, 2024 · 0 comments
Open

importing csv file issues #45

wetlandsDiane opened this issue Oct 29, 2024 · 0 comments

Comments

@wetlandsDiane
Copy link
Collaborator

I couldn't get NewTransImp to work on a custom csv file. It might be easiest to create a csv template that everyone needs to follow for csv files to make it easy to import such files. Or you could at least have the template as one of the options for people importing csv files

file_type = 'csv' #can also be xle
wellfiles = {}

copydir = Path(transducer_folder)
for file in copydir.glob(f'*.{file_type}'):
wellfiles[file] = ll.NewTransImp(file,trim_end=True).well

wellraw = pd.concat(wellfiles).reset_index().set_index('Date Time').sort_index().drop('level_0',axis=1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant