Wednesday, October 19, 2022

Monday, October 17, 2022

Convert Pandas DataFrame Row or Column to Series

Source:

import pandas as pd    # Create dictionary  students_record = {'Student Names': ['Samreena', 'Raees', 'Asif', 'Affan', 'Idrees', 'Mirha'],         'Physics': [87, 54, 68, 92, 50, 90],         'Chemistry': [78, 58, 85, 82, 76, 71],         'Maths': [90, 88, 50, 89, 77, 80] }    # Converting dictionary to DataFrame  dataframe = pd.DataFrame(data=students_record)    # Display DataFrame  dataframe  # Converting DataFrame row to Series  series = dataframe.iloc[3].reset_index(drop=True).squeeze()    print(series)  print (type(series))

5 Python Projects to Automate Your Life: From Beginner to Advanced

Monday, October 10, 2022

Introduction to NumPy. MAJOR Python. W3 schools

How Is Rhaenyra Related to Daenerys in ‘House of the Dragon’?

Source:
https://www.esquire.com/entertainment/tv/a41040403/how-is-rhaenyra-targaryen-related-daenerys-house-of-the-dragon/

"Working backward from Daenerys—the last Targaryen by name—we have her father, the "Mad King" Aerys II, and his sister-wife, Rhaella Targaryen. The Mad King's death at the hands of the "king slayer" Jaime Lannister occurs right before the events of Game of Thrones, setting the stage for eight seasons of conflict."

Daenerys Targaryen. Family.

Major Python. python_lists_comprehension

The Complete Guide to the Complicated Targaryen Family Tree. Rhaenyra is Daenerys's...

Source:
https://www.harpersbazaar.com/culture/film-tv/a41021088/targaryen-family-tree-game-of-thrones-house-of-the-dragon/

"Technically, Rhaenyra is Daenerys's sixth great grandmother and Jon's seventh great grandmother. That also makes Daenerys and Jon the direct descendants of Daemon, Rhaenyra's uncle/second husband."

Rhaenyra Targaryen | Game of Thrones Wiki | Fandom