// Creates a dataframe from either a file or a table.
// If both options are found, then an error is returned to the user.
// The InputStream can have a table and a dictionary as input variable.
Creates a dataframe from either a file or a table.
If both options are found, then an error is returned to the user.
The InputStream can have a table and a dictionary as input variable.
Creates a dataframe from either a file or a table . If both options are found then an error is returned to the user . The InputStream can have a table and a dictionary as input variable .
fn load_dataframe(args: CommandArgs) -> Result<OutputStream, ShellError> {
    // The file has priority over stream input
    if let Some(NamedValue::Value(_, _)) = args
        .call_info()
        .args
        .named
        .as_ref()
        .map(|named| named.named.get("file"))
        .flatten()
    {
        return create_from_file(args);
    }
    create_from_input(args)
}
fn load_dataframe ( args : CommandArgs ) -> Result < OutputStream , ShellError > { // The file has priority over stream input if let Some ( NamedValue :: Value ( _ , _ ) ) = args . call_info ( ) . args . named . as_ref ( ) . map ( | named | named . named . get ( " " ) ) . flatten ( ) { return create_from_file ( args ) ; } create_from_input ( args ) }
Creates a dataframe from either a file or a table.
Creates a dataframe from either a file or a table .
args
CommandArgs