In [1]:
import pandas as pd
In [7]:
iris=pd.read_csv("http://vincentarelbundock.github.io/Rdatasets/csv/datasets/iris.csv",header=None)
In [8]:
iris.head()
Out[8]:
In [10]:
iris2=iris.iloc[1:,1:]
In [11]:
iris2.head()
Out[11]:
In [12]:
import os as os
In [13]:
os.getcwd()
Out[13]:
In [18]:
iris2.to_csv("iris2.csv")
In [4]:
iris.info()
CREATE TABLE iris (
Sepal_Length real,
Sepal_Width real,
Petal_Length real,
Petal_Width real,
Species varchar(20)
);
In [19]:
os.getcwd()
Out[19]:
In [20]:
os.chdir('C:\\Users\\Dell\\Desktop')
In [21]:
os.listdir()
Out[21]:
In [ ]: