Giter Site home page Giter Site logo

dataframes's Introduction

Excel dataframe Loader

This Python program loads Excel files into pandas DataFrames, making it easier to handle multiple sheets and files efficiently. It uses the pandas library for data manipulation and Excel file handling.

Requirements

Before running this program, ensure you have Python installed on your system and the pandas library. You can install pandas using pip if you haven't already:

pip install pandas

Usage

python load_df.py file1.xlsx file2.xlsx file3.xlsx

Features

  • Multiple File Handling: You can specify multiple Excel files as arguments.
  • Sheet-by-Sheet Loading: Each sheet in the Excel files is loaded into a separate pandas DataFrame.
  • Error Handling: The program gracefully handles and reports errors if a file cannot be loaded.
  • Preview Data: For each sheet loaded, the program prints the first 10 rows to give you a quick peek at the data.

Output

The program prints the first 10 rows of each sheet it loads to provide a quick overview of the data. It also prints a summary of the loaded files and sheets. The data is stored in a dictionary with keys as tuples of (file_path, sheet_name) and values as the respective DataFrames, which can be used for further processing in your Python code.

dataframes's People

Contributors

jimmc414 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.