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.
β
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)
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
- Step-by-step examples with explanations
- π§Ό Basic error handling
- π Library references and best practices
- π§ Integration with
pandas,os,cv2,scipy,requests,openpyxl, and more
Install essential libraries with:
pip install pandas numpy opencv-python openpyxl requests gdown librosaFor Colab users, most packages are pre-installed. You can also use:
!pip install -r requirements.txt-
Clone the repository:
git clone https://github.com/saharnazyp/Comprehensive-Methods-for-Uploading-Loading-Data.git cd Comprehensive-Methods-for-Uploading-Loading-Data -
Open the notebook in Jupyter or Colab:
jupyter notebook Load_Data_Guide.ipynb
or use the Colab badge if you add one:
[](https://colab.research.google.com/github/saharnazyp/Comprehensive-Methods-for-Uploading-Loading-Data/blob/main/Load_Data_Guide.ipynb)
# 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")Created with π§ by Saharnaz Yaghoobpour π Data Science | Python | Machine Learning π« LinkedIn
This project is licensed under the MIT License. Feel free to use, share, or build on it.