ai-platform-csv

Reading from and writing files to GCP Storage in an AI Platform job

  • by

When you’re trying to access a CSV file stored in Google Cloud Storage when submitting a job to AI Platform, your first reflex is probably to use pandas’ read_csv. However, this will produce the following error: ImportError: The gcsfs library is required to handle GCS files That’s because pandas is… Read More »Reading from and writing files to GCP Storage in an AI Platform job

Solving “inconsistent use of tabs and spaces in indentation” in Visual Studio Code

  • by

Out of the blue, when coding Python in Visual Studio Code, you might run into the following error. “inconsistent use of tabs and spaces in indentation” This happens, because somewhere in your code, indentation is different than in the rest of your code. Generally, Python doesn’t care what kind of… Read More »Solving “inconsistent use of tabs and spaces in indentation” in Visual Studio Code