MyToolBelt
Get MyToolBeltSupport
  • 👋Welcome to the MyToolBelt add-in
  • 💡FUNDAMENTALS
    • Download MyToolBelt
    • Getting Started
    • Support
    • Release Notes
    • Feature Request
  • ✨Features
    • Tickmarks
    • Custom Icons
    • AI Companion
    • Tabel of Contents
    • Adding pictures in comments
    • Tools for formatting your spreadsheet
      • Colored Box Highlights
      • Change color shades
      • Other formatting features
    • Python Integration
      • Convert an Excel ranges into Pandas DataFrames
      • Convert an Excel range into a Jupyter Notebooks
      • Create xlwings Python file
      • Run Python Files
  • 📚Guides
    • Feature Walkthrough
    • How to uninstall the add-in
    • How to update the add-in
    • How to remove a device from your license
  • 🛠️TROUBLESHOOTING
    • Add-In Not Visible in Excel Ribbon
    • Macros Disabled or Buttons Not Working
  • ⁉️FAQ
    • Can I upgrade to the PRO version after starting with the free version?
    • Is the AI feature included in the price?
    • How is my data handled when using the AI features?
    • Will MyToolBelt receive updates in the future?
    • How many computers can I use the PRO version on?
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Python Integration

Convert an Excel ranges into Pandas DataFrames

Last updated 6 months ago

Was this helpful?

Use this feature to convert a selected Excel range into a Pandas DataFrame. When you click the button, a Python file (with the current workbook’s name) is generated in your workbook’s directory. The Python file contains code to load the selected Excel range directly into a Pandas DataFrame. It includes the workbook path, sheet name, columns, and rows, as well as how many rows to skip or include.

There are also additional settings available (see image below):

  • Copy Python Code: Copy the generated Python code to your clipboard instead of saving it to a Python file. Useful if you want to integrate it into an existing Python script.

  • Use Absolute Path: Choose to use an absolute file path instead of a relative one.

  • Ignore Row Parsing: This option is helpful if you expect more data to be added, as it will automatically expand to include the last row/cell.

  • Change DataFrame Name: Set a custom name for your DataFrame variable (default is "df").

DEMO VIDEO:

✨
Python Settings