Skip to content

saharnazyp/Comprehensive-Methods-for-Uploading-Loading-Data

Repository files navigation

πŸ“Š Comprehensive Methods for Uploading & Loading Data in Python

This repository presents a comprehensive guide to loading and importing various data types into Python using practical examples. Whether you're working with CSV files, Excel sheets, images, audio, or entire directories, this project provides clean, reusable code snippets to help you get started quickly.


πŸ“ Data Types Covered

βœ… CSV & TSV βœ… Excel (.xlsx, .xls) βœ… Images (individual + folders) βœ… Audio files (e.g., .wav) βœ… JSON βœ… ZIP files βœ… Google Sheets βœ… URLs and web resources βœ… Files from Google Drive (for Colab users)


πŸš€ Why This Project?

This notebook is ideal for:

  • πŸ“š Data science and machine learning beginners
  • πŸ§ͺ Rapid prototyping and experimentation
  • πŸ”„ Streamlining repetitive data-loading tasks
  • 🧰 Building up a personalized toolbox of I/O methods

πŸ““ Notebook Overview

  • Step-by-step examples with explanations
  • 🧼 Basic error handling
  • πŸ“Œ Library references and best practices
  • πŸ”§ Integration with pandas, os, cv2, scipy, requests, openpyxl, and more

πŸ“¦ Requirements

Install essential libraries with:

pip install pandas numpy opencv-python openpyxl requests gdown librosa

For Colab users, most packages are pre-installed. You can also use:

!pip install -r requirements.txt

πŸ’» How to Use

  1. Clone the repository:

    git clone https://github.com/saharnazyp/Comprehensive-Methods-for-Uploading-Loading-Data.git
    cd Comprehensive-Methods-for-Uploading-Loading-Data
  2. Open the notebook in Jupyter or Colab:

    jupyter notebook Load_Data_Guide.ipynb

    or use the Colab badge if you add one:

    [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/saharnazyp/Comprehensive-Methods-for-Uploading-Loading-Data/blob/main/Load_Data_Guide.ipynb)
    

πŸ“Œ Example Snippets

# Load CSV
import pandas as pd
df = pd.read_csv("data.csv")

# Load image from folder
import cv2
img = cv2.imread("images/sample.jpg")

# Load audio
import librosa
y, sr = librosa.load("audio/track.wav")

πŸ§‘β€πŸ’» Author

Created with 🧠 by Saharnaz Yaghoobpour πŸŽ“ Data Science | Python | Machine Learning πŸ“« LinkedIn


πŸ“„ License

This project is licensed under the MIT License. Feel free to use, share, or build on it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published