Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What should be added to the syntax of Python and why?.
import pandas as pd
my_df = (
pd.Dataframe(<fetch_data>) .join(<...>) .query(<...>) .sort_values(<...>)
I also use plotly like so:
my_plot = (
px.line(<...>) .update_xaxes(<...>) .update_layout(<...)
Not exactly function chaining, but I guess it has a similar effect.
I'm happy with Python's syntax nowadays and much prefer seeing improvements on library / environment related things.
import pandas as pd
my_df = (
)I also use plotly like so:
my_plot = (
)Not exactly function chaining, but I guess it has a similar effect.
I'm happy with Python's syntax nowadays and much prefer seeing improvements on library / environment related things.