Python Lists, Tuples, Dictionaries and Sets Explained with Examples
Ravindra Bagale's Tip — Chala mitrano
One value is not enough for data work. We need many prices, many customers, many cities. Today we learn the four Python containers. A pandas DataFrame is built on these ideas.
Ravindra Bagale's Tip – चला मित्रांनो
Data work साठी एक value पुरेशी नसते. अनेक prices, अनेक customers, अनेक शहरं लागतात. आज Python चे चार containers शिकू. pandas DataFrame याच कल्पनांवर उभा आहे.
Ravindra Bagale's Tip – चलो दोस्तों
Data work के लिए एक value काफ़ी नहीं. बहुत सारे prices, customers, शहर चाहिए. आज Python के चार containers सीखेंगे. pandas DataFrame इन्हीं ideas पर बना है.
What you will learn in this chapter
- Lists: create, read, add, remove and sort
- Tuples: fixed values that should not change
- Dictionaries: key and value pairs
- Sets: unique values and quick comparisons
- List of dictionaries — the shape of table data
- How to choose the right container
Practice data
All names, shops, banks, hospitals and amounts in this chapter are made up for learning. They are not real people or real company numbers.