Pandas is an amazing data analysis and manipulation library for python, Really popular when working with ML, Data science or more.
It has a robust data structure, Dataframe for manipulation and analyzing data.
Here's some tips to help you work better with pandas. Let's go! โ
If you're not aware about what a Dataframe is, It's an optimized data structure for loading data, analysing it, manipulating data in it, and Mostly gathering insights.
It uses Cython backend which transpiles into C for optimized code.
Here's how a dataframe looks like,
Before we start, You need to ensure, you have pandas installed. If you don't, Do that before moving ahead!
Here are the tips, Let's go!
1/ Convert PD series to Dataframe
We all have struggled, when we deal with pandas series. It's always easier to work with Dataframes, rather than series. Here is how you can convert series to dataframe easily.
2/ How to create dummy Dataframe for testing
We always need dataframes for testing and analysing normally, if we do not have data ready. Here is how you can use Pandas API to generate different types of data.