Sha256: 58a04463cf3a0ee6fcfc221a7cfb53d44242ff9225795c579f9ab415ddeece36

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

module Polars
  module IO
    # Read into a DataFrame from a JSON file.
    #
    # @param source [Object]
    #   Path to a file or a file-like object.
    #
    # @return [DataFrame]
    def read_json(source)
      if Utils.pathlike?(source)
        source = Utils.normalize_filepath(source)
      end

      rbdf = RbDataFrame.read_json(source)
      Utils.wrap_df(rbdf)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
polars-df-0.11.0-x86_64-linux lib/polars/io/json.rb
polars-df-0.11.0-x86_64-linux-musl lib/polars/io/json.rb
polars-df-0.11.0-x86_64-darwin lib/polars/io/json.rb
polars-df-0.11.0-arm64-darwin lib/polars/io/json.rb
polars-df-0.11.0-aarch64-linux lib/polars/io/json.rb
polars-df-0.11.0 lib/polars/io/json.rb