Skip to content

Conversation

@ASR134
Copy link

@ASR134 ASR134 commented Jan 12, 2026

What was changed

  • Updated the return type of read_folder to ensure consistency with its actual output.

Why this change

  • Previous return type of the function was a Dataframe which could be ambiguous for the users. But, now it has been changed to a list of Dataframes.
  • Improves clarity and type safety for users of the library.

Impact

  • No breaking changes
  • Improves documentation and usability.

Related issue

Copilot AI review requested due to automatic review settings January 12, 2026 07:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the read_folder function to return a list of DataFrames instead of concatenating them into a single DataFrame, improving clarity about the function's actual behavior.

Changes:

  • Updated the docstring for read_folder to reflect that it returns a list of DataFrames
  • Changed the return statement from pd.concat(df_list, ignore_index=True) to df_list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dskit/io.py Outdated
"""
Loads multiple files from a folder and concatenates them.
Load multiple files from a folder and returns
a list of pandas Dataframe.
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "Dataframe" should be capitalized as "DataFrames" (with capital D and F, and plural). This is the standard casing used in pandas documentation and throughout the codebase.

Suggested change
a list of pandas Dataframe.
a list of pandas DataFrames.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Clarify read_folder return type and fix demo

1 participant