HOME/Articles/

mysql example Chapter7 14 (snippet)

Article Outline

Python mysql example 'Chapter7 14'

Modules used in program:

  • import numpy as np
  • import pandas as pd

python Chapter7 14

Python mysql example: Chapter7 14

import pandas as pd
import numpy as np

val='a,b,guido'

print(val)
print(val.split(','))

pieces=[x.strip() for x in val.split(',')]
print(pieces)
first,secong,third=pieces
print(first)
print(secong)
print(third)