Skip to content

Tag: python

Convert openpyxl to pandas

After doing some research I understood that pandas can give us better performace comparing to openpyxl. I’m trying to convert this code from openpyxl to pandas: Anyone can give me a suggestion about how to convert this code? Answer Here is the equivalent code using pandas: This code uses pandas to read …

how to transform dataframe into data set/object

I have a data set in a dataframe that’s almost 9 million rows and 30 columns. As the columns count up, the data becomes more specific thus leading the data in the first columns to be very repetitive. See example: park_code camp_ground parking_lot acad campground1 parking_lot1 acad campground1 parking_lo…