How to modify values in a Pandas DataFrame?

cell, column, row, based on condition, replace, update, series, index As part of our data wrangling process, we are often required to modify data previously acquired from a csv, text, json, API, database or other data source. In this short tutorial we would like to discuss the basics of replacing/changing/updating manipulation in Pandas DataFrames. Replace … Read more

How to pip install pandas to fix not found or import errors?

When setting up our Python data analysis environments on Windows, MAC or Linux and getting started with our coding we might encounter import errors.These errors originate from the fact that specific packages we call in our Python code (wrote using Jupyter Lab or Notebooks, Spyder, PyCharm or other development environment your might be using) are … Read more

How to write Python / Pandas rows and columns into a list?

There are cases in which when working with Pandas Dataframes and data series objects you might need to convert those into lists for further processing. In this post we’ll convert into lists (or list of lists) the following: Dataframe columns Dataframe rows Entire Dataframes Data series arrays Creating your sample Dataframe Before we get started … Read more