Skip to content
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

Add show method to DataFrame and LazyFrame #16534

Open
djouallah opened this issue May 27, 2024 · 3 comments
Open

Add show method to DataFrame and LazyFrame #16534

djouallah opened this issue May 27, 2024 · 3 comments
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature

Comments

@djouallah
Copy link

Description

pretty much all Python calculation engines support show method , see pyspark documentation https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.show.html

it is just for convenience especially when used with SQL

@djouallah djouallah added the enhancement New feature or an improvement of an existing feature label May 27, 2024
@alexander-beedie alexander-beedie changed the title add show method for syntax compatibility with pyspark dataframe API add show method for syntax compatibility with pyspark/duckdb/etc dataframe API May 28, 2024
@MarcoGorelli MarcoGorelli added the accepted Ready for implementation label Jun 28, 2024
@stinodego stinodego changed the title add show method for syntax compatibility with pyspark/duckdb/etc dataframe API Add show method to DataFrame and LazyFrame Jun 28, 2024
@stinodego
Copy link
Member

We want to support this. Implementation will look like:

  • show method on DataFrame and LazyFrame
  • It will print to the console and not return anything
  • The method will have some parameters to directly configure some Config printing parameters
  • In notebooks we want to use the _html_repr, otherwise we want to use the regular repr

@mnurpeiissov
Copy link

HI, is this being already worked on? I can be assigned if needed, I am new to the codebase and want to start contributing, will need some time and guidance to implement.

@stinodego stinodego removed their assignment Jul 4, 2024
@mnurpeiissov
Copy link

I will proceed with implementation as @stinodego outlined, is that ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature
Projects
Status: Ready
Development

No branches or pull requests

4 participants