For All Programming solution

Wednesday, August 31, 2022

List to Dictionary to DataFrame

#List
height = [151, 174, 138, 186, 128, 136, 179, 163, 152, 131]

weight = [63, 81, 56, 91, 47, 57, 76, 72, 62, 48]


##List to Dictionary

baby_dic = {'height':height,'weight':weight} 



#dictionary to DataFrame

baby_data = pd.DataFrame(baby_dic)
Posted by niaz at 12:12 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2024 (1)
    • ►  January (1)
  • ►  2023 (3)
    • ►  September (1)
    • ►  April (1)
    • ►  March (1)
  • ▼  2022 (7)
    • ▼  August (7)
      • Box Plot for All Column
      • List to Dictionary to DataFrame
      • Outlier Detecting in Pandas
      • Pandas Series and Dataframe
      • Usefull Pandas Statical Formula
      • Some Usefull Pandas Formula
      • Google Drive access from Google Colab
  • ►  2015 (8)
    • ►  August (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
  • ►  2014 (5)
    • ►  June (1)
    • ►  April (3)
    • ►  January (1)
  • ►  2013 (30)
    • ►  December (3)
    • ►  November (3)
    • ►  August (4)
    • ►  July (1)
    • ►  June (4)
    • ►  May (1)
    • ►  April (5)
    • ►  March (2)
    • ►  February (4)
    • ►  January (3)
  • ►  2012 (5)
    • ►  December (2)
    • ►  November (3)

About Me

niaz
View my complete profile
@niazstat. Simple theme. Powered by Blogger.