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

Dataviewer needs export and copy #1149

Closed
rchiodo opened this issue Apr 15, 2019 · 19 comments
Closed

Dataviewer needs export and copy #1149

rchiodo opened this issue Apr 15, 2019 · 19 comments
Assignees
Labels
data-viewer feature-request Request for new features or functionality

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Apr 15, 2019

It's nice to see the data in a grid, but what if somebody wants to do actual analysis on it. We need at least a copy. Export to csv would be nice too (or open in excel).

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@Sutyke
Copy link

Sutyke commented Feb 2, 2021

Any news when this feature will be available? Users at the moment need to open excel to copy text or column name fast.

@rchiodo
Copy link
Contributor Author

rchiodo commented Feb 2, 2021

Sorry but this isn't planned at all. We do accept PRs though. Export to CSV from the dataviewer would likely be difficult to implement (we only have json data in the UI) , but copy shouldn't be too difficult

@Sutyke
Copy link

Sutyke commented Feb 3, 2021 via email

@BGW1001
Copy link

BGW1001 commented Dec 11, 2022

Is there any update on this? It is extrodinary that an interactive pane does not allow its self to copied or exported. Select all does not work. This is a massive fail. This is a much used feature in Spyder. It cant be that difficult.

@alexepperly
Copy link

alexepperly commented Dec 13, 2022

Is there any update on this? It is extrodinary that an interactive pane does not allow its self to copied or exported. Select all does not work. This is a massive fail. This is a much used feature in Spyder. It cant be that difficult.

100%. This feature would be fantastic to have. Please, VSCode team, hear our cries! @rchiodo Even just being able to copy successfully would be a great mprovement. You guys already do such a great job, so thank you for what you do. This would be just one more HUGELY helpful feature!

@azhagar-deepan
Copy link

azhagar-deepan commented Dec 28, 2022

@rchiodo @IanMatthewHuff @DonJayamanne @alexepperly @BGW1001
Hi,
Please look at my code regarding this enhancement. Also give your suggestions.

import csv
def export_as_CSV(c,filename = 'filename.csv'): #This function can create the CSV
    with open(filename, 'w', newline='',encoding='utf-8') as csvfile: #get the filename from the user like "Save As" dialog box
        writer = csv.DictWriter(csvfile, fieldnames = c[0].keys())
        writer.writeheader()
        writer.writerows(c)

#For instance:
#We have a list of json or list of Dictionaries like
cars = [
{'No': 1, 'Company': 'Ferrari', 'Car Model': '488 GTB'},    #FIRST json or FIRST record of our CSV
{'No': 2, 'Company': 'Porsche', 'Car Model': '918 Spyder'}, #SECOND json or SECOND record of our CSV
{'No': 3, 'Company': 'Bugatti', 'Car Model': 'La Voiture Noire'}, #THIRD json or THIRD record of our CSV
{'No': 4, 'Company': 'BMW', 'Car Model': '\U0001f600'},
] #list of dictionaries

export_as_CSV(cars, "trip.csv") #CSV file will be created

Thank you

@GuillaumeMoscou
Copy link

Is there any update on this? It is extrodinary that an interactive pane does not allow its self to copied or exported. Select all does not work. This is a massive fail. This is a much used feature in Spyder. It cant be that difficult.

100%. This feature would be fantastic to have. Please, VSCode team, hear our cries! @rchiodo Even just being able to copy successfully would be a great mprovement. You guys already do such a great job, so thank you for what you do. This would be just one more HUGELY helpful feature!

Yes Spyder for this is very great. you better control the content of variables. So adding it in VS would be a huge help because sometimes you do not have the possibility or you don't want to export in csv / excel through the code.

@ReeceLincoln
Copy link

Any progress on this? Would greatly appreciate this functionality!

@NikDE123
Copy link

NikDE123 commented Mar 7, 2023

Any update on this one? Its hard to analyse a Dataframe with large number of rows and columns.

@jlbruno
Copy link

jlbruno commented May 9, 2023

Yes please. At least let us select a column and copy the results to paste into Excel.

@pandaxuning
Copy link

Please add this feature. For someone coming from Spyder, missing this feature is quite inconvenient.

@shezadt
Copy link

shezadt commented Jul 4, 2023

I would love to have this function too! :)

@OndrejW
Copy link

OndrejW commented Jul 14, 2023

I would love to have this function too! :)

@statisco
Copy link

Is this open since 2019 and still no updates? That's sad... It would be great to have this function. :(

@sjhsbhqf
Copy link

Looking forward to the arrival of this feature

@kflow-stash
Copy link

This would be a very convenient feature - I agree that simple copy/paste functionality for basic objects (such as list, Series, DataFrame) should be easy to implement and very helpful for users

@mcxvio
Copy link

mcxvio commented Nov 23, 2023

This would be great, thanks.

@amunger
Copy link
Contributor

amunger commented Dec 8, 2023

We will likely just rely on external extensions like Data Wrangler for this functionality

@amunger
Copy link
Contributor

amunger commented Nov 19, 2024

closing as our data-viewer was deprecated

@amunger amunger closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
data-viewer feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests