mirror of
https://github.com/Magnus167/msyrs.git
synced 2025-11-20 00:06:10 +00:00
update module structure
This commit is contained in:
@@ -402,7 +402,7 @@ fn timeseries_list_to_dataframe(
|
||||
timeseries_list: Vec<DQTimeSeries>,
|
||||
dropna: bool,
|
||||
) -> Result<DataFrame, Box<dyn Error>> {
|
||||
let mut output_df = DataFrame::new(vec![]).expect("Failed to create DataFrame");
|
||||
let mut output_df: DataFrame;
|
||||
|
||||
if let Some((first, rest)) = timeseries_list.split_first() {
|
||||
// Convert the first timeseries to DataFrame and clone it to avoid modifying the original
|
||||
@@ -438,7 +438,7 @@ fn timeseries_list_to_dataframe(
|
||||
|
||||
output_df = result_df.clone();
|
||||
} else {
|
||||
println!("No timeseries provided.");
|
||||
return Err("No timeseries provided".into());
|
||||
}
|
||||
|
||||
// drop rows where all values are NA
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::download::oauth_client::OAuthClient;
|
||||
use crate::download::helpers::DQTimeseriesRequestArgs;
|
||||
use crate::download::oauth_client::OAuthClient;
|
||||
use futures::future;
|
||||
use reqwest::header::{HeaderMap, HeaderName, HeaderValue};
|
||||
use std::error::Error;
|
||||
|
||||
Reference in New Issue
Block a user