-
Notifications
You must be signed in to change notification settings - Fork 11
Idea: nushell integration in xonsh shell #52
Copy link
Copy link
Open
Labels
Description
Hello! I have an idea!
Nushell has an ability to transform output into table.
In xonsh we can use pandas DataFrame or any other library that can work with the table like with object.
So using Nushell as a backend and function macro or decorator alias we can have unified use case e.g.:
def nudf(cmd):
json_data = $(nu -c @(cmd + ' | to json'))
df = @.imp.pandas.DataFrame(@.imp.json.loads(json_data))
return df
files_df = nudf!(ls -la)
files_df
# DataFrameFor community
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
Reactions are currently unavailable