Measurement is not created in demo1 database when tried by pandas dataframe but able to create it so by json body in python

host = 'localhost'
port = 8086
user = 'root'
password = 'root'
dbname = 'demo1'
protocol = 'json'

client = DataFrameClient(host, port, user, password, dbname)

print("Create pandas DataFrame")
df = pd.DataFrame(data=list(range(30)),
                                      periods=30, freq='H'), columns=['0'])

print("Create database: " + dbname)

print("Write DataFrame")
client.write_points(df, 'demo1', protocol=protocol)

It returns true but on checking for list of measurements in demo1 database, it returns nothing. Please help