How to use an "Anaconda Code Object" dataset in Anaconda Code

Hi,

I am using Anaconda Toolbox/Code in Excel 2024 with a perpetual license (hence no Microsoft Python =PY).

I have successfully uploaded a small (10,000 row) dataset to the Anaconda Toolbox, and I now want to test using that dataset from within Anaconda’s Toolbox.

Since I don’t have the Office 365 version of excel, I can only download as an ‘Anaconda Code Object’. That part works OK. You can see from the screenshot that it was successfully placed on cell A1 of my Sheet4 tab.

However, I now have no clue how to view, read or access the ‘Anaconda Code Object’. Can somebody who has been successul at doing this from Anaconda Code please provide an example of how you would access that data (for example access and print the first 5 rows)?

Nothing I try works. Hours on ChatGPT and Gemini AI have attempted many ways to access with no success. The Anaconda Toolbar manual discusses the fact that such an object (Anaconda Code Object) can be created, but it doesn’t explain how to use it.

Below is an image showing how the ‘Anaconda Code Object’ showns on cell A1, the metadata page shows when I hover my house on top of it. I hope somebody can help.

After hours of trial and error, I was able to finally solve the problem with the code shown in the enclosed screenshot.

However, this was only possible after changing the date columns to numbers in the source data. For some strange reason Anaconda Toolbar is unable to import columns in this format 30/11/2025, and many attempts to change the import to string failed. So this is something that the Anaconda Team should look into, as it is going to cause a lot of people to think it is impossible to import data (after all most data contains dates).

I tried to import in both CVS and Excel format; it failed on both.

If somebody wants to replicate this, feel free to download the following public file and give it a short. You will see that it is impossible to import unless you change the date format in the source file to excel date number format

Here is a more formal bug report for Anaconda:

Environment: Excel 2024 (Perpetual License), Anaconda Toolbox Add-in.

Error: TypeError: e.gettime is not a function

Description: When attempting to view/spill a DataFrame that contains standard Date columns using to_df(), the Add-in crashes with the JavaScript error above.

Observation: The Python code runs successfully (creating the object), but the visual renderer fails to handle the Python Date Object.

Workaround: I had to manually convert all dates to Excel Serial Numbers (integers) in the source file to prevent the crash. Request: Please patch the JavaScript renderer to handle Date objects or NaT values gracefully without crashing the UI.

Paul,

I’m glad you were able to figure out how to access your uploaded dataset. It sounds like the docs definitely need some improvement in this area.

Thank you for the detailed bug report about the date columns. I will add it to the backlog of things to fix.