Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output to .json fails #14

Closed
erikbrodnick opened this issue Sep 10, 2020 · 1 comment
Closed

output to .json fails #14

erikbrodnick opened this issue Sep 10, 2020 · 1 comment

Comments

@erikbrodnick
Copy link

$ folderstats . -i -p -v -c sha1 -o output.json

Traceback (most recent call last):
File "/usr/local/bin/folderstats", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/folderstats/main.py", line 64, in main
df.to_json(args.output_filepath, index=False)
File "/usr/local/lib64/python3.6/site-packages/pandas/core/generic.py", line 2305, in to_json
indent=indent,
File "/usr/local/lib64/python3.6/site-packages/pandas/io/json/_json.py", line 51, in to_json
"'index=False' is only valid when 'orient' is 'split' or 'table'"
ValueError: 'index=False' is only valid when 'orient' is 'split' or 'table'

@njanakiev
Copy link
Owner

Thanks for the issue @erikbrodnick! This error has been fixed with the latest 0.4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants