You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble figuring out how to export the results of calkulate. I tried using the following commands:
result = data.solve()
result.to_csv("result.csv")
And got the following results (see "results.csv"). It didn't actually calculate alkalinity for some reason.
I tried modifying my code to generate the data in an output file (see code below):
**#!/usr/bin/env python
import numpy as np
import os
import pandas as pd
import calkulate as calk
data = calk.read_csv("/home/sheikc/bjkramer/AlkalinityFiles/2022Metadata+Standards.csv").calkulate()
data.alkalinity # <== here are your alkalinity results
data.alkalinity.to_csv("/home/sheikc/bjkramer/AlkalinityFiles/GreatLakes2022Alkalinity_Calkulate.csv", index=False)**
And I just got an empty dataframe aside from the header name ("GreatLakes2022Alkalinity_Calkulate.csv").
I also keep getting the error that calkulate cannot find the standard files. I tried moving them to another directory separate from the titration files (see filepath in "2022Metadata+Standards.csv") thinking this would fix the issue and it didn't.
Could this be why I'm not getting results?
Whatever the issue is, I get the feeling it's a quick fix, but I'm not sure.
I'm having trouble figuring out how to export the results of calkulate. I tried using the following commands:
result = data.solve()
result.to_csv("result.csv")
And got the following results (see "results.csv"). It didn't actually calculate alkalinity for some reason.
I tried modifying my code to generate the data in an output file (see code below):
**#!/usr/bin/env python
import numpy as np
import os
import pandas as pd
import calkulate as calk
data = calk.read_csv("/home/sheikc/bjkramer/AlkalinityFiles/2022Metadata+Standards.csv").calkulate()
data.alkalinity # <== here are your alkalinity results
data.alkalinity.to_csv("/home/sheikc/bjkramer/AlkalinityFiles/GreatLakes2022Alkalinity_Calkulate.csv", index=False)**
And I just got an empty dataframe aside from the header name ("GreatLakes2022Alkalinity_Calkulate.csv").
I also keep getting the error that calkulate cannot find the standard files. I tried moving them to another directory separate from the titration files (see filepath in "2022Metadata+Standards.csv") thinking this would fix the issue and it didn't.
Could this be why I'm not getting results?
Whatever the issue is, I get the feeling it's a quick fix, but I'm not sure.
2022Metadata+Standards.csv
GreatLakes2022Alkalinity_Calkulate.csv
result.csv
The text was updated successfully, but these errors were encountered: