Memory usage analysis
📖 Scenario: You work as a data analyst. You have a small dataset about sales of different products. You want to understand how much memory this data uses in your computer. This helps you learn about data size and efficiency.
🎯 Goal: You will create a pandas DataFrame with sales data, then check its memory usage. Finally, you will print the memory usage in bytes.
📋 What You'll Learn
Create a pandas DataFrame with exact data given
Use pandas method to find memory usage of the DataFrame
Print the memory usage value
💡 Why This Matters
🌍 Real World
Data scientists often check memory usage to optimize data storage and processing speed, especially with large datasets.
💼 Career
Understanding memory usage helps data analysts and scientists write efficient code and manage resources well in real projects.
Progress0 / 4 steps