i want to run this code but i can't and received this error. also i downloaded pandas package.
import pandas
data = {
"Day": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"Visitors": [18, 26, 18, 18, 9, 9, 20, 30, 16, 24],
"Bounce_Rate": [77.27, 74.07, 73.68, 65, 90, 70, 72, 62.16, 81.25, 72],
}
df = pandas.DataFrame(data)
print(df)
Have you have saved your file as pandas.py
? It will confuse the namespace if the file is named pandas.py
Otherwise check if there is any file named pandas and delete it. So that you can definitely succeed in fixing this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With