Home » python

python

DTYPEWARNING_MIXED_TYPES_SOLVED

Solve DtypeWarning: Columns have mixed types. Specify dtype option on import or set low_memory=False in Pandas

  • by

The title of this blog post says it all: let’s solve a warning. It’s one that occurs when you’re using Pandas’ read_csv. Let’s start with just doing that. Let’s say you run into the following error: Solve DtypeWarning: Columns (X,X) have mixed types. Specify dtype option on import or set… 

gcp_python_spreadsheets

Solved: “The caller does not have permission” – Using the API with a private Google Spreadsheet

  • by

Ahh, user rights. The cause and solution to all of life’s identification problems. In this blog post I explain how you can access (private) google spreadsheets using the Python gspread library. Before you get started: make sure you have administrator rights to the spreadsheets you are trying to work with.… 

pivot-vs-pivot_table-pandas

Pandas’ pivot_table vs. pivot

  • by

When you’re an R poweruser, pivoting tables in pandas feels unnecessarily complex. Why are there two pivot functions? Why does it return an index when you wanted a column? Why does it generate multi index columns? Those are the questions I tackle in this blog post. To answer some questions…