Skip to content

DOC:fix EX02 plot.line and parallel_coordinates #51696

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

Closed
zgdjcls opened this issue Feb 28, 2023 · 2 comments
Closed

DOC:fix EX02 plot.line and parallel_coordinates #51696

zgdjcls opened this issue Feb 28, 2023 · 2 comments

Comments

@zgdjcls
Copy link

zgdjcls commented Feb 28, 2023

          Hi I'm going to work on:

pandas.plotting.parallel_coordinates
and
pandas.DataFrame.plot.line

Originally posted by @zgdjcls in #51236 (comment)
But when I run the docstrings I got this error:
Partially validate docstrings (EX02)
<doctest pandas.Series.xs[5]>:1: PerformanceWarning: indexing past lexsort depth may impact performance.
df.xs(('mammal', 'dog'))
Traceback (most recent call last):
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 494, in
main(
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 429, in main
return print_validate_all_results(
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 373, in print_validate_all_results
result = validate_all(prefix, ignore_deprecated, ignore_functions)
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 329, in validate_all
for func_name, _, section, subsection in get_all_api_items():
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 360, in get_all_api_items
yield from get_api_items(f)
File "/Users/zhengyiming/Desktop/pandas/./ci/../scripts/validate_docstrings.py", line 137, in get_api_items
func = getattr(func, part)
AttributeError: type object 'CombinedDatetimelikeProperties' has no attribute 'unit'
Partially validate docstrings (EX02) DONE

I'm not sure why it says 'CombinedDatetimelikeProperties' has no attribute 'unit', is this my environment issue? How should I fix this

@MarcoGorelli
Copy link
Member

Hi - my guess is that you didn't follow everything in https://pandas.pydata.org/docs/dev/development/contributing_environment.html ?

@MarcoGorelli
Copy link
Member

closing as per #51236 (comment)

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