[Python] Pandas - Dataframe.merge()์์ copy ์ต์
pandas.merge(left, right, how='inner', on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, suffixes='_x', '_y', copy=True, indicator=False, validate=None) https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.merge.html pandas.merge — pandas 1.1.4 documentation If True, adds a column to the output DataFrame called “_merge” with information on the so..
[Python] matplotlib - plot outside text
plot ๋ฐ๊นฅ์ชฝ์ text ์ฐ๊ธฐ plt.text(1.03, 0.95, textstr, transform=ax.transAxes, fontsize=14, verticalalignment='top', bbox=props) import numpy as np import matplotlib.pyplot as plt np.random.seed(19680801) fig, ax = plt.subplots() x = 30*np.random.randn(10000) mu = x.mean() median = np.median(x) sigma = x.std() textstr = '\n'.join(( r'$\mu=%.2f$' % (mu, ), r'$\mathrm{median}=%.2f$' % (median, ), r'$\sig..