Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISyncFileReader

Reads a file synchonrously to a dataframe.

Hierarchy

  • ISyncFileReader

Index

Methods

parseCSV

  • parseCSV(config?: ICSVOptions): IDataFrame<number, any>
  • Deserialize a CSV file to a DataFrame.

    example
    
    const df = dataForge.readFileSync("my-data-file.csv").parseCSV();
    
    example
    
    const options = {
         // ...
    };
    const df = dataForge.readFileSync("my-data-file.csv").parseCSV(options);
    

    Parameters

    • Optional config: ICSVOptions

    Returns IDataFrame<number, any>

    Returns a dataframe that was deserialized from the file.

parseJSON

  • parseJSON(): IDataFrame<number, any>
  • Deserialize a JSON file to a DataFrame.

    example
    
    const df = dataForge.readFileSync("my-data-file.json").parseJSON();
    

    Returns IDataFrame<number, any>

    Returns a dataframe that was deserialized from the file.

Generated using TypeDoc