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
  • ICsvSerializer
  • IJsonSerializer
  • ISyncFileReader

This view

  • Original page
  • New address

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

Reads a file asynchonrously to a dataframe.

Hierarchy

  • IAsyncFileReader

Index

Methods

  • parseCSV
  • parseJSON

Methods

parseCSV

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

    Deserialize a CSV file to a DataFrame. Returns a promise that later resolves to a DataFrame.

    example
    const df = await dataForge.readFile("my-data-file.csv").parseCSV();
    
    example
    const options = {
         // ...
    };
    const df = await dataForge.readFile("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 Promise<IDataFrame<number, any>>

    Returns a promise of a dataframe loaded from the file.

parseJSON

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

    Deserialize a JSON file to a DataFrame. Returns a promise that later resolves to a DataFrame.

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

    Returns Promise<IDataFrame<number, any>>

    Returns a promise of a dataframe loaded 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.