I hereby claim:
- I am flutefreak7 on github.
- I am brettables (https://keybase.io/brettables) on keybase.
- I have a public key ASDuxfrIiBFgrsLv4VtJkq7gAY_iKW9gW1Dk5uBbrQezNQo
To claim this, I am signing this object:
| import pandas as pd | |
| data1 = pd.DataFrame({'A': [1, 2, 3, 4]}, index=[0, 1, 2, 3]) | |
| data2 = pd.DataFrame({'A': [10, 11, 12, 13]}, index=[2, 3, 4, 5]) | |
| data3 = data1.copy() | |
| data3.update(data2) | |
| print(data3) | |
| data1 = pd.DataFrame({'A': [1, 2, 3, 4]}, index=[0, 1, 2, 3]) | |
| data2 = pd.DataFrame({'A': [10, 11, 12, 13]}, index=[2, 3, 4, 5]) |
| import numpy as np | |
| from scipy.spatial import ConvexHull | |
| from pyvista import PolyData | |
| def polyhull(x, y, z): | |
| hull = ConvexHull(np.column_stack((x, y, z))) | |
| faces = np.column_stack((3*np.ones((len(hull.simplices), 1), dtype=np.int), hull.simplices)).flatten() | |
| poly = PolyData(hull.points, faces) | |
| return poly | |
| import re | |
| import numpy as np | |
| def pandas_to_latex(df_table, latex_file, vertical_bars=False, right_align_first_column=True, header=True, index=False, | |
| escape=False, multicolumn=False, **kwargs) -> None: | |
| """ | |
| Function that augments pandas DataFrame.to_latex() capability. | |
| :param df_table: dataframe | |
| :param latex_file: filename to write latex table code to |
| from PyQt5 import QtCore, QtWidgets | |
| import qdarkstyle | |
| import pyqtgraph as pg | |
| qss_plot_widget = r''' | |
| PlotWidget { | |
| padding: 0px; | |
| } |
| # intended for use in a Jupyter Notebook or similar. | |
| import calendar | |
| from calendar import HTMLCalendar | |
| from IPython.display import HTML | |
| # Based on https://stackoverflow.com/a/1458077/1639671 | |
| class HighlightedCalendar(HTMLCalendar): | |
| def __init__(self, highlight=[], *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| self._highlight = highlight |
| from PyQt5 import QtCore, QtWidgets | |
| import sys | |
| from multiprocessing import Process, Queue | |
| from time import time | |
| import vtk | |
| from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor | |
| import numpy as np | |
| from time import sleep |
I hereby claim:
To claim this, I am signing this object: