Pandas an pathlib pt1
In [2]:
import pandas as pd
from pathlib import Path
import shutil
import matplotlib.pyplot as plt
import numpy as np
In [43]:
pd.set_option('max_column', None)
pd.set_option('max_row', None)
Example data¶
In [3]:
pth = Path()
pth.absolute()
d_out = pth / 'data_simulation'
d_out.absolute()
f_test = Path('Teste_path.txt')
if f_test.exists():
if f_test.is_dir():
shutil.rmtree(f_test) # or f_test.rmdir()
else:
f_test.unlink()
f_test.touch()