Key learnings
- Use module
pprint
to “pretty-print” a list - Use module
pandas
to convert a list into a DataFrame - Add a new column to the DataFrame
- Rename a column name using
df.rename
- Update column values (rows)
- Make a copy of the DataFrame using
df.copy
- Append a DataFrame vertically to another one using
pd.concat([df1, df2])
- Save the DataFrame to a CSV file using
df.to_csv
- Group a DataFrame by some columns using
df.groupby
View my project here!
Key learnings
- Append a DataFrame vertically to another one using
df1.append([df2])
- Convert strings to DateTime using
pd.to_datetime
- Merge the DataFrame using
df.merge
- Extract a component (year, month, etc.) of a DateTime column using
df['column'].dt.component
- Pivot table with
df.pivot_table
- Plot data using
df.plot
- Use
set()
to identify unique data - Get the last n rows of a sorted DataFrame using
df.nlargest
View my project here!