Welcome at microwebservices.eu, my interests: microservices.com.pl, Java, cloud on AWS, J2EE, containerization/Dockerization, Kubernetes, JEE, EJB, JSP, Maven, Web Services, SOAP, REST, High Availability Systems, Genetic Algorithms, Neural Networks etc. See linkedin.com/in/grathor33/, bitbucket.org and https://github.com/grathor33/
Saturday, October 29, 2022
Wednesday, October 26, 2022
Monday, October 24, 2022
Friday, October 21, 2022
Wednesday, October 19, 2022
Python | Filtering data with Pandas .query() method
Source:
https://www.geeksforgeeks.org/python-filtering-data-with-pandas-query-method/data.query('Senior_Management
=
=
True
and
Gender
=
=
"Male"
and
Team
=
=
"Marketing"
and
First_Name
=
=
"Johnny"
', inplace
=
True
)
# display
data
Tuesday, October 18, 2022
The Only 30 Methods You Should Master To Become A Pandas Pro
Source:
https://towardsdatascience.com/the-only-30-methods-you-should-master-to-become-a-pandas-pro-749795084bb2
e.g.
df.to_csv("file.csv", sep = "|", index = False)
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))
Friday, October 14, 2022
Wednesday, October 12, 2022
Monday, October 10, 2022
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."
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."
Sunday, October 9, 2022
Saturday, October 8, 2022
Python Decorators – How to Create and Use Decorators in Python With Examples. Major Python
Source:
https://www.freecodecamp.org/news/python-decorators-explained-with-examples/
"Where are Python decorators used?
You'll use a decorator when you need to change the behavior of a function without modifying the function itself. A few good examples are when you want to add logging, test performance, perform caching, verify permissions, and so on. You can also use one when you need to run the same code on multiple functions."
Tuesday, October 4, 2022
Subscribe to:
Posts (Atom)