Skip to content

Conversation

@rbavery
Copy link
Member

@rbavery rbavery commented Jan 14, 2026

Summary

Fixes #29 - wkls.countries() has no len, docs need updating

  • Add __len__ method to ChainableDataFrame that delegates to count(), enabling len(wkls.countries()) to work
  • Wrap returns from all helper methods (countries, dependencies, regions, counties, cities, subtypes) in ChainableDataFrame so len() works consistently
  • Clarify in README that helper methods return DataFrames for querying, not namespaces for chaining (e.g., use wkls.la for Laos, not wkls.countries()["LA"])

…method returns

- Add __len__ method to ChainableDataFrame that delegates to count()
- Wrap returns from helper methods (countries, dependencies, regions,
  counties, cities, subtypes) in ChainableDataFrame so len() works
- Clarify in README that helper methods return DataFrames, not namespaces
@rbavery rbavery marked this pull request as ready for review January 15, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

wkls.countries() has no len, docs need updating, LA for Laos not found so it is possibly empty

1 participant