posit-dev / positron

Positron, a next-generation data science IDE
Other
2.5k stars 77 forks source link

Support geopandas dataframes as data in Variables, plus in Data Explorer #3870

Closed luispuerto closed 2 months ago

luispuerto commented 3 months ago

I can explore pandas dataframes, but not geopandas ones and I think they are not as different. I guess that the same goes with polars, and geopolars and perhaps with Dasks dataframes.

Are those that different that can't be implemented in the same way? In RStudio you can easily see geopandas dataframes. If you convert dataframe to a pandas the can see the dataframe just fine.

juliasilge commented 3 months ago

Do you mean explore in the Data Explorer, like this?

luispuerto commented 3 months ago

Yes… I don't understand why there is support for pandas, but not for geopandas. The same with polars, I guess. In the end, and geodataframe is more or less the same as a data frame but with a coordinates column. Yeah, that column can be complex, but not that different from the others..

Right?

juliasilge commented 3 months ago

We will look into what is keeping geopandas from being displayed as data in the Variables pane and in the Data Explorer. 👍

We do already have some support for polars already in process and you should see more Data Explorer features landing for polars really soon.

luispuerto commented 3 months ago

Perfect, thanks a lot!

Yeah, I've seen that I can see polars data frames and that is great and I hope that in the near future we can see more coming.

Anyhow, I really feel that to see geopandas and geopolars you just need to add them to the list of classes you can see in the data explorer because they are the same as pandas and polars.

wesm commented 2 months ago

I will take a look, it should be a small fix

luispuerto commented 2 months ago

Thanks a lot! this would be a huge improvement in my workflow!

luispuerto commented 2 months ago

I think you already merged the solution to this issue in the last release (build 27), right? However, I downloaded it from the releases page and at least the macOS one is the build 21 and not the 27

Positron Version: 2024.07.0 (Universal) build 21 Code - OSS Version: 1.90.0 Commit: 82b335e27545e804b7fd806db00477a6eb49951d Date: 2024-07-09T04:32:26.804Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0

is the macOS build being built correctly?

I've also notice this in homebrew, the information says that it's the build 27, but what you get is the build 21.

wesm commented 2 months ago

We're fixing some things in the build system, please wait for the next build to land (we took down build 27 so there is just 21 for now)

luispuerto commented 2 months ago

Hey!

Thanks a lot! now it works! 🙂