Problem 1: Load and Inspect a CSV File
Easypython
Learn the Concept: Loading DatasetsProblem Description
Write a Python program that loads a given CSV file into a DataFrame and prints its shape, first 5 rows, and column data types.
Input
A CSV file path.
Output
The dataset's shape, first 5 rows, and data type information.
Constraints
- Assume the CSV file has a proper header row.
Example Input
text"students.csv"
Example Output
textShape: (100, 5) (first 5 rows displayed) (data type info displayed)
Concepts Covered
pd.read_csv(), shape, head(), info().
Related Problems
- Problem 2: Handle a Custom DelimiterEasy · pythonSolve Problem
- Problem 3: Load Multiple CSV Files and Combine ThemEasy · pythonSolve Problem
- Problem 4: Load an Excel File and Select a Specific SheetEasy · pythonSolve Problem