-
Notifications
You must be signed in to change notification settings - Fork 229
ruff: Ignore the B018 rule (useless expressions) in examples #3750
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
Changes from 1 commit
00752e4
7e96b8a
052edd3
a8a85f9
cd8956f
7e2cace
c2b4f02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,7 +20,7 @@ | |||||
|
||||||
# Read the example dataset provided by geodatasets. | ||||||
gdf = gpd.read_file(geodatasets.get_path("geoda airbnb")) | ||||||
print(gdf) | ||||||
gdf | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good suggestion. Done in 7e2cace. |
||||||
|
||||||
# %% | ||||||
fig = pygmt.Figure() | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. My background off using
print
was that if running the complete script as "normal" Python script no output is shown, only when running this specific section separately (see comment #3711 (comment)).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, output the data head information makes little sense when running the example as a normal Python script.
For this example, we have the
# %%
cell separator at line 30, so thegdf.head
information will be shown in the docs.