GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Data-Forge FS
  • Options
  • IAsyncFileReader
  • ICsvSerializer
  • IJsonSerializer

This view

  • Original page
  • New address

GeezerVison is showing data-forge.github.io — ISyncFileReader | Data-Forge FS

Reads a file synchonrously to a dataframe.

Hierarchy

  • ISyncFileReader

Index

Methods

  • parseCSV
  • parseJSON

Methods

parseCSV

  • parseCSV(config?: ICSVOptions): IDataFrame<number, any>
    • Defined in index.ts:553

    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

      Optional configuration file for parsing. The config object is passed directly to PapaParse.parse, please see PapaParse docs for additional options.

    Returns IDataFrame<number, any>

    Returns a dataframe that was deserialized from the file.

parseJSON

  • parseJSON(): IDataFrame<number, any>
    • Defined in index.ts:566

    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

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.