class splatnet3_scraper.query.JSONParser

Class containing JSON methods for saving and loading data.

Constructors

JSONParser(data)

Initializes a JSONParser.

Special methods

__eq__(other)

Return self==value.

String representation

__repr__()

Return repr(self).

Methods

static automatic_type_conversion(row)

Converts a row of strings to the most appropriate type.

classmethod from_csv(path)

Loads a JSON object from a CSV file.

classmethod from_gzipped_json(path)

Loads a JSON object from a gzipped JSON file.

classmethod from_json(path)

Loads a JSON object from a JSON file.

classmethod from_parquet(path)

Loads a JSON object from a Parquet file.

remove_columns(columns)

Removes columns from the data.

remove_url_columns()

Removes URL columns from the data.

to_csv(path)

Saves the JSON object to a CSV file.

to_gzipped_json(path, **kwargs)

Saves the JSON object to a gzipped JSON file. Any keyword arguments are passed to the json.dump method.

to_json(path, **kwargs)

Saves the JSON object to a JSON file. Any keyword arguments are passed to the json.dump method.

to_parquet(path, **kwargs)

Saves the JSON object to a Parquet file. Any keyword arguments are passed to the pandas.DataFrame.to_parquet method.