pyjstat icon indicating copy to clipboard operation
pyjstat copied to clipboard

pyjstat is a python library for JSON-stat formatted data manipulation which allows reading and writing JSON-stat [1] format with python,using the DataFrame structures provided by the widely accepted p...

Results 5 pyjstat issues
Sort by recently updated
recently updated
newest added

Line 394: output = pd.DataFrame([category + [values[i]] for i, category in enumerate(get_df_row(dimensions, naming))]) output = pd.DataFrame([category + [values[i]] ~~~~~~^^^ IndexError: list index out of range dim_names = ['timestamp', 'OBJECTNO']

https://github.com/predicador37/pyjstat/blob/0e54b946960531e308e79b1ee16e5115b10f09ee/pyjstat/pyjstat.py#L866 write-function uses the from_json_stat function which throws a deprecation warning to use write instead... Would be nice to not be reprimanded for using the correct method.

I'm trying to use the collection operations to read a collection from the CSO's API following the example from the pyjstat documentation: ```python from pyjstat import pyjstat toc_url = 'https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadCollection'...

I have this code, but I have a Keyerror... maybe is about dimension is into dataset, but really I don't know `from pyjstat import pyjstat EXAMPLE_URL = 'http://www.cso.ie/StatbankServices/StatbankServices.svc/jsonservice/responseinstance/ASJA4' # read...

Use np.unique instead of sets / comprehension. >>> data = np.random.randint(0, 100, 10000) # Old version: In [38]: %timeit _ = uniquify(data) 1000 loops, best of 3: 1.05 ms per...