Pandas importing error in python | RuntimeError The current Numpy installation | python | Panda

Published: 01 January 1970
on channel: Doc Don
4,556
36

This issue occurs due to your system has installed numpy version 1.19.4 , so to solve the current issue we need to install numpy==1.19.3, it's bug in
numpy==1.19.4, hope developer should fix bug in coming version.

Follow the instruction carefully you can solve the issue

For windows users
1. Open Command prompt
2. type "python -m pip install --user numpy==1.19.3" without quote

For unix or Linux or Mac users
1. Open terminal
2. type "pip3 install numpy==1.19.3" without quote
pip depends on version of python installed in your
system. For version 2.x use "pip" and for version 3.x use "pip3"

Sample Program to write and read CSV file using Pandas
...................................Example...................................................
import pandas as pd

#Function to write CSV file
def csv_write():

csv_write_data = pd.DataFrame([['Kathandu', 'Bagmati'],
['Pokhara', 'Gandaki']],
columns=['City', 'State'])

#Creating csv file as panda_to_csv.csv
csv_write_data.to_csv('panda_to_csv.csv')


#Fuction to Read CSV file
def csv_read():

csv_read_data = pd.read_csv('path/panda_to_csv.csv')

print(csv_read_data)

if _name_ == "__main__":
csv_write()
csv_read()

.........................................OUTPUT.............................................................

Unnamed: 0 City State
0 0 Kathandu Bagmati
1 1 Pokhara Gandaki

That's it.

Enjoy!!!!


On this page of the site you can watch the video online Pandas importing error in python | RuntimeError The current Numpy installation | python | Panda with a duration of hours minute second in good quality, which was uploaded by the user Doc Don 01 January 1970, share the link with friends and acquaintances, this video has already been watched 4,556 times on youtube and it was liked by 36 viewers. Enjoy your viewing!