Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1759 +/- ##
==========================================
+ Coverage 87.56% 89.94% +2.37%
==========================================
Files 95 107 +12
Lines 6819 6761 -58
==========================================
+ Hits 5971 6081 +110
+ Misses 848 680 -168 🚀 New features to boost your workflow:
|
samukweku
reviewed
Oct 10, 2026
| >>> from janitor import read_csvs | ||
| >>> folder = tempfile.mkdtemp() | ||
| >>> pd.DataFrame({"id": [1, 2], "city": ["Lisbon", "Porto"]}).to_csv( | ||
| ... os.path.join(folder, "sales_2024.csv"), index=False |
samukweku
reviewed
Oct 10, 2026
| ... os.path.join(folder, "sales_2024.csv"), index=False | ||
| ... ) | ||
| >>> pd.DataFrame({"id": [3], "city": ["London"]}).to_csv( | ||
| ... os.path.join(folder, "sales_2025.csv"), index=False |
samukweku
reviewed
Oct 10, 2026
samukweku
reviewed
Oct 10, 2026
samukweku
requested changes
Oct 10, 2026
samukweku
left a comment
Collaborator
There was a problem hiding this comment.
appreciate the contribution. I requested some changes.
iMalcolmS
force-pushed
the
docs/read-csvs-examples-1755
branch
from
October 13, 2026 08:03
28f8062 to
461503e
Compare
samukweku
approved these changes
Oct 13, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closing #1755
was added examples to the
read_csvsdocstring covering:separate_df=Truereturning a dict keyed by file namepandas.read_csvThe examples write small CSVs to a temporary directory and clean up afterwards, so they run as doctests. The glob example sorts the output because
globorder isn't guaranteed across platforms.Tested locally:
pytest --doctest-modules janitor/io.py -k read_csvspasses.