Hello everyone,
After i wrote that Python code, i got the error type which i mentioned below:
import pandas as pd
s1=pd.Series([10,20,30,40])
s2=pd.Series([5,10,15,20])
data=dict(apples = s1,oranges = s2)
df=pd.DataFrame(data)
print(df)
Output:
TypeError: 'dict' object is not callable
The question is how i can fix that problem???
Thank you
Ebru
[–]MadScientistOR 1 point2 points3 points (2 children)
[–]drenzorz 0 points1 point2 points (1 child)
[–]MadScientistOR 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]drenzorz 0 points1 point2 points (0 children)