Tag: python
All the articles with the tag "python".
-
Data Analysis Study #4 — When I Get a pandas DataFrame, I Start with info()
Following Series, I looked at DataFrame. I cover making a table into a dictionary and putting it into a DataFrame, the difference between pulling a column out as a Series versus as a DataFrame, and grasping the shape of a table first with dtypes and info().
-
Data Analysis Study #3 — pandas loc includes the end, iloc excludes it
Week 3, day 2. I went through Series attributes and pulled out values with loc and iloc. I confirmed that slicing doesn't raise an error even when it goes out of range, and that loc and iloc handle the endpoint differently. I also cover conditional filtering and aggregating boolean Series.
-
Data Analysis Study #2 — pandas Series adds by matching indices, not order
After the lecture, I jumped straight into pandas practice. I set up the environment with uv and tried out Series, and adding two Series with different indices gave me NaN instead of values. That's when I learned pandas calculates based on index, not position.