'dataframe' Object Is Not Callable
I'm trying to create a heatmap using Python on Pycharms. I've this code: import numpy as np import pandas as pd import matplotlib matplotlib.use('agg') import matplotlib.pyplot as
Solution 1:
You are reading a csv file but it has no header, the delimiter is a space not a comma, and there are a variable number of columns. So that is three mistakes in your first line.
And data1 is a DataFrame, freqMap is a dictionary that is completely unrelated. So it makes no sense to do data1[freqMap].
I suggest you step through this line by line in jupyter or a python interpreter. Then you can see what each line actually does and experiment.
Post a Comment for "'dataframe' Object Is Not Callable"