question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for almost_equals/equals is not correct

See original GitHub issue

The binary predicate check almost_equals is actually geom_almost_equals. The documentation indicates just almost_equals. It results in the error:

AttributeError: 'GeoSeries' object has no attribute 'almost_equals'

Some related notes:

  • I’m noticing that in the reference.rst on GH that it’s referenced as geom_almost_equals.
  • equals() and geom_equals() behaves differently. The documentation only indicates the former and that equals() should be a per-object comparison returning a bool Series but I’m seeing just one bool as an output (like an aggregate) whereas geom_equals returns a bool Series. Is that expected behavior?

EDIT: Using Python 3.6 and Geopandas 0.3.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jorisvandenbosschecommented, Dec 8, 2017

Yes, that page is defaulting to the latest released, the ‘latest’ (the link I showed) is the development version.

Closing this then

0reactions
koshy1123commented, Dec 8, 2017

Ah yes - looks like it’s fixed in the latest docs - I was looking at v0.3.0 or maybe more specifically the one here: http://geopandas.org/reference.html (which I would’ve thought defaulted to the latest)

Read more comments on GitHub >

github_iconTop Results From Across the Web

equals is True but almost_equals is False · Issue #889 - GitHub
But the almost_equals method, on the other hand, checks if two objects are structurally equal. This method uses exact coordinate equality, which ...
Read more >
5 Ways to Insert the Approximately Equal or Almost Equal ...
1. Inserting the approximately equal to or almost equal to symbol using Insert Symbol · Position the cursor in the Word document where...
Read more >
Equals sign - Wikipedia
The equals sign (British English, Unicode) or equal sign (American English), also known as the equality sign, is the mathematical symbol =, which...
Read more >
Equality comparisons and sameness - JavaScript | MDN
Strict equality is almost always the correct comparison operation to use. For all values except numbers, it uses the obvious semantics: a value ......
Read more >
pandas.testing.assert_frame_equal - DataFrame
Check that left and right DataFrame are equal. This function is intended to compare two DataFrames and output any differences. It is mostly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found