How can you merge two DataFrames in Pandas?
Anonymous Quiz
24%
df.concat()
21%
df.join()
46%
df.merge()
9%
df.combine()
Forwarded from Java Codes Basic to Advance (</> ᴍᴜᴋᴇsʜ </>)
Print Hollow Rectangle Pattern using java .
OutPut:
public class Hollowrect {
public static void HollowrectPattern(int noOfRows, int noOfCols) {
// for rows outer loop
for (int i = 1; i <= noOfRows; i++) {
// inner loop
for (int j = 1; j <= noOfCols; j++) {
// cell (i,j)
if (i == 1 || i == noOfRows || j == 1 || j == noOfCols) {
System.out.print("*");
} else {
System.out.print(" ");
}
}
System.out.println();
}
}
public static void main(String[] args) {
HollowrectPattern(4, 7);
}
}OutPut:
*******
* *
* *
*******
Butterfly Pattern using java of number n
Output:
public class Butterflypattern {
public static void butterfly_pattern(int n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
System.out.print("*");
}
for (int j = 1; j <= 2 * (n - i); j++) {
System.out.print(" ");
}
for (int index = 1; index <= i; index++) {
System.out.print("*");
}
System.out.println();
}
for (int i = n; i >= 1; i--) {
for (int j = 1; j <= i; j++) {
System.out.print("*");
}
for (int j = 1; j <= 2 * (n - i); j++) {
System.out.print(" ");
}
for (int index = 1; index <= i; index++) {
System.out.print("*");
}
System.out.println();
}
}
public static void main(String[] args) {
butterfly_pattern(5);
}
}Output:
* *
** **
*** ***
**** ****
**********
**********
**** ****
*** ***
** **
* *
❤2👍1
Diamond Pattern of number n
Output:
public class diamond {
public static void diamond_pattern(int n) {
for (int i = 1; i <= n; i++) {
// blank space
for (int j = 1; j <= (n - i); j++) {
System.out.print(" ");
}
// star
for (int j = 1; j <= 2 * (i - 1) + 1; j++) {
System.out.print("*");
}
System.out.println();
}
for (int i = n; i >= 1; i--) {
// blank space
for (int j = 1; j <= (n - i); j++) {
System.out.print(" ");
}
// star
for (int j = 1; j <= 2 * (i - 1) + 1; j++) {
System.out.print("*");
}
System.out.println();
}
}
public static void main(String[] args) {
diamond_pattern(5);
}
}Output:
*
***
*****
*******
*********
*********
*******
*****
***
*
❤2👍1
Why do programmers prefer using the dark mode?
- Because light attracts bugs.
😁6🐳2❤1
👍1
Forwarded from CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
Guys, If you have Airtel SIM then, You have this reward of "Perplexity AI PRO" for a Year..
Clam Your free Yearly Perplexity AI PRO
❤5👍1
explore free api : https://freeapi.hashnode.space/freeapi-docs/freeapi
another one :https://www.freepublicapis.com/
Jᴏɪɴ ᴜs :- @CodesSnippet
another one :https://www.freepublicapis.com/
Jᴏɪɴ ᴜs :- @CodesSnippet
❤2
a = "python"
if a == "java" or "Java": print(True) else: print(False)
if a == "java" or "Java": print(True) else: print(False)
Anonymous Quiz
33%
True
55%
False
2%
None
10%
Syntex Error
❤2
💻 TECH QUIZ – Tech Hub BBS
⏱️ 20 Q | 20 Min
🏆 Prizes + Certificate
🎯 Only 1st year allowed
📌 Register link :
⏳ Registeration Deadline: 11 April 2026
Quiz Time : 6 pm -6:30 pm , 12 April 2026
👇 Updates group:
⏱️ 20 Q | 20 Min
🏆 Prizes + Certificate
🎯 Only 1st year allowed
📌 Register link :
http://bit.ly/41hmaTu
⏳ Registeration Deadline: 11 April 2026
Quiz Time : 6 pm -6:30 pm , 12 April 2026
👇 Updates group:
https://chat.whatsapp.com/Hc1zaz52LdOAh6kM5NHREA
👍1
🚀 Hack Days Delhi: Build the Future!
Join the capital’s premier coding showdown! Innovate and disrupt alongside partners like MLH, Google for Developers, GitHub, Sarvam AI, and Commudle.
Event Details :-
📍 Location: Delhi
🗓️ Date: 12 June 2026
⏰ Duration: 12 Hours
🎁 Why Join?
🏆 Surprise Prize Pool: Compete for an undisclosed cash reward.
☁️ AI Credits: Get premium access to Google Gemini and Sarvam AI.
👕 Swag & Food: Limited-edition gear + complimentary meals.
🤝 Networking: Connect with industry leaders and expert mentors.
🔗 Register on Commudle: https://www.commudle.com/communities/cdn-commudle-developer-network/hackathons/hack-days-in-delhi
Join the capital’s premier coding showdown! Innovate and disrupt alongside partners like MLH, Google for Developers, GitHub, Sarvam AI, and Commudle.
Event Details :-
📍 Location: Delhi
🗓️ Date: 12 June 2026
⏰ Duration: 12 Hours
🎁 Why Join?
🏆 Surprise Prize Pool: Compete for an undisclosed cash reward.
☁️ AI Credits: Get premium access to Google Gemini and Sarvam AI.
👕 Swag & Food: Limited-edition gear + complimentary meals.
🤝 Networking: Connect with industry leaders and expert mentors.
🔗 Register on Commudle: https://www.commudle.com/communities/cdn-commudle-developer-network/hackathons/hack-days-in-delhi