Sztuczna_inteligencja_gr_13/bin/Main/test.py

16 lines
317 B
Python
Raw Normal View History

2021-05-30 00:25:54 +02:00
import pandas as pd
def main():
my_dict = {'known': [1], 'power': [1], 'new': [1], 'location': 0, 'stable': [1], 'chain_reaction': [1]}
s = pd.DataFrame.from_dict(my_dict)
print(s)
# data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}
# print(pd.DataFrame.from_dict(data))
main()