data.csv
import pandas as pd
X=pd.read_csv("data.csv")
type(X)
X
X.info( )
X.head( )
X.head(10)
Solve Problems by Coding Solutions - A Complete solution for python programming
Python program to renaming the file or directory
# X is the original name and Y is the name to be changed
import os, sys
print ("The dir is: %s"%os.listdir(os.getcwd()))
os.rename("X","Y")
print ("Successfully renamed.")
print ("the dir is: %s" %os.listdir(os.getcwd()))
import os, sys
print ("The dir is: %s"%os.listdir(os.getcwd()))
os.rename("X","Y")
print ("Successfully renamed.")
print ("the dir is: %s" %os.listdir(os.getcwd()))
Subscribe to:
Posts (Atom)