Pages

Showing posts with label pandas. Show all posts
Showing posts with label pandas. Show all posts

Working with Matplotlib and Pandas (Python package for graphs)

import pandas as pd
import matplotlib.pyplot as plt

file = pd.read_excel('/full/path/to/file.xlsx')

When you run this, you may get following error.

ImportError: Install xlrd >= 0.9.0 for Excel support
To proceed further, install xlrd package using

pip install xlrd or pip3 install xlrd



For mentioning the sheet number in the excel sheet import.

df =pd.read_excel('fileName.xlsx', sheet_name='Sheet4')


You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...